Skip to content

feat: Add token revocation API#377

Merged
gtema merged 1 commit intomainfrom
token
Nov 20, 2025
Merged

feat: Add token revocation API#377
gtema merged 1 commit intomainfrom
token

Conversation

@gtema
Copy link
Collaborator

@gtema gtema commented Nov 19, 2025

  • Add token delete (revoke) api
  • Document reverse-engineered design under ADR
  • Add functional test to ensure revoked token is not accepted.
  • Ensure that validate_token expands the token by default, since this
    is expected by the revocation check.

@github-actions
Copy link

github-actions bot commented Nov 19, 2025

🐰 Bencher Report

Branchtoken
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
fernet token/project📈 view plot
🚷 view threshold
1,485.60 ns
(+21.59%)Baseline: 1,221.77 ns
1,562.09 ns
(95.10%)
get_fernet_token_timestamp/project📈 view plot
🚷 view threshold
165.19 ns
(+3.10%)Baseline: 160.22 ns
228.34 ns
(72.34%)
🐰 View full continuous benchmarking report in Bencher

@github-actions
Copy link

github-actions bot commented Nov 19, 2025

🦢 Load Test Results

Goose Attack Report

Plan Overview

Action Started Stopped Elapsed Users
Increasing 25-11-20 09:34:24 25-11-20 09:34:26 00:00:02 0 → 4
Maintaining 25-11-20 09:34:26 25-11-20 09:34:56 00:00:30 4
Decreasing 25-11-20 09:34:56 25-11-20 09:34:56 00:00:00 0 ← 4

Request Metrics

Method Name # Requests # Fails Average (ms) Min (ms) Max (ms) RPS Failures/s
GET 14190 0 7.95 6 13 473.00 0.00
Aggregated 14190 0 7.95 6 13 473.00 0.00

Response Time Metrics

Method Name 50%ile (ms) 60%ile (ms) 70%ile (ms) 80%ile (ms) 90%ile (ms) 95%ile (ms) 99%ile (ms) 100%ile (ms)
GET 8 8 8 8 9 9 10 13
Aggregated 8 8 8 8 9 9 10 13

Status Code Metrics

Method Name Status Codes
GET 14,190 [200]
Aggregated 14,190 [200]

Transaction Metrics

Transaction # Times Run # Fails Average (ms) Min (ms) Max (ms) RPS Failures/s
ListUsers
0.0 0 0 0.00 0 0 0.00 0.00
0.1 14190 0 7.98 6 13 473.00 0.00
Aggregated 14190 0 7.95 6 13 473.00 0.00

Scenario Metrics

Transaction # Users # Times Run Average (ms) Min (ms) Max (ms) Scenarios/s Iterations
ListUsers 4 14186 7.98 6 13 472.87 3546.50
Aggregated 4 14186 7.98 6 13 472.87 3546.50

Error Metrics

Method Name # Error

View full report

@gtema gtema added this pull request to the merge queue Nov 20, 2025
- Add token delete (revoke) api
- Document reverse-engineered design under ADR
- Add functional test to ensure revoked token is not accepted.
- Ensure that `validate_token` expands the token by default, since this
  is expected by the revocation check.
@gtema gtema merged commit 06a36ab into main Nov 20, 2025
25 of 31 checks passed
@gtema gtema deleted the token branch December 8, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments