fix(keycloak): trust both bitborg-id subnets as proxy sources #750
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra!750
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/keycloak-trusted-proxy"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Refs #670.
Problem
On staging, isolated Keycloak ignored
X-Forwarded-*. Rootlessport connects to Keycloak from the container's own address on either of its networks. Staging used thebitborg-id-dataaddress (10.89.11.3), but only thebitborg-idsubnet was trusted.Effects:
Secure.id.stg.bitborg.seshowed an error.10.89.11.3instead of the client address.Change
KC_PROXY_TRUSTED_ADDRESSESlists bothbitborg-idsubnets whenkeycloak_isolatedis true. The non-isolated value does not change, so prod is unchanged.Verified
Applied to staging from this branch (
--tags keycloak). The dry-run showed one changed task, and the health gate passed. After the restart, events show the real client IP, and there are no non-secure-context warnings.