Add single-use identity password setup
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

This commit is contained in:
tegwick 2026-07-28 17:30:23 +02:00
parent a58df4c3e6
commit 76270a239e
5 changed files with 319 additions and 4 deletions

View file

@ -34,6 +34,8 @@ spec:
- name: PROVISIONER_SERVICE_TOKEN
valueFrom:
secretKeyRef: {name: identity-provisioner-token, key: token}
- {name: PASSWORD_SETUP_PUBLIC_URL, value: "https://kc.coulomb.social/setup/password"}
- {name: PASSWORD_SETUP_TTL_SECONDS, value: "900"}
securityContext:
allowPrivilegeEscalation: false
capabilities: {drop: ["ALL"]}
@ -73,11 +75,43 @@ spec:
podSelector:
matchLabels: {app.kubernetes.io/name: user-engine}
ports: [{protocol: TCP, port: 8080}]
- from:
- namespaceSelector:
matchLabels: {kubernetes.io/metadata.name: kube-system}
podSelector:
matchLabels: {app.kubernetes.io/name: traefik}
ports: [{protocol: TCP, port: 8080}]
egress:
- to:
- podSelector:
matchLabels: {app.kubernetes.io/name: lldap}
ports: [{protocol: TCP, port: 17170}]
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: identity-password-setup
namespace: sso
labels:
app.kubernetes.io/name: identity-provisioner
app.kubernetes.io/part-of: net-kingdom-sso-mfa
annotations:
traefik.ingress.kubernetes.io/router.middlewares: "sso-keycape-rate-limit@kubernetescrd, sso-keycape-hsts@kubernetescrd"
spec:
ingressClassName: traefik
rules:
- host: kc.coulomb.social
http:
paths:
- path: /setup/password
pathType: Exact
backend:
service:
name: identity-provisioner
port: {number: 8080}
tls:
- hosts: [kc.coulomb.social]
secretName: kc-tls
- to:
- namespaceSelector:
matchLabels: {kubernetes.io/metadata.name: kube-system}