-
Notifications
You must be signed in to change notification settings - Fork 59
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
Support mounting multiple secrets together #59
Comments
Hi there, The 1Password operator actually can place multiple fields in a secret. When you create a secret using
each field in the 1Password item will become a field in the data of the kubernetes secret. For example if you have a username and password stored in
Is this an acceptable solution for you or is it necessary for you to be able to place multiple 1Password items (and their fields) within a secret? |
@jillianwilson what happens to |
@jillianwilson I'm not sure that this is a valid example:
When I specify any key other than
|
Hi again, Apologies, as it appears there was a typo in my last reply. What I meant to explain was that by linking one 1Password item to a Kubernetes secret, then all the item's fields will be available in the associated Kubernetes Secret, thus multiple secrets (for example a username, and password on a login item) can be represented in one Kubernetes Secret. If you are looking to link multiple 1Password Items to a kubernetes secret, this is not currently possible, but hopefully the above solution is suitable. Amended example:
|
as workaround it could be ok: like 1 app in k8s == 1 secret item in 1password with multiple password fields but in this case we have a problem that if different apps in k8s use the same password we need duplicate it (copy/paste) in different 1password secrets |
Summary
Would be useful to be able to mount multiple secrets in single secret.
Use cases
Kubernetes supports following:
Secret definition:
which is mounted liket this:
This results in
SECRET_1
&SECRET_2
being accessible via env variables inside the container.However, to my understanding 1pw operator can currently carry only 1 field in
my-secrets
so this is not possible.Proposed solution
Alternatively would be nice if 1password had a native support key-value pair type secrets built in.
Is there a workaround to accomplish this today?
Mount every secret individually. This increases boilerplate and reduces readability.
E: Seems that there's a way to mount multiple secrets with one file: #60 However, there is still no way to add multiple key / value pairs per secret.
The text was updated successfully, but these errors were encountered: