question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document cookie, PASSWORD and HASHED_PASSWORD environment variables

See original GitHub issue

Steps to Reproduce

  1. echo -n "thisismypassword" | npx argon2-cli -e
  2. HASHED_PASSWORD="<hash>" code-server
  3. Try logging in

Expected

It should work

Actual

Incorrect password

Reported here https://github.com/coder/code-server/discussions/4684

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ykazakovcommented, Jan 9, 2022

Same problem here with the only difference that we use the key cookie to (automatically) authenticate the users as mentioned here.

B.t.w., I searched the docs and neither the environment variables PASSWORD or HASHED_PASSWORD, nor the authentication cookie key are mentioned anywhere. The environmental variables are mentioned in code-server --help but not the cookie. Should these things be documented or are they subject to changes?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Passport.js Local Strategy + bcrypt + Hashed password stored ...
js local strategy with bcrypt to check if the password entered matches the 10 round hash that I store in an environment variable...
Read more >
Hashing Passwords: One-Way Road to Security - Auth0
Hashing passwords is the foundation of secure password storage. ... Finally, print the hash variable to see the hash value in the console:...
Read more >
Node JS | Password Hashing with Crypto module
Crypto module for Node JS helps developers to hash user password. Examples: Original Password : portalforgeeks Hashed Password ...
Read more >
Authentication with Bcrypt, JWT, and Cookies in Deno 2022
This file is responsible for loading the environment variables from the .env file and providing their corresponding TypeScript types.
Read more >
Build Node.js User Authentication - Password Login - YouTube
In this video we are going to build a secure Node.js user authentication system. I will be covering all of the security concerns...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found