OAuth token revocation (RFC 7009) #427

Closed
opened 2026-11-18 05:14:39 +00:00 by jcoffey-dev · 5 comments
Owner

K-S4 · size M · part of inbuxa for Kubernetes (tracking issue in inbuxa-charts)

Webmail sessions become stateless cookies (K-W1), so signing out has to revoke the tokens at the server. Add a revocation endpoint backed by a denylist in the store with a TTL, and advertise it in the discovery metadata.

Done when

  • Revoked access and refresh tokens are refused on every node within seconds
  • Denylist entries expire with the token
  • Discovery metadata lists revocation_endpoint
  • Tests

Depends on: S3

**K-S4** · size M · part of inbuxa for Kubernetes (tracking issue in inbuxa-charts) Webmail sessions become stateless cookies (K-W1), so signing out has to revoke the tokens at the server. Add a revocation endpoint backed by a denylist in the store with a TTL, and advertise it in the discovery metadata. **Done when** - Revoked access and refresh tokens are refused on every node within seconds - Denylist entries expire with the token - Discovery metadata lists revocation_endpoint - Tests **Depends on:** S3
jcoffey-dev added this to the 27.1 milestone 2026-11-18 05:14:39 +00:00
jcoffey-dev added the securityenhancement
priority
p1
labels 2026-11-18 05:14:39 +00:00
jcoffey-dev self-assigned this 2026-11-18 06:28:57 +00:00
Author
Owner

Scope settled (decided 2026-11-17): a short-lived denylist, not a grant registry, for 27.1. Revoking a token puts a hash of it in the store until the token's own expiry; validation checks it with a short in-memory cache (revocation takes effect on every node within that cache time). RFC 7009 endpoint plus revocation_endpoint in discovery. A full grant registry (list and revoke an account's sessions, and a sessions view in the console) is filed separately for after 27.1.

**Scope settled (decided 2026-11-17):** a short-lived denylist, not a grant registry, for 27.1. Revoking a token puts a hash of it in the store until the token's own expiry; validation checks it with a short in-memory cache (revocation takes effect on every node within that cache time). RFC 7009 endpoint plus `revocation_endpoint` in discovery. A full grant registry (list and revoke an account's sessions, and a sessions view in the console) is filed separately for after 27.1.
Author
Owner

Folded into the checklist on inbuxa/inbuxa-charts#14 to keep the issue list short. The details stay here; reopen this when work on it starts.

Folded into the checklist on inbuxa/inbuxa-charts#14 to keep the issue list short. The details stay here; reopen this when work on it starts.
Author
Owner

Reopened: work on this is in progress.

Reopened: work on this is in progress.
Author
Owner

PR #438. Local: unit tests, system::system_tests (RocksDB) green with new revocation steps, CI build steps, fork checks. Webmail side: inbuxa-webmail#104 on PR inbuxa-webmail#109.

PR #438. Local: unit tests, `system::system_tests` (RocksDB) green with new revocation steps, CI build steps, fork checks. Webmail side: inbuxa-webmail#104 on PR inbuxa-webmail#109.
Author
Owner

Fixed in #438, merged to main; ships in the next 27.1 release candidate.

Fixed in #438, merged to main; ships in the next 27.1 release candidate.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-server#427