Add the setting that requires a server credential, switched off
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- gcp, python
- Bereich
- api, authentication, cloud
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 18
- Forks
- 33
- Ø Merge
- 2 T. 14 Std.
- Gemergte PRs (30 T.)
- 116
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus PolicyEngine/policyengine-api
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
PolicyEngine/policyengine-api#4037 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
PolicyEngine/policyengine-api#3911 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
PolicyEngine/policyengine-api#3910 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Update PolicyEngine bundle to 6.17.0Evtl. vergeben @policyengine hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 8/100
PolicyEngine/policyengine-api#4252 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Accept a user identity forwarded by a credentialed serverEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 32/100
PolicyEngine/policyengine-api#4238 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in PolicyEngine/policyengine-api
Ähnliche Issues
-
channels:edit check:passed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug] The blue-green mitigation strategy lists catalog names and views before the source tablesOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
aws-samples/sample-aws-genai-db-modernizer#2097 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
ietf-tools/datatracker#12027 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: Python SDK overwrites OVPack backups with HTTP 200 JSON errorsEvtl. vergeben @stefanielizeth73-art hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
volcengine/OpenViking#7347 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
deepset-ai/haystack-core-integrations#4228 ·
Maintainer antworten meist innerhalb von 1 Tag