Files
computer-playbook/roles/web-app-keycloak/config/main.yml
Kevin Veen-Birkenbach 6fcf6a1ab6 feat(keycloak): add automation service account client support
Introduce a confidential service-account client (Option A) to replace user-based
kcadm sessions. The client is created automatically, granted realm-admin role,
and used for all subsequent Keycloak updates. Includes improved error handling
for HTTP 401 responses.

Discussion: https://chatgpt.com/share/68e01da3-39fc-800f-81be-2d0c8efd81a1
2025-10-03 21:02:16 +02:00

53 lines
1.5 KiB
YAML

load_dependencies: True # When set to false the dependencies aren't loaded. Helpful for developing
actions:
import_realm: True # Import REALM
create_automation_client: True
features:
matomo: true
css: true
desktop: true
ldap: true
central_database: true
recaptcha: true
# Doesn't make sense to activate logout page for keycloak, because the logout page
# anyhow should be included via iframe in keycloak.
# The JS is also messing with the keycloak config fields
# @todo optimize the JS
logout: false
server:
csp:
flags:
script-src-elem:
unsafe-inline: true
script-src:
unsafe-inline: true
style-src:
unsafe-inline: true
whitelist:
frame-src:
- "*" # For frontend channel logout it's necessary that iframes can be loaded
domains:
canonical:
- "auth.{{ PRIMARY_DOMAIN }}"
aliases: []
scopes:
nextcloud: nextcloud
docker:
services:
keycloak:
image: "quay.io/keycloak/keycloak"
version: "latest"
name: "keycloak"
cpus: "2.0"
mem_reservation: "2g"
mem_limit: "4g"
pids_limit: 1024
database:
enabled: true
credentials:
recaptcha:
website_key: "" # Required if you enabled recaptcha:
secret_key: "" # Required if you enabled recaptcha: