End-user Kubernetes workflow¶
To securely access a Kubernetes cluster, do the following:
- To generate a kubectl kubeconfig file, which defines the user's permissions and accessible clusters, do one of the following:
- Run this command:
idsec sia k8s generate-kubeconfig - Use the
-fflag to generate the config file in the specified path (this option overrides existing files with the same name):1idsec sia k8s generate-kubeconfig -f ~/.kube
- Run this command:
Refresh SSO certificate workflow¶
When you refresh the certificate, you can keep using its associated kubeconfig file and only need to refresh the MFA authentication data. To refresh the certificate, run one of the following:
- To generate two files (certificate and private key files), where the required
-fflag defines the generated files' location:1idsec sia sso short-lived-client-certificate -of file -f ~/home - To print the certificate and private key to the console as plaintext:
1idsec sia sso short-lived-client-certificate -of raw - To print the certificate and private key to the console as base64-encoded strings:
1idsec sia sso short-lived-client-certificate -of base64