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

updated docs #10

Open
kfox1111 opened this issue Jul 5, 2018 · 7 comments
Open

updated docs #10

kfox1111 opened this issue Jul 5, 2018 · 7 comments

Comments

@kfox1111
Copy link

kfox1111 commented Jul 5, 2018

The docs in the kubeconf section look outdated as compared to lower where it is talking about TokenRequests (implies you can use it as a kubectl auth plugin now)

@bjhaid
Copy link
Owner

bjhaid commented Jul 5, 2018

@kfox1111 it's unclear which part of the doc you are referring to can you open a PR with a suggestion?

@kfox1111
Copy link
Author

kfox1111 commented Jul 5, 2018

oh. I missed the line after the kubeconf saying it was a kubeconf for the apiserver, not the user's kubeconf.

Do you have a kubeconf example for users?

@bjhaid
Copy link
Owner

bjhaid commented Jul 5, 2018

apiVersion: v1
clusters:
- cluster:
    server: https://kube.bar.com/
  name: bar
contexts:
- context:
    cluster: bar
    user: replace_with_username
  name: bar
current-context: bar
kind: Config
preferences: {}
users:
- name: replace_with_username
  user:
    as-user-extra: {}
    token: replace_with_token_from_received_from_pamhook

@kfox1111
Copy link
Author

kfox1111 commented Jul 5, 2018

can it be used as a plugin ala:
"client-go credential plugins" section of https://kubernetes.io/docs/reference/access-authn-authz/authentication/ ?
If not, could be made to be?

@bjhaid
Copy link
Owner

bjhaid commented Jul 5, 2018

can it be used as a plugin

yes

you will need to write something the makes an api call to pamhook to retrieve the token and then you use that as the exec portion of the user client config, there's nothing of that nature today

@kfox1111
Copy link
Author

kfox1111 commented Jul 5, 2018

ok. thanks.

@bjhaid
Copy link
Owner

bjhaid commented Aug 23, 2020

@kfox1111 if you are still interested I wrote an exec plugin here:

9106a69

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