-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add support for docker-v2 protocol in Keycloak modules #8216
Add support for docker-v2 protocol in Keycloak modules #8216
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this 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!
Update changelog fragment to reviewers suggestion, add refrence to issue and pull request Co-authored-by: Felix Fontein <[email protected]>
If nobody objects, I'll merge this in ~a week. |
a5b2b5c
into
ansible-collections:main
Backport to stable-8: 💚 backport PR created✅ Backport PR branch: Backported as #8239 🤖 @patchback |
* Add support for docker-v2 protocol in Keycloak modules * use dash instead of underscore for the docker-v2 * Update documentation * Add changelog fragment * fix missing whitespace around operator * Update changelogs/fragments/8215-add-docker-v2-protocol.yml Update changelog fragment to reviewers suggestion, add refrence to issue and pull request Co-authored-by: Felix Fontein <[email protected]> * Add documentation about adding docker-v2 value in community general 8.6.0 --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit a5b2b5c)
@anderssh thanks for your contribution! |
…ocol in Keycloak modules (#8239) Add support for docker-v2 protocol in Keycloak modules (#8216) * Add support for docker-v2 protocol in Keycloak modules * use dash instead of underscore for the docker-v2 * Update documentation * Add changelog fragment * fix missing whitespace around operator * Update changelogs/fragments/8215-add-docker-v2-protocol.yml Update changelog fragment to reviewers suggestion, add refrence to issue and pull request Co-authored-by: Felix Fontein <[email protected]> * Add documentation about adding docker-v2 value in community general 8.6.0 --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit a5b2b5c) Co-authored-by: Anders Stiksrud Helmen <[email protected]>
…ctions#8216) * Add support for docker-v2 protocol in Keycloak modules * use dash instead of underscore for the docker-v2 * Update documentation * Add changelog fragment * fix missing whitespace around operator * Update changelogs/fragments/8215-add-docker-v2-protocol.yml Update changelog fragment to reviewers suggestion, add refrence to issue and pull request Co-authored-by: Felix Fontein <[email protected]> * Add documentation about adding docker-v2 value in community general 8.6.0 --------- Co-authored-by: Felix Fontein <[email protected]>
…ctions#8216) * Add support for docker-v2 protocol in Keycloak modules * use dash instead of underscore for the docker-v2 * Update documentation * Add changelog fragment * fix missing whitespace around operator * Update changelogs/fragments/8215-add-docker-v2-protocol.yml Update changelog fragment to reviewers suggestion, add refrence to issue and pull request Co-authored-by: Felix Fontein <[email protected]> * Add documentation about adding docker-v2 value in community general 8.6.0 --------- Co-authored-by: Felix Fontein <[email protected]>
SUMMARY
This pull request introduces the addition of the "docker-v2" protocol support to the
keycloak_client
,keycloak_clientscope
, andkeycloak_clienttemplate
modules within the community.general collection. The "docker-v2" protocol is a valid and supported option in Keycloak, which is crucial for configurations involving Docker registry authentication, among others. Fixes #8215.ISSUE TYPE
COMPONENT NAME
keycloak_client
keycloak_clientscope
keycloak_clienttemplate
ADDITIONAL INFORMATION
I have enhanced the
protocol
parameter across thekeycloak_client
,keycloak_clientscope
, andkeycloak_clienttemplate
modules to include the "docker-v2" option. It's important to note that the existing protocol choices varied across different modules — some were limited to['openid-connect', 'saml']
, while others used Python constants to define the choices. I've respected the existing structure and conventions in each module, only extending them to include "docker-v2".For instance, if a module's protocol choices were previously defined as:
I have updated this to
And similarly, for modules using Python constants to define protocol choices, I've appended "docker-v2" to the existing list without altering the existing structure.
The documentation for each affected module has been updated to include "docker-v2" as a valid protocol option.
The modifications were tested to confirm that the "docker-v2" protocol is recognized and behaves as expected across the updated modules. I encourage further testing by the community to validate these changes across various usage scenarios.
I have not verified the potential error message from the Keycloak API when this option is used when the keycloak server has not activated the docker-v2 protocol, (disabled by default and enabled by running
bin/standalone.sh|bat -Dkeycloak.profile.feature.docker=enabled
starting the service, see (https://www.keycloak.org/server/features).