Securecookie cookies + Cookie key (BYO + leader-generated) #33
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lab/authz-bridge#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#31 — Spec: public-client support + replace hand-rolled protocol code with the x/oauth2 + go-oidc + hstern trio
What to build
The Session and State cookies become signed+encrypted
gorilla/securecookieblobs. The Session blob holds{idToken, refreshToken}; the State blob holds{appKey, nonce, returnTo}. A single bridge-level Cookie key (an HMAC hashKey + an AES blockKey) is shared by all replicas: if a key Secret already exists (BYO) the bridge uses it; otherwise the leader generates a strong random key and writes it create-if-absent. A cookie set by one replica must decode on any other.Acceptance criteria
make testpasses (serve cookie round-trip tests + leader key-authoring envtest).Blocked by