Repository navigation
feat(cdk): Cognito JWT authorizer + CORS lab (ADR-001 PR3) - #6
Merged
Merged
Conversation
…-001 PR3) - User Pool + App Client (USER_PASSWORD/USER_SRP, lab) - HttpJwtAuthorizer on solicitar/status/confirmar; /health public - CORS: drop *; localhost:3000 (+ context corsOrigins) - SECURITY.md honest (no WAF/ACM claims); README token/test section
patote85
added a commit
that referenced
this pull request
Sep 24, 2026
patote85
added a commit
that referenced
this pull request
Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ADR-001 PR3 — Cognito JWT no HttpApi + CORS de lab sem
*+SECURITY.mdalinhado ao CDK real.Não mergear sem CAB. Sem deploy neste PR.
O que muda
USER_PASSWORD+USER_SRP, sem client secret)HttpJwtAuthorizernas rotas protegidas;GET /healthpúblico*; defaultshttp://localhost:3000/http://127.0.0.1:3000; override via CDK contextcorsOriginsUserPoolId,UserPoolClientId,JwtIssuer(+ApiUrlexistente)Rotas
POST /solicitar-exclusao-clienteGET /status-exclusao/{cliente_id}POST /confirmar-pagamentoGET /healthArquivos
cdk/app.pySECURITY.mdREADME.mdFora de escopo
Test plan
npx aws-cdk@2 synth(conta lab / CAB)initiate-auth→ IdTokenGET /healthsem token → 200