Skip to content

Secure HMAC Signature Validation for Inter-Service Calls #158

@Cedarich

Description

@Cedarich

Complexity Score: 150

Description

Ensure that only the NestJS backend can call the Python AI layer.

Requirements

  • Implement a middleware in FastAPI to verify HMAC signatures on all incoming requests.
  • Use a shared secret key stored in environment variables.
  • Reject requests with invalid or missing signatures with a 403 Forbidden.
  • Add documentation on how to generate the signature in the NestJS backend.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programai-servicePython FastAPI microservice for AI verification, OCR, and privacy scrubbing.good first issueGood for newcomerspython

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions