coder / coder/code-server

[Feat]: Lock the codeserver interface after inactive timeperiod or manual logoff

Open
#5,407 0 comments 4 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
79.3k
Forks
6.8k
Avg merge
2d 6h
Merged PRs (30d)
41

Description

## What is your suggestion?
We have a sign-out button that deletes the cookie file to clear the credentials. Can we have a logout menu that will lock the code server and asks for the password? The transparency of the lock screen can be made editable by user.
## Why do you want this feature?
There are some scenarios where i am not able to lock the system which will go to sleep as per my system settings. i need the laptop to be open + web browser active, but the code server can lock itself and show a password window after a specified window inactive period or when manually logged out.
This will definitely protect my code from anonymous modification and works well on shared computers or logins.
This happens when i train machine learning models on the server. it is mandatory that i should keep my system and browser open for several hours. But it becomes my prime responsibility that i should block someone from the same room views/access/modify/copy/download the code & results while running the builds.
signing out will stop me from viewing or reconnecting to the same instance to vire progress or results - especially in jupyter notebooks.
## Are there any workarounds to get this functionality today?
it must be developed based on the inactivity period or logoff menu
## Are you interested in submitting a PR for this?
No.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.