Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix keycloak sanitize_cr #5934

Merged
merged 2 commits into from
Feb 22, 2023

Conversation

claudusd
Copy link
Contributor

@claudusd claudusd commented Feb 3, 2023

SUMMARY

When we want to set the private saml key with the module keycloak_client keycloak receive the value no_log

The function sanitize_cr set the no_log value to avoid print the key value in the ansible log.
But the function copy of dict only copy the first level and keep the reference for sub dict.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

keycloak_client

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug identity module module new_contributor Help guide this first time contributor plugins plugin (any type) small_patch Hopefully easy to review labels Feb 3, 2023
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Feb 3, 2023
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. Please add a changelog fragment? Thanks.

plugins/modules/keycloak_client.py Show resolved Hide resolved
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-5 labels Feb 3, 2023
@ansibullbot ansibullbot added the stale_ci CI is older than 7 days, rerun before merging label Feb 11, 2023
@ansibullbot ansibullbot added ci_verified Push fixes to PR branch to re-run CI and removed ci_verified Push fixes to PR branch to re-run CI small_patch Hopefully easy to review stale_ci CI is older than 7 days, rerun before merging labels Feb 21, 2023
@ansibullbot ansibullbot removed ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Feb 21, 2023
@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Feb 22, 2023
@felixfontein felixfontein merged commit 78297e4 into ansible-collections:main Feb 22, 2023
@patchback
Copy link

patchback bot commented Feb 22, 2023

Backport to stable-5: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-5/78297e44b74992c2108b6ffbb9b0b37e0d708c79/pr-5934

Backported as #6035

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Feb 22, 2023
* Fix keycloak sanitize_cr

* Update changelogs/fragments/5934-fix-keycloak-sanitize_cr.yml

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Claude Dioudonnat <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 78297e4)
@felixfontein
Copy link
Collaborator

@claudusd thanks for fixing this!

@patchback
Copy link

patchback bot commented Feb 22, 2023

Backport to stable-6: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-6/78297e44b74992c2108b6ffbb9b0b37e0d708c79/pr-5934

Backported as #6036

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Feb 22, 2023
* Fix keycloak sanitize_cr

* Update changelogs/fragments/5934-fix-keycloak-sanitize_cr.yml

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Claude Dioudonnat <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 78297e4)
felixfontein pushed a commit that referenced this pull request Feb 22, 2023
Fix keycloak sanitize_cr (#5934)

* Fix keycloak sanitize_cr

* Update changelogs/fragments/5934-fix-keycloak-sanitize_cr.yml

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Claude Dioudonnat <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 78297e4)

Co-authored-by: Claude Dioudonnat <[email protected]>
felixfontein pushed a commit that referenced this pull request Feb 22, 2023
Fix keycloak sanitize_cr (#5934)

* Fix keycloak sanitize_cr

* Update changelogs/fragments/5934-fix-keycloak-sanitize_cr.yml

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Claude Dioudonnat <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 78297e4)

Co-authored-by: Claude Dioudonnat <[email protected]>
@github-actions
Copy link

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

jikamens pushed a commit to jikamens/community.general that referenced this pull request Feb 25, 2023
* Fix keycloak sanitize_cr

* Update changelogs/fragments/5934-fix-keycloak-sanitize_cr.yml

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Claude Dioudonnat <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug identity module module new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants