You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing the kubeconfig to various kubernetes.core modules as a dictionary instead of a path, it contains sensitive data and should not be logged.
I've patched this in our environment in the meantime to simply always no_log the kubeconfig argument in args_common.py.
SUMMARY
When passing the kubeconfig to various kubernetes.core modules as a dictionary instead of a path, it contains sensitive data and should not be logged.
I've patched this in our environment in the meantime to simply always no_log the kubeconfig argument in args_common.py.
ISSUE TYPE
COMPONENT NAME
kubernetes/core/plugins/module_utils/args_common.py
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
RHEL8.6 ansible engine, Openshift 4.16 target.
STEPS TO REPRODUCE
Pass kubeconfig as a dictionary to any kubernetes.core module that uses args_common.py.
kubernetes.core.helm, community.okd.k8s
EXPECTED RESULTS
Sensitive kubeconfig dictionary is omitted from logs.
ACTUAL RESULTS
Kubeconfig dictionary is in plaintext in logs.
The text was updated successfully, but these errors were encountered: