Add the setting that requires a server credential, switched off
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 42/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- gcp, python
- Domínio
- api, authentication, cloud
Direção de pesquisa
Start with the Public API's request-handling entry point and find where a check could run before route matching, so that / and unknown paths are covered too. Then locate the deploy scripts and workflows that set configuration for staging and production, and trace how a new setting would reach them. Done means the setting exists and defaults to off, refused requests get the exact 401 body and headers, GET/HEAD /health, GET /v2/openapi.json and OPTIONS preflight stay open, and the setting is off in both environments. This depends on #4236 landing first.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Once every PolicyEngine caller sends a server credential (#4236), the Public API needs a setting that refuses everyone else. This issue adds it, switched off; turning it on is a later, separate step.
Done when the Public API has a setting that, when on:
- refuses every request without a valid server credential with
401,WWW-Authenticate: Bearer,Content-Type: application/jsonand{"status":"error","message":"Authentication is required"}, with no other guidance; - does so before route matching, so
/and unknown paths are refused too; - exempts only
GETandHEAD /health,GET /v2/openapi.jsonand CORS preflightOPTIONSrequests, in the Public API's own code, because Cloud Run's startup probe calls/healthon the container directly;
and the setting is wired through the deploy scripts and workflows, merged switched off and deployed switched off in staging and production.
- Linguagem predominante
- Python
- Estrelas
- 18
- Forks
- 33
- Merge médio
- 2d 14h
- PRs com merge (30d)
- 116
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PolicyEngine/policyengine-api
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
PolicyEngine/policyengine-api#4037 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
PolicyEngine/policyengine-api#3911 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
PolicyEngine/policyengine-api#3910 ·
Mantenedores costumam responder em até 1 dia
-
Update PolicyEngine bundle to 6.17.0Talvez já em andamento @policyengine assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 8/100
PolicyEngine/policyengine-api#4252 ·
Mantenedores costumam responder em até 1 dia
-
Accept a user identity forwarded by a credentialed serverTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 32/100
PolicyEngine/policyengine-api#4238 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de PolicyEngine/policyengine-api
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
Treat corrupt-shape state files as missing in `load_state`Talvez já em andamento @Qrytics assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
OvertureMaps/overturemaps-py#175 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
awslabs/visual-asset-management-system#1278 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
aws-samples/sample-per-model-bedrock#835 ·
Mantenedores costumam responder em até 1 dia