Add terraform configuration for Keycloak for the local development environment#1085
Merged
sschuberth merged 4 commits intomainfrom Apr 15, 2025
Merged
Add terraform configuration for Keycloak for the local development environment#1085sschuberth merged 4 commits intomainfrom
sschuberth merged 4 commits intomainfrom
Conversation
792333d to
a7f624a
Compare
562857b to
c33f33a
Compare
dcd3ed8 to
e025708
Compare
e025708 to
e3cb918
Compare
e3cb918 to
6d2d291
Compare
6d2d291 to
ff40da4
Compare
ff40da4 to
38b32da
Compare
38b32da to
8f1272c
Compare
Member
|
@sparsick, feel free to chime in if you have something to comment on! |
This will prevent an error when starting the API in development mode, where it was failing to read the .env file. Signed-off-by: Johanna Lamppu <[email protected]>
To make the current Keycloak setup more transparent and to make testing new changes easier in local development, add a Keycloak setup with Terraform and add Keycloak and Terraform to the Docker Compose setup. Signed-off-by: Johanna Lamppu <[email protected]>
Use the Keycloak instance in Docker Compose by default in the local development environment. With this change, the Keycloak URL, realm, and the client configuration environment variables all now have a default value, and so they don't need to be set in the local development environment. Signed-off-by: Johanna Lamppu <[email protected]>
Use the Docker Compose Keycloak instance for API and Clearance UI in the Docker Compose environment and use it in the Playwright tests in the GitHub workflow. With this change, also the end-to-end user credentials don't need to be given as environment variables anymore, and the `E2E_USER_USERNAME` and `E2E_USER_PASSWORD` variables are completely removed. Signed-off-by: Johanna Lamppu <[email protected]>
8f1272c to
edc6d27
Compare
Etsija
approved these changes
Apr 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a Keycloak instance to the Docker Compose environment and add Terraform configuration that matches the current setup for Keycloak needed for DOS. Use this instance by default in the local development environment and also use this Keycloak instance in the Playwright tests in the GitHub workflow.
Please see the individual commits for details.