Skip to content

Security: harden API ingress and CI scanning#117

Merged
samrusani merged 1 commit intomainfrom
mvp-pentest-02
Apr 9, 2026
Merged

Security: harden API ingress and CI scanning#117
samrusani merged 1 commit intomainfrom
mvp-pentest-02

Conversation

@samrusani
Copy link
Copy Markdown
Owner

Summary

This PR hardens the public API entrypoints and the repository security posture without changing the control docs.

What changed

  • adds deterministic entrypoint rate limiting for magic-link start/verify and Telegram webhook ingress
  • adds configurable CORS, security headers, and trusted-proxy handling for the API
  • hides magic-link challenge tokens outside development and requires configured Telegram webhook ingress outside development
  • adds security posture integration coverage and expands unit/integration coverage for the new config and rate-limiter behavior
  • adds GitHub security automation with Dependabot, Gitleaks, and CodeQL
  • tightens npm publish workflow permissions and serializes publish runs

Verification

  • ./.venv/bin/python -m pytest tests/unit/test_config.py tests/unit/test_main.py tests/integration/test_http_security_posture.py tests/integration/test_phase10_identity_workspace_bootstrap_api.py tests/integration/test_phase10_telegram_transport_api.py -q
  • result: 83 passed in 7.10s

Notes

  • This branch was merged under explicit user override of the normal packet/report alignment policy for this repo.

@samrusani samrusani merged commit d39ace6 into main Apr 9, 2026
0 of 3 checks passed
@samrusani samrusani deleted the mvp-pentest-02 branch April 9, 2026 22:12
samrusani added a commit that referenced this pull request Apr 11, 2026
Co-authored-by: Redacted User <redacted@users.noreply.github.com>
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