Skip to content

refactor(controlplane): remove NATS backend from JWT claims and memberships caches#3009

Merged
migmartri merged 1 commit intochainloop-dev:mainfrom
migmartri:worktree-starry-floating-zebra
Apr 8, 2026
Merged

refactor(controlplane): remove NATS backend from JWT claims and memberships caches#3009
migmartri merged 1 commit intochainloop-dev:mainfrom
migmartri:worktree-starry-floating-zebra

Conversation

@migmartri
Copy link
Copy Markdown
Member

@migmartri migmartri commented Apr 8, 2026

Summary

  • Remove NATS KV backend from JWT claims cache (10s TTL) and org memberships cache (1s TTL)
  • Both caches now use in-memory storage only, reducing dependency on NATS for short-lived caches where distributed invalidation provides little benefit
  • NATS remains in use for attestation bundle and policy evaluation bundle caches which have longer TTLs and benefit from shared state

…rships caches

These two short-lived caches (10s and 1s TTL) now use in-memory storage
only, reducing dependency on NATS for caches where distributed
invalidation provides little benefit.

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

@migmartri migmartri requested a review from a team April 8, 2026 19:38
@migmartri migmartri merged commit 6df95a7 into chainloop-dev:main Apr 8, 2026
15 checks passed
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.

2 participants