GithubHelp home page GithubHelp logo

View Only HTTPS Connections about kasmvnc HOT 12 CLOSED

kasmtech avatar kasmtech commented on June 26, 2024
View Only HTTPS Connections

from kasmvnc.

Comments (12)

clbr avatar clbr commented on June 26, 2024

from kasmvnc.

 avatar commented on June 26, 2024

VNC supports a read-only view. websockify merely facilitated transport to the VNC service, the basic auth enforced by websockify had no bearing on the vnc connection. It was the vnc password used by the user that determined read-only view. We need to support a view-only connection with basic auth, as the vncpassword is no longer used.

"A view-only password must be separated from the normal password by a newline character."
https://tigervnc.org/doc/vncpasswd.html

from kasmvnc.

clbr avatar clbr commented on June 26, 2024

Yes, but I don't understand what is broken. This sounds like a new functionality?

from kasmvnc.

clbr avatar clbr commented on June 26, 2024

That is, if you try to connect view-only using the current password, does it not work?

from kasmvnc.

clbr avatar clbr commented on June 26, 2024

A new, separate username/password for view-only connections is relatively quick.

from kasmvnc.

 avatar commented on June 26, 2024

One moment, let me think about this.

from kasmvnc.

 avatar commented on June 26, 2024

Lets change the format of the .kasmvncpasswd as follows.

username:vjqJJ2QzipFv5qJDa3DOK1HKCVlaNEK6LqY2/Pbon7B:o
username2:vjqJJ2QzipFv5qJDa3DOK1HKCVlaNEK6LqY2/Pbon7B:w
username3:vjqJJ2QzipFv5qJDa3DOK1HKCVlaNEK6LqY2/Pbon7B:

column 1 - username
column 2 - encoded pw
column 3 - permissions of owner "o" and write "w", read is assumed for all users. So in the example, the owner currently has read access, username2 has read/write, and username3 read-only.

Changes to this file should be detected and applied on the fly.

  • New users
  • Removed users
  • Changed passwords
  • Changed permissions

Please look into the level of effort required to apply changes to permissions without requiring users to reconnect.

from kasmvnc.

mmcclaskey avatar mmcclaskey commented on June 26, 2024

Testing latest changes. Chrome, Safari, and Firefox never prompts user to input basic auth credentials. Users are able to connect in read-only mode without creds or with wrong creds.

from kasmvnc.

clbr avatar clbr commented on June 26, 2024

from kasmvnc.

clbr avatar clbr commented on June 26, 2024

The "-basicauth foo:" param is still needed, but the user portion of it is ignored. This is so the users can still run without basicauth, or with a simple user:pass setup without the password file.

from kasmvnc.

 avatar commented on June 26, 2024

Confirmed missing -basicauth arg.

When a view only user connects and the resolution is set for server resize, it causes the server side to change resolution to the view only client's connection. While client side changes may be necessary here, the server side should ignore settings like resolution from the a view only client. Please review other settings that can be passed down to the server to see if they should be blocked from a view only user.

from kasmvnc.

clbr avatar clbr commented on June 26, 2024

Added checks for all the kasm-specific client-settable settings.

from kasmvnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.