Skip to content

Add persistent Redis policy storage and management - #66

Merged
yashdotdev13 merged 3 commits into
mainfrom
feat/2-persistent-policy-storage
Oct 28, 2026
Merged

yashdotdev13 merged 3 commits into
mainfrom
feat/2-persistent-policy-storage

Conversation

@yashdotdev13

Copy link
Copy Markdown
Owner

Summary

Implements persistent policy storage using Redis, allowing traffic policies to survive application restarts and remain accessible across store instances.

Changes Made

  • Introduced PolicyStore to define policy persistence operations.
  • Implemented RedisPolicyStore for storing, retrieving, updating, and removing resource-specific policies in Redis.
  • Added persistent storage for the default traffic policy, preserving existing defaults during initialization.
  • Added support for subject-specific policy storage and retrieval.
  • Implemented policy listing using a Redis-backed resource index.
  • Updated TrafficControlConfiguration to configure Redis-backed policy storage.
  • Added integration tests covering persistence, default policy initialization, subject-specific policies, and policy listing.

Testing

  • Added Redis integration tests using Testcontainers.
  • Verified resource and default policy persistence across store instances.
  • Verified subject-specific policy persistence and resource policy listing.
  • Ran the complete test suite: 138 tests passed, with 0 failures and 0 errors.

Related Issue

Closes #2

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T07:23:16.901354Z 94129b3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 94129b3eb4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@yashdotdev13
yashdotdev13 merged commit 798b4f5 into main Oct 28, 2026
2 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.

Add persistent policy storage and management APIs

1 participant