Skip to content

Feature/pubsub#115

Merged
jamals86 merged 3 commits intomainfrom
feature/pubsub
Feb 2, 2026
Merged

Feature/pubsub#115
jamals86 merged 3 commits intomainfrom
feature/pubsub

Conversation

@jamals86
Copy link
Copy Markdown
Collaborator

@jamals86 jamals86 commented Feb 2, 2026

No description provided.

Introduce IP-based auth rate limiting and tighten health/cluster access, plus add a topic cleanup job and migrate offset storage.

Key changes:
- Add RateLimiter auth_ip_buckets, max_auth_requests_per_ip_per_sec, and check_auth_rate; include unit test. Update login/refresh/setup handlers to enforce auth rate limits.
- Restrict health and cluster health endpoints (including root /health) to localhost-only using extract_client_ip_secure.
- Add default config and type for max_auth_requests_per_ip_per_sec.
- Migrate consumer offset tracking out of kalamdb-tables into kalamdb-system TopicOffsetsTableProvider; remove topic offset models/store from kalamdb-tables. TopicPublisherService now uses TopicOffsetsTableProvider and ack_offset signature updated.
- Add delete_topic_offsets to TopicOffsetsTableProvider to support cleanup flows.
- Add TopicCleanupExecutor job to perform idempotent cleanup of topic messages and offsets (with tests and TODO for message-store deletion).
- Update consume logic to use last_acked_offset when computing start positions.
- Add integration tests for topic pub/sub and other minor test/refactor updates.

These changes improve security (rate-limiting, localhost health) and move offset persistence to the system provider while adding a background job for safe topic data cleanup.
@jamals86 jamals86 merged commit f25bfac into main Feb 2, 2026
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