Files
tapir/internal/adapters/dex
mathias c812c71ecc
CI / Lint / Test / Vet (push) Successful in 26s
CI / Build & Import (push) Successful in 12s
fix(dex): store raw bcrypt hash in Password CR, not base64-encoded
The original NOTE claimed Dex's kubernetes storage types Hash as []byte,
requiring the bcrypt string to be base64-encoded before storage. This was
wrong: Dex v2.41 stores and compares the hash field as a plain string. The
base64-encoding caused every invite login to fail with 'Invalid credentials'
because Dex passed the base64 bytes (starting with 'J' not '$') directly to
bcrypt. Static passwords in the configmap always used raw bcrypt strings and
worked fine — confirming the dynamic CR encoding was the bug.
2026-06-07 09:28:11 +02:00
..