Skip to content

Commit ae6fa9a

Browse files
[PR #11005/54af64ad backport][stable-9] keycloak_user: mark credentials[].value as no_log=True (#11010)
keycloak_user: mark credentials[].value as no_log=True (#11005) Mark credentials[].value as no_log=True. (cherry picked from commit 54af64a) Co-authored-by: Felix Fontein <[email protected]>
1 parent a87b62d commit ae6fa9a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
security_fixes:
2+
- "keycloak_user - the parameter ``credentials[].value`` is now marked as ``no_log=true``. Before it was logged by Ansible, unless the task was marked as ``no_log: true``.
3+
Since this parameter can be used for passwords, this resulted in credential leaking
4+
(https://github.com/ansible-collections/community.general/issues/11000, https://github.com/ansible-collections/community.general/pull/11005)."

plugins/modules/keycloak_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def main():
360360
argument_spec['auth_username']['aliases'] = []
361361
credential_spec = dict(
362362
type=dict(type='str', required=True),
363-
value=dict(type='str', required=True),
363+
value=dict(type='str', required=True, no_log=True),
364364
temporary=dict(type='bool', default=False)
365365
)
366366
client_consents_spec = dict(

0 commit comments

Comments
 (0)