code-server
code-server copied to clipboard
[Bug]: Docker Compose HASHED_PASSWORD
Is there an existing issue for this?
- [X] I have searched the existing issues
OS/Web Information
- Web Browser: iPad Chrome
- Local OS: Ubuntu
- Remote OS: iPad
- Remote Architecture: amd64
-
code-server --version
: latest
Steps to Reproduce
- Setup with docker-compose
- Create Argon Hash with desired password
- Past the hash into the docker compose file environment variable “HASHED_PASSWORD”
- Check if you can login using password
Expected
You should be able to login with the password that was hashed
Actual
Returns “incorrect password”
Logs
No response
Screenshot/Video
Does this issue happen in VS Code or GitHub Codespaces?
- [X] I cannot reproduce this in VS Code.
- [X] I cannot reproduce this in GitHub Codespaces.
Are you accessing code-server over HTTPS?
- [X] I am using HTTPS.
Notes
No response
Inside the container, if you echo HASHED_PASSWORD
, what do you see? I'm wondering if it needs to be in quotes.
The issue is caused by the $
signs inside the string.
In order to make this work in your Docker Compose file, you need to change all the single $
to $$
.
Ah got it. Cool, I'm going to close this for now.