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

Cater for bearer token based authentication #9

Open
MnrGreg opened this issue Mar 22, 2020 · 1 comment
Open

Cater for bearer token based authentication #9

MnrGreg opened this issue Mar 22, 2020 · 1 comment

Comments

@MnrGreg
Copy link

MnrGreg commented Mar 22, 2020

/kind feature

The curl methods are clean however only the netrc authentication method is possible. We have a need for authentication using native Kubernetes Service Account tokens.

Feature request: Add an optional input parameter for token based authentication

Usage ./check_kube_nodes.sh [-t <TARGETSERVER> -c <CREDENTIALSFILE> -b <BEARERTOKEN>] [-k <KUBE_CONFIG>]
K8STATUS="$(curl -sS $SSL --header "Authorization: Bearer $BEARERTOKEN" $TARGET/api/v1/nodes)"
@grimurd
Copy link

grimurd commented Mar 26, 2021

I was able to use sevice tokens by passing kube config to the script with the token in it.

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