feat(dev): generate OIDC signing keys on just dev if missing #22

Merged
longjacksonle merged 1 commit from feat/dev-ensure-oidc-keys into main 2026-05-31 19:29:21 +02:00

bunyip-api is the OIDC issuer and loads an Ed25519 signing key at startup (OIDC_JWT_PRIVATE_KEY_PATH), so a fresh clone fails to boot until the key exists - the .env.example only documents the manual openssl steps in a comment. Add an idempotent ensure-oidc-keys recipe that generates secrets/dev-2026.pem + .pub.pem (kid dev-2026, matching the .env.example defaults) when absent, and make dev / dev-detach / dev-sso depend on it alongside ensure-env. Mirrors mokosh-server's ensure-oidc-keys. The keypair stays gitignored.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

bunyip-api is the OIDC issuer and loads an Ed25519 signing key at startup (OIDC_JWT_PRIVATE_KEY_PATH), so a fresh clone fails to boot until the key exists - the .env.example only documents the manual openssl steps in a comment. Add an idempotent `ensure-oidc-keys` recipe that generates secrets/dev-2026.pem + .pub.pem (kid dev-2026, matching the .env.example defaults) when absent, and make dev / dev-detach / dev-sso depend on it alongside ensure-env. Mirrors mokosh-server's ensure-oidc-keys. The keypair stays gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
feat(dev): generate OIDC signing keys on just dev if missing
Some checks failed
Create release / Create release from merged PR (pull_request) Has been skipped
Check / fmt / clippy / build / test (pull_request) Failing after 8s
7926e5be3c
bunyip-api is the OIDC issuer and loads an Ed25519 signing key at startup (OIDC_JWT_PRIVATE_KEY_PATH), so a fresh clone fails to boot until the key exists - the .env.example only documents the manual openssl steps in a comment. Add an idempotent `ensure-oidc-keys` recipe that generates secrets/dev-2026.pem + .pub.pem (kid dev-2026, matching the .env.example defaults) when absent, and make dev / dev-detach / dev-sso depend on it alongside ensure-env. Mirrors mokosh-server's ensure-oidc-keys. The keypair stays gitignored.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
longjacksonle deleted branch feat/dev-ensure-oidc-keys 2026-05-31 19:29:22 +02:00
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
psa-systems/bunyip!22
No description provided.