Skip to content

feat: core API foundation (health check, security filters, and URL validation)#2

Merged
eupsama merged 15 commits into
amagovpt:mainfrom
Filipedavila:develop
May 26, 2026
Merged

feat: core API foundation (health check, security filters, and URL validation)#2
eupsama merged 15 commits into
amagovpt:mainfrom
Filipedavila:develop

Conversation

@Filipedavila

Copy link
Copy Markdown
Collaborator

Description

This PR sets up the core API foundation, covering Health Checks, Global Interceptors/Filters, and URL Security Validation. It also removes dead code and updates the CI pipeline.

Changes

  • Health Check: Added /health module using @nestjs/terminus.
  • Security: Added strict CORS, Referer validation, and SSRF network mitigation (validateUrlRestriction).
  • API Standards: Added global response interceptors, custom exceptions (InvalidUrlException), and a centralized exception filter.
  • CI & Cleanup: Deleted unused password hashing code and fixed CI to include devDependencies.
  • Tests: Added E2E and unit tests for the new access control and validation rules.

…l test cases for URL validation and access control
@eupsama eupsama merged commit c66d727 into amagovpt:main May 26, 2026
1 check passed
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