adorsys / keycloak-ssi-deployment

6 stars 8 forks source link

Use keycloak config cli to build our kc environment on aws #35

Closed ArmandMeppa closed 2 weeks ago

ArmandMeppa commented 4 months ago

Use Terraform to configure and deploy our kc as IaC, with best practices and security measures.

Please start with: https://www.keycloak.org/guides

francis-pouatcha commented 4 months ago

https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs#keycloak-setup

francis-pouatcha commented 4 months ago

I do not understand what i have to review here. How do we deploy keycloak?

I provided these scripts so we can use as example to define some automated CD of keycloak.

What i need is the use of a keycloak deployment approach. Here is a list of deployment approaches for Keycloak CI/CD:

  1. Adorsys Keycloak Config CLI: A command-line tool to manage Keycloak configurations and automate deployment tasks.
  2. Keycloak Terraform Provider: A Terraform provider for managing Keycloak resources as part of your infrastructure-as-code approach.
  3. Keycloak Operator: A Kubernetes operator that simplifies the deployment and management of Keycloak on Kubernetes clusters.
  4. Docker Compose: A tool for defining and running multi-container Docker applications, including Keycloak.
  5. Ansible Playbooks: Ansible scripts that automate the installation, configuration, and deployment of Keycloak.
  6. Shell Scripts: Custom scripts that automate Keycloak deployment steps using command-line tools.
  7. Helm Charts: Packages for deploying applications on Kubernetes, including pre-configured Keycloak deployments.
  8. Custom Operators: Kubernetes operators specifically designed for managing Keycloak deployments, offering more control and customization than the official operator.
  9. Dedicated CI/CD Tools: CI/CD platforms like Jenkins, GitLab CI/CD, or GitHub Actions, which may have plugins or integrations specifically for Keycloak.

This list covers the most common and effective approaches for deploying Keycloak in a CI/CD pipeline. The choice of an approach will depend on specific requirements, infrastructure, and familiarity with different tools.

Question: which approach are we using to deploy keycloak on the AWS-EC2 environment?

francis-pouatcha commented 4 months ago

Simple and nice Keycloak tutorial:

Just some mor eexamples of keycloak on AWS

On MUltitenancy

bengo237 commented 4 months ago

Keycloak deployment Concept

Image

bengo237 commented 4 months ago

Retrieve Secrets Manager secrets through Amazon ECS environment variables

nitch2019 commented 4 months ago

Working of Onboarding the students to take over the task. No dependency with the current online Deployement

Marcjazz commented 3 months ago

@ArmandMeppa and @bengo237 are currently on boarding the students and they will follow with this ticket from next week

hugoib commented 4 weeks ago

Import of different configuration is the remaining part.

forkimenjeckayang commented 3 weeks ago

Having this error when trying to export our KC configurations to live instance Image

forkimenjeckayang commented 3 weeks ago

The error above was due to the path of the keystore file.Since our KC instance is running in a container the file system structure changed. Here is the correct path

/opt/keycloak/target/kc_keystore.pkcs12

Running locally the realm export works well but using the container running keycloak we have another issue with the sd-jwt-signing-service Image

Branch Link: https://github.com/adorsys/keycloak-ssi-deployment/tree/35-use-keycloak-config-cli-to-build-our-kc-environment-on-aws

forkimenjeckayang commented 3 weeks ago

Image