Skip to content
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

Upgrade keycloak to 26.0.0 #208

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 25 additions & 9 deletions keycloak/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
# CDK to deploy Keycloak infrastructure
# CDK for deploying Keycloak

This is a blank project for CDK development with TypeScript.
Using this project you can deploy keycloak as a service on AWS.

The `cdk.json` file tells the CDK Toolkit how to execute your app.
## Getting Started

- Requires [NPM](https://docs.npmjs.com/cli/v7/configuring-npm/install) to be installed
- Install project dependencies using `npm install` from this project directory
- Configure [aws credentials](https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html#getting_started_prerequisites)


* Ensure that your AWS CLI is correctly configured with access credentials.
* Also ensure that you're running these commands in the current directory
* Next, install the required dependencies:

```
npm install
```

## Useful commands

* `npm run build` compile typescript to js
* `npm run watch` watch for changes and compile
* `npm run test` perform the jest unit tests
* `npx cdk deploy` deploy this stack to your default AWS account/region
* `npx cdk diff` compare deployed stack with current state
* `npx cdk synth` emits the synthesized CloudFormation template
`npm run cdk deploy *` deploys below stacks to your default AWS account/region:

* keycloakVPC - Deploys networking resources.
* KeyCloakUtils - Deploys utility stack that contains resources such as hosted zone, secrets, certificates, etc.
* KeycloakRDS - Deploys RDS related resources.
* PublicKeycloak - Deploys keycloak using docker image with admin interface disabled.
* InternalKeycloak (optional) - Deploys internally facing keycloak with admin interface enabled.
* KeycloakWAFstack - Deploys stacks containing WAF rules and attached to load balancer(s).

4 changes: 2 additions & 2 deletions keycloak/resources/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
keycloak:
restart: on-failure
container_name: keycloak
image: quay.io/keycloak/keycloak:24.0.4
image: quay.io/keycloak/keycloak:26.0.0
environment:
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://${RDS_HOSTNAME_WITH_PORT}/keycloak
Expand All @@ -12,7 +12,7 @@ services:
KC_DB_PASSWORD: ${KC_DB_PASSWORD}
KC_HTTPS_CERTIFICATE_FILE: /opt/certs/keycloak.pem
KC_HTTPS_CERTIFICATE_KEY_FILE: /opt/certs/keycloak.key
KC_FEATURES_DISABLED: 'admin-api,admin2'
KC_FEATURES_DISABLED: 'admin-api,admin'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo? Or new version change to a different name?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New version has this name

KC_HEALTH_ENABLED: true
command: start
volumes:
Expand Down
2 changes: 1 addition & 1 deletion keycloak/resources/internal-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
keycloak:
restart: on-failure
container_name: keycloakInternal
image: quay.io/keycloak/keycloak:24.0.4
image: quay.io/keycloak/keycloak:26.0.0
environment:
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://${RDS_HOSTNAME_WITH_PORT}/keycloak
Expand Down
Loading