Closed walidabualafia closed 4 days ago
Are you saying the expectation is that there should be no password prompt at all? The PASSWORD
environment variable only tells code-server what password the user needs to send in order to be authenticated, it does not disable the password prompt. To do that you can use --auth none
.
If there was no password prompt in 4.18 then that was a major security bug. Maybe you were already authenticated? Once you log in, the token is stored in a cookie in your browser so you do not need to log in again.
Or, are you saying the problem is that the same cookie for 4.18 is not working for 4.21? That does seem odd. I do not think we made any changes around authentication. :thinking: If you log in again, does it keep showing the prompt?
Closing as stale but feel free to comment if you come back to this.
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.21.0, 4.21.1Steps to Reproduce
$PASSWORD
to a 16 char alphanumeric stringExpected
code-server should automatically read the password from
$PASSWORD
. It works incode-server 4.18
, but does not work incode-server 4.21
/code-server 4.20
.Actual
You are greeted with the password prompt, asking your to enter the password set in
$PASSWORD
...Logs
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over a secure context?
Notes
The password gets automatically read from
$PASSWORD
incode-server 4.18.0
.I tested
code-server 4.21.0
andcode-server 4.21.1
, but both seem not to authenticate me properly.