Skip to content

Commit

Permalink
Remove kubeconfig value from module invocation log (#826) (#840)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6efabd3)

Co-authored-by: Bikouo Aubin <[email protected]>
  • Loading branch information
patchback[bot] and abikouo authored Dec 17, 2024
1 parent f1729ce commit fcd47ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/20241213-kubeconfig-set-no_log-true.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- kubeconfig option should not appear in module invocation log (https://github.com/ansible-collections/kubernetes.core/issues/782).
2 changes: 1 addition & 1 deletion plugins/module_utils/args_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def list_dict_str(value):
)

AUTH_ARG_SPEC = {
"kubeconfig": {"type": "raw"},
"kubeconfig": {"type": "raw", "no_log": True},
"context": {},
"host": {},
"api_key": {"no_log": True},
Expand Down
1 change: 1 addition & 0 deletions plugins/module_utils/helm_args_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
type="raw",
aliases=["kubeconfig_path"],
fallback=(env_fallback, ["K8S_AUTH_KUBECONFIG"]),
no_log=True,
),
host=dict(type="str", fallback=(env_fallback, ["K8S_AUTH_HOST"])),
ca_cert=dict(
Expand Down

0 comments on commit fcd47ca

Please sign in to comment.