Minimal Pocket ID provider: OIDC clients and write-only secrets #2

Merged
john merged 2 commits from feat/oidc-client into main 2026-11-20 00:09:12 +00:00
Owner

Our own provider so the code holding the Pocket ID admin key is only the plugin framework plus the Go standard library, built reproducibly and signed in-house.

  • pocketid_oidc_client: callbacks, logout URLs, public/confidential, PKCE, reauthentication, launch URL, allowed user groups (empty = every user). Import by client ID never touches secrets; a secret auto-created on a new confidential client is revoked at once.
  • pocketid_oidc_client_secret: write-only value (never in plans or state), rotation via value_wo_version with create-before-destroy.
  • API client: X-API-Key, https only (loopback http), redirects refused, bounded responses, key never in errors.

Verified locally against Pocket ID v2.19.3 (same as auth.yawn.dev) with a static test key: acceptance test (create, update, rotate, import), an OpenTofu 1.13.9 run confirming the secret value is absent from state and a re-plan is empty, check.sh (vet, tests, govulncheck), and two byte-identical release builds. VERSION stays 0.1.0-dev.1; the release bump comes after arch #29 registers the signing slot.

Our own provider so the code holding the Pocket ID admin key is only the plugin framework plus the Go standard library, built reproducibly and signed in-house. - `pocketid_oidc_client`: callbacks, logout URLs, public/confidential, PKCE, reauthentication, launch URL, allowed user groups (empty = every user). Import by client ID never touches secrets; a secret auto-created on a new confidential client is revoked at once. - `pocketid_oidc_client_secret`: write-only value (never in plans or state), rotation via `value_wo_version` with create-before-destroy. - API client: X-API-Key, https only (loopback http), redirects refused, bounded responses, key never in errors. Verified locally against Pocket ID **v2.19.3** (same as auth.yawn.dev) with a static test key: acceptance test (create, update, rotate, import), an OpenTofu 1.13.9 run confirming the secret value is absent from state and a re-plan is empty, `check.sh` (vet, tests, govulncheck), and two byte-identical release builds. VERSION stays 0.1.0-dev.1; the release bump comes after arch #29 registers the signing slot.
Minimal Pocket ID provider: OIDC clients and write-only client secrets
Some checks failed
CI / release-check-1 (pull_request) Successful in 11s
CI / release-check (pull_request) Successful in 0s
Security / scan (pull_request) Successful in 30s
Security / security (pull_request) Successful in 0s
CI / check (pull_request) Failing after 3m3s
f5c5f8f4a9
ci: regenerate workflows with the pinned yawn 0.3.0-dev.22
All checks were successful
CI / release-check-1 (pull_request) Successful in 12s
CI / release-check (pull_request) Successful in 0s
Security / scan (pull_request) Successful in 30s
Security / security (pull_request) Successful in 0s
CI / check (pull_request) Successful in 1m30s
e44a9545b6
john merged commit b8b63b8475 into main 2026-11-20 00:09:12 +00:00
john deleted branch feat/oidc-client 2026-11-20 00:09:12 +00: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
john/tofu-provider-pocketid!2
No description provided.