ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
827 stars 1.52k forks source link

keycloak_realm: create realm KeyProvider #3848

Open haresotto opened 2 years ago

haresotto commented 2 years ago

Summary

Hello It is possible to create a key provider in the web-ui by going to realm_settings -> keys -> providers. But this does not seem possible to do so using the community.general.keycloak_realm module. More precisely, it does not seem possible to create anything related to realm_settings -> keys. I may have misread the documentation, of course.

Do you think that this could be implemented ?

Issue Type

Feature Idea

Component Name

community.general.keycloak_realm

Additional Information

No response

Code of Conduct

ansibullbot commented 2 years ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 2 years ago

cc @eikef @kris2kris @ndclt click here for bot help

kris2kris commented 2 years ago

"Keys" are not properties of realm but have their own endpoints https://www.keycloak.org/docs-api/15.0/rest-api/index.html#_key_resource I think it could be added in is own module, something like keycloal_key

haresotto commented 2 years ago

Yes, that is what I thought after I read an export of the configuration, but I am such a beginner at keycloak that I could not be sure. It would be great if this module could be created.

gthieleb commented 2 years ago

terraform is another choice for this approach as it has a relatively feature complete keycloak provider. You can then still use ansibles terraform module to perform the configuration without diving that deep into terraforms dsl.

1: https://registry.terraform.io/provider/mrparkers/keycloak/latest 2: https://docs.ansible.com/ansible/latest/collections/community/general/terraform_module.html

ansibullbot commented 2 years ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 1 year ago

cc @mattock click here for bot help

ansibullbot commented 3 months ago

cc @thomasbach-dev click here for bot help