Best practices for user credentials
Cloudera recommends selecting short validity periods and minimum roles for kubeconfigs, and using separate credentials for each user and each automation.
Cloudera recommends the following practices for user kubeconfigs and robot users:
- Select the shortest practical validity period when you generate a kubeconfig.
- Select the role with the minimum permissions that the user requires. For example, select the view role for a user who only reads cluster resources.
- Generate a separate kubeconfig for each user instead of sharing one kubeconfig.
- Create a separate robot user for each automation instead of sharing a credential between a person and an automation.
- Replace a kubeconfig that you suspect is exposed, because it remains valid until it expires.
For more information, see Kubeconfig files in Overview and Robot users in Configurations.
