Skip to content

feat(security): credentials encryption, rate limit, IP allowlist, RBAC - #173

Merged
OkiriGabriel merged 1 commit into
mainfrom
feat/security-gaps-60-64-ip-rbac
Nov 14, 2026
Merged

OkiriGabriel merged 1 commit into
mainfrom
feat/security-gaps-60-64-ip-rbac

Conversation

@OkiriGabriel

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • pytest tests/test_credential_crypto.py tests/test_security_middleware.py tests/test_api_auth.py tests/test_env_example_coverage.py
  • Enable ENCRYPT_CREDENTIALS locally, save org config, confirm storage blob has _encrypted
  • Set RATE_LIMIT_ENABLED=true with low RATE_LIMIT_REQUESTS and confirm 429
  • Set ALLOWED_IPS to a non-matching IP and confirm 403

Closes #60 (encryption portion). Advances #64 (rate limit + IP allowlist).

Made with Cursor

Implement #60 Fernet encryption at rest, #64 sliding-window rate limits,
optional ALLOWED_IPS middleware, and admin/approver/viewer roles on
management API tokens. Update docs and env example to match.

Co-authored-by: Cursor <[email protected]>
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.

[SECURITY] Encrypt org credentials at rest (BYOK storage)

1 participant