You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setup example customer domain/realm for federation #596
As a SCS Operator, I want to see an example of how to setup Keycloak and Keystone mapping so that a new customer domain/realm can onboard it's federated users.
Acceptance Criteria:
Documentation
Adjust testbed deployment to actually create an example customer realm and home-idp-discovery in Keycloak
Definition of Ready:
User Story is small enough to be finished within one sprint
User Story is clear and understood by the whole team
Acceptance criteria are defined
Acceptance criteria are clear and understood by the whole team
Currently there is a small problem to finish the ansible-playbook:
To change the requirement status of a step inside a login flow, the keycloak CLI tool needs a json file. I've tried to create the file inside the keycloak pod to use it on the next step to modify each step, but I've failed.
Here is a snippet of what I've tried. The main idea is to create the json file and then use it on the next call.
Currently there is a small problem to finish the ansible-playbook: To change the requirement status of a step inside a login flow, the keycloak CLI tool needs a json file. I've tried to create the file inside the keycloak pod to use it on the next step to modify each step, but I've failed.
Here is a snippet of what I've tried. The main idea is to create the json file and then use it on the next call.
What means "but it doesn't work"? Can you please paste the error message of the failed task. The file /tmp/{{ item }}.json should be available inside the osism-ansible container after the Create JSONs ALTERNATIVE status task. After the Copy JSONs ALTERNATIVE status into KC task it should be available at the same location inside the keycloak_service_container_name container.
Found a suitable solution, I'll bake into the scs-keycloak container a script that creates the required files, so it can be called from the playbook. My PoC has worked today so tomorrow there will be a MR to the container repo.
The playbook MR still needs some fixes, but its on a good state right now.
Activity
JuanPTM commentedon Apr 12, 2024
I got some notes about what should we make:
OSISMin the testbed)keystoneinOSISMrealmCustomerin the testbed)Customerrealm (and mappers)OSISMrealm (and mappers)ALTERNATIVErequirement on the login flow stepsAliceuser inCustomerrealmI think I didn't forget anything.
JuanPTM commentedon May 2, 2024
MR created, still in draft status until we figure out how to modify the requirements status of the steps in the login flow.
osism/ansible-playbooks#403
JuanPTM commentedon May 7, 2024
Added an initial version to the docs. SovereignCloudStack/docs#190
JuanPTM commentedon May 8, 2024
Currently there is a small problem to finish the ansible-playbook:
To change the requirement status of a step inside a login flow, the keycloak CLI tool needs a json file. I've tried to create the file inside the keycloak pod to use it on the next step to modify each step, but I've failed.
Here is a snippet of what I've tried. The main idea is to create the json file and then use it on the next call.
JuanPTM commentedon May 8, 2024
My current approach is to create the files, create a task that does the kubectl cp into the kc pod and finally run the kcadmin command
berendt commentedon May 8, 2024
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html
You have to do it this way:
You try to use a shell command. If you want to do it this way (ansible.builtin.copy is better) you have to use the ansible.builtin.shell task.
JuanPTM commentedon May 9, 2024
I've tried that but the file created ends up on the osism-ansible container, then I try to
kubectl cpit into the keycloak pod, but it doesn't workCurrently I have the files correctly created on
/tmp/{id}.jsonberendt commentedon May 14, 2024
What means "but it doesn't work"? Can you please paste the error message of the failed task. The file
/tmp/{{ item }}.jsonshould be available inside the osism-ansible container after theCreate JSONs ALTERNATIVE statustask. After theCopy JSONs ALTERNATIVE status into KCtask it should be available at the same location inside thekeycloak_service_container_namecontainer.JuanPTM commentedon May 14, 2024
The files exists in the osism-ansible container:
berendt commentedon May 14, 2024
This is your issue:
exec: \"tar\": executable file not found in $PATH: unknown"]For me it looks like the
kubectl cpcommand tries to calltarinside thekeycloak_service_container_namecontainer.berendt commentedon May 14, 2024
JuanPTM commentedon May 16, 2024
Found a suitable solution, I'll bake into the scs-keycloak container a script that creates the required files, so it can be called from the playbook. My PoC has worked today so tomorrow there will be a MR to the container repo.
The playbook MR still needs some fixes, but its on a good state right now.
Setup example customer domain/realm for federation (#403)