Skip to content

Hash password with bcrypt and store in config.yaml #3432

Closed as not planned
Closed as not planned
@jsjoeio

Description

@jsjoeio

Problem

As a user, I would like to be able to hash my password using the same bcrypt algorithm used by code-server.

However, the bcrypt and bcrypt.js algorithms are different so you can't in the same way you can with sha256.

Solution

Add a CLI option to set password (which we hash for User using bcrypt)

code-server --config password=<password> -> hashes and stores in config.yaml

(open to other ideas for this though^)

Todos

  • update docs
  • add backwards-compatiblity for those still hashing with sha256
  • let user provide password via stdin to avoid having the plaintext password in their shell history

Metadata

Metadata

Assignees

Labels

featureNew user visible featuresecuritySecurity related

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions