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

Support creation of dockerconfigjson secret type #5

Open
conorfennell opened this issue Jun 14, 2020 · 0 comments
Open

Support creation of dockerconfigjson secret type #5

conorfennell opened this issue Jun 14, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@conorfennell
Copy link
Member

conorfennell commented Jun 14, 2020

Current Behaviour:
The lastpass-operator supports the creation of Opaque secrets.

Enhanced behaviour:
Add the flexibility in the LastPass custom resource to choose the type of secret to be created.

type: kubernetes.io/dockerconfigjson
key: .dockerconfigjson

Example secret for docker credentials

apiVersion: v1
kind: Secret
type: kubernetes.io/dockerconfigjson
metadata:
  name: regcred
  namespace: bots
data:
  .dockerconfigjson: ewogICAiYXV0aHMiOnsKICAgICAgImh0dHBzOi8vaW5kZXguZG9ja2VyLmlvL3YxLyI6ewogICAgICAgICAidXNlcm5hbWUiOiJVc2VybmFtZSIsCiAgICAgICAgICJwYXNzd29yZCI6IlBhc3N3MHJkIiwKICAgICAgICAgImVtYWlsIjoic29tZW9uZUBnbWFpbC5jb20iLAogICAgICAgICAiYXV0aCI6IlZYTmxjbTVoYldVNlVHRnpjM2N3Y21RPSIKICAgICAgfQogICB9Cn0=

Example last pass configuration for docker credentials which will be stored as a base64 string under the .dockerconfigjson key

{
   "auths":{
      "https://index.docker.io/v1/":{
         "username":"Username",
         "password":"Passw0rd",
         "email":"[email protected]",
         "auth":"VXNlcm5hbWU6UGFzc3cwcmQ="
      }
   }
}
@conorfennell conorfennell added the enhancement New feature or request label Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant