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

Flag for returning just the token attribute #85

Closed
christopherhein opened this issue May 23, 2018 · 1 comment · Fixed by #122
Closed

Flag for returning just the token attribute #85

christopherhein opened this issue May 23, 2018 · 1 comment · Fixed by #122

Comments

@christopherhein
Copy link
Member

christopherhein commented May 23, 2018

Would anyone else find it useful to have a flag to just return the token from the kubectl execcredential flow? I've found that I'm using the heptio-authenticator-aws token -r <role> -i <name> | jq -r ".status.token" to generate tokens for things like the Kubernetes dashboard auth.

Curious if anyone else would use something like --token-only or some other name?

@christopherhein
Copy link
Member Author

Going to do a quick implementation of this, I've found this really necessary with some of the affiliate tools around K8s, and will help with people trying to use older client-go libraries, instead of needing a JSON parsing library or jq in the shell.

christopherhein added a commit to christopherhein/aws-iam-authenticator that referenced this issue Jul 17, 2018
**Why:**

* This enables you to use the authenticator binary to generate
  short-lived access to tools like the Kubernetes Dashboard using the
  token field

**This change addresses the need by:**

* closes kubernetes-sigs#85

Signed-off-by: Christopher Hein <[email protected]>
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

Successfully merging a pull request may close this issue.

1 participant