Skip to content

Cyber/secure design elvia#247

Open
elviacorrea wants to merge 16 commits into
dev-cyberfrom
cyber/secure-design-elvia
Open

Cyber/secure design elvia#247
elviacorrea wants to merge 16 commits into
dev-cyberfrom
cyber/secure-design-elvia

Conversation

@elviacorrea
Copy link
Copy Markdown
Collaborator

This PR adds backend security coverage for input validation and request signature verification.

Changes

  • Added registration input validation for:

    • Empty usernames
    • Invalid email formats
    • Short passwords
    • Invalid user roles
    • SQL-injection-style usernames
  • Added API request signature verification using:

    • HMAC-SHA256 signatures
    • RSA signatures
    • Timestamp freshness checks
    • Rejection of missing, expired, tampered, or invalid signatures
  • Added a demo signature verification API endpoint at /api/verify

  • Added automated tests for both validation and signature verification behavior

Testing

  • Ran invalid input validation tests
  • Ran signature verification tests
  • Confirmed wrong secrets and tampered payloads are rejected
  • Confirmed valid signed payloads are accepted

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