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

Use init-container with SHM for password and user #17

Open
SoulKyu opened this issue Jun 5, 2024 · 0 comments
Open

Use init-container with SHM for password and user #17

SoulKyu opened this issue Jun 5, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request security

Comments

@SoulKyu
Copy link
Collaborator

SoulKyu commented Jun 5, 2024

It could be very nice to not provide environment variable through the pods spec as it is stored in etcd (which is mostly in plaintext).

Also, the creds can be easily retrieved with a kubectl describe pods $podname , which is not directly an issue as we need permission but i think getting creds with only a describe is a bit too much and people need to be aware of that.

A good enhancement could be to use an init-container with a one time used token that will permit to retrieve credentials and share them with SHM inter-container. The creds wont be expose in the pods spec, only a token that couldn't be reused.

The init-container will have 3 principals mission :

  • generate db password
  • share it on the shared memory
  • store it on the state for renewer and revoker.

The token will have 2 acces to 2 thing :

  • database endpoint
  • vault kv endpoint
@SoulKyu SoulKyu added enhancement New feature or request security labels Jun 5, 2024
@SoulKyu SoulKyu self-assigned this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request security
Projects
None yet
Development

No branches or pull requests

1 participant