Skip to content

feat: add passwordFile, hashedPasswordFile, githubAuthTokenFile and absProxyBasePath options #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DanielleMaywood
Copy link
Collaborator

@DanielleMaywood DanielleMaywood commented Apr 23, 2025

Adds the final four options

  • passwordFile
  • hashedPasswordFile
  • githubAuthTokenFile
  • absProxyBasePath

The decision to pass credentials via a file instead of embedding them directly in the devcontainer.json is to allow people the ability to not commit the password to source control.

With these final four options added we should have feature parity with the CLI.

@DanielleMaywood DanielleMaywood self-assigned this Apr 23, 2025
@DanielleMaywood DanielleMaywood requested a review from Copilot April 23, 2025 17:39
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces two new configuration options for code-server to improve security by using external password files instead of hardcoded values.

  • Adds the hashedPasswordFile option, which uses an Argon2-hashed password that takes priority over passwordFile.
  • Adds the passwordFile option to allow direct password authentication via a file.
Files not reviewed (7)
  • src/code-server/devcontainer-feature.json: Language not supported
  • src/code-server/install.sh: Language not supported
  • test/code-server/code-server-hashed-password-file.sh: Language not supported
  • test/code-server/code-server-hashed-password-file/Dockerfile: Language not supported
  • test/code-server/code-server-password-file.sh: Language not supported
  • test/code-server/code-server-password-file/Dockerfile: Language not supported
  • test/code-server/scenarios.json: Language not supported

@DanielleMaywood DanielleMaywood changed the title feat: add passwordFile and hashedPasswordFile options feat: add passwordFile, hashedPasswordFile, githubAuthTokenFile and absProxyBasePath options Apr 24, 2025
@DanielleMaywood DanielleMaywood marked this pull request as ready for review April 24, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant