Set the audiobookshelf alex email for OIDC account matching #230

Closed
wiring-guru wants to merge 1 commit from wiring-guru/audiobookshelf-alex-email into main AGit
Contributor

A one-shot Job sets alex@audiobookshelf email to alexmickelson96@gmail.com in absdatabase.sqlite, which OIDC match-by-email needs before the tsidp client can be used. Idempotent: it only fills an empty email.

A one-shot Job sets alex@audiobookshelf email to alexmickelson96@gmail.com in absdatabase.sqlite, which OIDC match-by-email needs before the tsidp client can be used. Idempotent: it only fills an empty email.
Audiobookshelf keeps its server settings and users in absdatabase.sqlite, so no
manifest can carry the OIDC configuration; a one-shot Job is the only piece of this
that belongs in git. The account is matched by email on first OIDC login
(authOpenIDMatchExistingBy), and every user in that database has an empty email, so
without this the login has nothing to attach to and auto-register would create a
second account.

The Job runs the pinned audiobookshelf image, so the sqlite3 module and schema are
the ones the app itself uses. It only fills an empty email, which makes a re-run a
no-op, and exits non-zero when the stored value does not end up as expected.
Author
Contributor

Superseded: setting one user's email is a one-time kubectl exec against absdatabase.sqlite, so no Kubernetes resource belongs in the repo for it.

Superseded: setting one user's email is a one-time kubectl exec against absdatabase.sqlite, so no Kubernetes resource belongs in the repo for it.
wiring-guru closed this pull request 2026-11-11 17:00:08 -07:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
alex/infrastructure!230
No description provided.