2026-01-08 01:55:58 -03:00
|
|
|
# services/comms/mas-configmap.yaml
|
2025-12-31 15:37:54 -03:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
metadata:
|
|
|
|
|
name: matrix-authentication-service-config
|
|
|
|
|
data:
|
|
|
|
|
config.yaml: |
|
|
|
|
|
http:
|
|
|
|
|
public_base: "https://matrix.live.bstein.dev/"
|
2025-12-31 15:57:33 -03:00
|
|
|
listeners:
|
|
|
|
|
- name: web
|
|
|
|
|
resources:
|
|
|
|
|
- name: discovery
|
|
|
|
|
- name: human
|
|
|
|
|
- name: oauth
|
|
|
|
|
- name: compat
|
|
|
|
|
- name: graphql
|
|
|
|
|
- name: assets
|
|
|
|
|
binds:
|
|
|
|
|
- address: "0.0.0.0:8080"
|
|
|
|
|
- name: internal
|
|
|
|
|
resources:
|
|
|
|
|
- name: health
|
2026-01-01 18:22:32 -03:00
|
|
|
- name: adminapi
|
2025-12-31 15:57:33 -03:00
|
|
|
binds:
|
2026-01-01 18:22:32 -03:00
|
|
|
- address: "0.0.0.0:8081"
|
2025-12-31 15:37:54 -03:00
|
|
|
|
|
|
|
|
database:
|
|
|
|
|
uri: "postgresql://mas:@@MAS_DB_PASSWORD@@@postgres-service.postgres.svc.cluster.local:5432/mas?sslmode=prefer"
|
|
|
|
|
|
2026-01-01 18:22:32 -03:00
|
|
|
clients:
|
|
|
|
|
- client_id: 01KDXMVQBQ5JNY6SEJPZW6Z8BM
|
|
|
|
|
client_auth_method: client_secret_basic
|
2026-01-15 23:56:32 -03:00
|
|
|
client_secret_file: /vault/secrets/mas-admin-secret
|
2026-01-01 18:22:32 -03:00
|
|
|
|
2025-12-31 15:37:54 -03:00
|
|
|
secrets:
|
2026-01-15 23:56:32 -03:00
|
|
|
encryption_file: /vault/secrets/mas-encryption
|
2025-12-31 15:49:21 -03:00
|
|
|
keys:
|
|
|
|
|
- kid: "othrys-rsa-1"
|
2026-01-15 23:56:32 -03:00
|
|
|
key_file: /vault/secrets/mas-rsa-key
|
2025-12-31 15:37:54 -03:00
|
|
|
|
|
|
|
|
passwords:
|
|
|
|
|
enabled: true
|
2025-12-31 18:27:04 -03:00
|
|
|
schemes:
|
|
|
|
|
- version: 1
|
|
|
|
|
algorithm: bcrypt
|
2025-12-31 15:37:54 -03:00
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
|
kind: synapse
|
|
|
|
|
homeserver: live.bstein.dev
|
|
|
|
|
endpoint: "http://othrys-synapse-matrix-synapse:8008/"
|
2025-12-31 15:49:21 -03:00
|
|
|
secret: "@@MATRIX_SHARED_SECRET@@"
|
2025-12-31 15:37:54 -03:00
|
|
|
|
|
|
|
|
upstream_oauth2:
|
|
|
|
|
providers:
|
|
|
|
|
- id: 01KDTTKYCYTAAAQKMAKZZ5CPW3
|
|
|
|
|
synapse_idp_id: oidc-keycloak
|
|
|
|
|
issuer: "https://sso.bstein.dev/realms/atlas"
|
|
|
|
|
human_name: "Keycloak"
|
|
|
|
|
brand_name: "keycloak"
|
|
|
|
|
client_id: "othrys-mas"
|
2025-12-31 15:49:21 -03:00
|
|
|
client_secret: "@@KEYCLOAK_CLIENT_SECRET@@"
|
2025-12-31 15:37:54 -03:00
|
|
|
token_endpoint_auth_method: client_secret_post
|
|
|
|
|
scope: "openid profile email"
|
|
|
|
|
claims_imports:
|
|
|
|
|
localpart:
|
|
|
|
|
action: require
|
|
|
|
|
template: "{{ user.preferred_username }}"
|
|
|
|
|
on_conflict: add
|
|
|
|
|
displayname:
|
|
|
|
|
action: force
|
|
|
|
|
template: "{{ user.name }}"
|
|
|
|
|
email:
|
|
|
|
|
action: force
|
|
|
|
|
template: "{{ user.email }}"
|
|
|
|
|
|
|
|
|
|
policy:
|
|
|
|
|
data:
|
2026-01-01 18:22:32 -03:00
|
|
|
admin_clients:
|
|
|
|
|
- 01KDXMVQBQ5JNY6SEJPZW6Z8BM
|
2025-12-31 15:37:54 -03:00
|
|
|
client_registration:
|
|
|
|
|
allow_insecure_uris: true
|
|
|
|
|
allow_host_mismatch: true
|
|
|
|
|
allow_missing_client_uri: true
|