Repository navigation
CMR-11630: As a CMR operator I want to add a token and user deny list to CMR access control. - #2539
Merged
Merged
Conversation
jceaser
reviewed
Nov 16, 2026
| (defn create-snapshot-cache | ||
| "Creates the cache holding this instance's snapshot of the deny list." | ||
| [] | ||
| (mem-cache/create-in-memory-cache)) |
Contributor
There was a problem hiding this comment.
I may not remember how the cache code works, but is this ignored by the code as the store method uses the Redis cache system?
Contributor
Author
There was a problem hiding this comment.
redis holds the list, the instances keep a snapshot that updates via polling
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2539 +/- ##
==========================================
+ Coverage 54.52% 54.54% +0.02%
==========================================
Files 1047 1049 +2
Lines 73638 73886 +248
Branches 2417 2445 +28
==========================================
+ Hits 40148 40302 +154
- Misses 31205 31272 +67
- Partials 2285 2312 +27 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
daniel-zamora
force-pushed
the
CMR-11630
branch
from
November 17, 2026 18:11
4c47e4f to
7d27180
Compare
jaortega527
approved these changes
Nov 20, 2026
jaortega527
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the changes manually and using LLM. No findings.
eereiter
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
What is the objective?
CMR has no way to revoke a specific token or user. Removing ACLs still leaves registered access, and tokens revoked in EDL keep working while JWTs are verified locally. This adds a CMR deny list for tokens and users.
What are the changes?
CMR_TOKEN_DENYLIST_REFRESH_SECONDS) and keeps its last copy if Redis is unavailable. Before an instance's first load, requests wait up to 500 ms for it and then go unchecked./current-sidsalso rejects listed tokens.GET /token-denylistandPUT/DELETE /token-denylist/{tokens|users}/:id, requiring systemINGEST_MANAGEMENT_ACL. Changes also need a token that passes the write token check.reasonis optional, at most 500 characters. Documented in the access-control API docs.Bearerprefix. The API docs give the commands.user, when already known without extra lookups, andtoken_hash.token_hashis also logged on ingest's "Deleting" lines and on search's "Found" and granule timeline lines. The system token is never hashed into logs.What areas of the application does this impact?
Required Checklist
Additional Checklist