Skip to content

Use container secrets securely #2271

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 1 commit into
base: master
Choose a base branch
from

Conversation

itoffshore
Copy link

@itoffshore itoffshore commented May 15, 2025

  • increases the default password length from 40 to 256 characters
  • adds a new ENV variable DOCKER_STEPCA_PASSWORD_FILE so the password file location can be changed / set on every run
  • adds set_password_files() to entrypoint.sh so /home/step/secrets/password becomes a symlink in containers pointing to DOCKER_STEPCA_INIT_PASSWORD_FILE (for backwards compatibility) & also DOCKER_STEPCA_PASSWORD_FILE so secret file permissions are retained
  • adds podman example quadlet / run command with a 378,000 character secret
  • small update to README.md for new podman examples / docker examples

Fixes #2270


Name of feature: More secure container secrets / add podman examples

Pain or issue this feature alleviates: improves container secret file permissions

Why is this important to the project (if not answered above): you can never have too much security ;o)

Is there documentation on how to use this feature? If so, where? podman examples included - I've been using these for a few weeks now

In what environments or workflows is this feature supported? containers

In what environments or workflows is this feature explicitly NOT supported (if any)? standalone binaries

Supporting links/other PRs/issues: #2270

💔Thank you!

@github-actions github-actions bot added the needs triage Waiting for discussion / prioritization by team label May 15, 2025
* increases the default password length from 40 to 256 characters
* adds a new ENV variable DOCKER_STEPCA_PASSWORD_FILE so the password file
  location can be changed
* adds set_password_files() to entrypoint.sh so /home/step/secrets/password
  becomes a symlink in containers pointing to DOCKER_STEPCA_INIT_PASSWORD_FILE
  & also DOCKER_STEPCA_PASSWORD_FILE so file permissions are retained
* adds podman example quadlet / run command with a 378,000 character secret
* small update to README.md for new podman examples / docker examples

Fixes smallstep#2270
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use container secrets securely
1 participant