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

Run through Docker with service principal and least-priviledge #6

Closed
fgauna12 opened this issue May 3, 2021 · 1 comment
Closed

Comments

@fgauna12
Copy link
Collaborator

fgauna12 commented May 3, 2021

For restrictive environments, create a service principal with read-only permissions and run the Docker container.
Probably certificate-based authentication would be the most kosher.

For example:

docker run -it -v /tmp/aks-health-check.pem:/cert/sp.pem boxboat/aks-health-check login -g <cluster_resource_group> -n <cluster_name> -sp <service_pricinpal_name> --cert-path /cert/sp.pem

$ aks-hc check

or

docker run -it -v /tmp/aks-health-check.pem:/cert/sp.pem boxboat/aks-health-check login -g <cluster_resource_group> -n <cluster_name> -sp <service_pricinpal_name> --cert $CERT

$ aks-hc check
@fgauna12
Copy link
Collaborator Author

This did not work out so well. We're going to revisit this.
See #17

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

1 participant