Code-server: Setting password with command line parameter makes it visible in ps aux

Created on 19 Mar 2019  路  5Comments  路  Source: cdr/code-server

  • code-server version: 1.32.0-275-linux-x64
  • OS Version: Ubuntu 18.04

    Description

Setting password with command line parameter makes it visible in ps aux

Steps to Reproduce

./code-server --password=supersecret $CODE_SERVER_ROOT
ps aux

Possible solution

Seems that there's some possible ways to hide it mentioned here

bug

Most helpful comment

We can probably keep it in here because it's related.

All 5 comments

cc @kylecarbs @code-asher

Maybe it's also a good idea not to output password into code-server stdout when it's been explicitly set by startup parameter. Should I create a separate issue for that?

We can probably keep it in here because it's related.

The recommended way now to set a password is by using the PASSWORD environment variable, which will prevent the password from displaying in the process listing.

https://github.com/codercom/code-server/commit/a3ac4567e39133e736e7e74365f10e9b97861621 also makes it so the password is only logged when it was generated.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nol166 picture nol166  路  3Comments

infogulch picture infogulch  路  3Comments

rcarmo picture rcarmo  路  3Comments

broady picture broady  路  3Comments

tecosaur picture tecosaur  路  3Comments