Skip to content
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

Improve container security by removing hardcoded password #33537

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

Conversation

kazan417
Copy link

@kazan417 kazan417 commented Feb 8, 2025

This removes hardcoded password from dockerfile and adds variable PASS to entrypoint

Moves code for setting password from hardcoded Dockerfile to entrypoint variable
Improve seecurity of container by removing hardcoded password
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 8, 2025
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 8, 2025
@wxiaoguang
Copy link
Contributor

  1. The "git:*" is not hard-coded password: it just makes the account to be "unlocked" and unable to login via password.
  2. The git account shouldn't have a password set, it is designed to disallow password login. So passing PASS env breaks the design.

Could you elaborate why you need this change? TBH I think it only lowers the security if some users mis-configured the "PASS" env.

@wxiaoguang wxiaoguang added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/internal size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants