Repository navigation
B05: segurança base e observabilidade - #90
Merged
Merged
Conversation
…errer-Policy, Permissions-Policy)
15 tasks
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.
Resumo
App\Providers\SecurityServiceProvider):login/password-reset(IP+e-mail),checkout/webhooks(IP), limites via.env(RATE_LIMIT_*)X-Content-Type-Options,Referrer-Policy,Permissions-Policy,Content-Security-Policy(CSP mais frouxa só em/docs/*, que carrega Stoplight Elements do unpkg),Strict-Transport-Securityquando HTTPSCORS_ALLOWED_ORIGINS(não mais*), expõeX-Request-Idpro front conseguir ler via JS$request->all()App\Logging\JsonFormatterTap) comrequest_id;App\Logging\RedactSensitiveDataProcessorredigepassword/token/api_key/secret/cartão automaticamente, em qualquer profundidade do context/upfora do grupoweb(não depende de sessão/Redis pra responder), verificando banco e Redis de verdade — 503 com detalhe se algum cair, não 500 crusentry/sentry-laravel) instalado, desligado por padrão (SENTRY_LARAVEL_DSNvazio)docs/adr/0006-politica-de-segredos.mdTest plan
composer check(pint + phpstan nível 8, com--memory-limit=512M— o SDK do Sentry precisa de mais memória — + rector --dry-run + pest, 48 testes) passacomposer auditsem vulnerabilidadesloginRedactSensitiveDataProcessor, lendo o arquivo de log real)infra/dev.sh:/upresponde 200 com banco/redis reais;/api/v1/pingcomOriginlibera CORS e expõeX-Request-Id