chrisns / kubectl-passman

kubectl plugin that provides the missing link/glue between common password managers and kubectl
MIT License
104 stars 6 forks source link

Is there a way to support DEX OIDC #42

Open mikebell90 opened 4 years ago

mikebell90 commented 4 years ago

I took a quick look at the code, and I'm probably not grokking something, because I don't see why you need to parse anything at all ;)

Anyway the typical dex oidc looks like

    auth-provider:
      config:
        client-id: k8s-dex-app
        client-secret: (redacted)
        id-token: (redacted)
        idp-issuer-url: https://k8s-central-pp-sf.otenv.com/dex
        refresh-token: (redacted)
      name: oidc
chrisns commented 4 years ago

Hey, I parsed so that it could be put into separate fields in a password manager for easier management, not that essential, but changing it would be a breaking change. Could absolutely support that, PRs welcome :)