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

Source for generate-oidc-keys-json-linux ? #1

Closed
rrichardson opened this issue Sep 10, 2020 · 1 comment
Closed

Source for generate-oidc-keys-json-linux ? #1

rrichardson opened this issue Sep 10, 2020 · 1 comment

Comments

@rrichardson
Copy link

rrichardson commented Sep 10, 2020

Thanks for charting this course so that others may benefit in a big way. I appreciate it.

Where can I find the source for generate-oidc-keys-json-linux I would just like to know what it's doing.

Thanks.

Edit

objdump on the binary pointed me to square/go-jose which has hit me with a very large clue stick.

@alex-ferener
Copy link
Owner

Hello,

The source is https://github.com/aws/amazon-eks-pod-identity-webhook/blob/master/hack/self-hosted/main.go

Instead of using the binaries from this repo, you can install golang and run:

go run main.go -key $PKCS_KEY | jq '.keys += [.keys[0]] | .keys[1].kid = ""' > $OIDC_DIR/keys.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants