Security: fail-open internal tokens (identity, registry, S3, reload, diag) #195
Labels
No labels
prio/P1
prio/P2
prio/P3
status/leftover
status/new
status/parked
type/feature
type/ops
type/research
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MeshFlowsGPL/meshflows#195
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Security review (2026-09-22). Meerdere services schakelen auth uit als een env leeg is, in plaats van te weigeren te starten.
Bevindingen
require_internal_service_calleris een no-op alsIDENTITY_REQUIRE_INTERNAL_TOKEN=falseofINTERNAL_SERVICE_TOKENleeg is.engine/services/identity/app/internal_api.pyrond 15-26. Raakt o.a. permission-sync en API-key validatie.REGISTRY_REQUIRE_TOKENfalse slaat token-check over.engine/services/capability-registry/app/main.pyrond 265. Mutaties (registratie) staan dan open.S3_ADMIN_TOKENvalt terug opCAPABILITY_REGISTRY_TOKEN.engine/services/s3/app/main.pyrond 57 en 795. Lek van het registry-token is admin op buckets.ORCH_ALLOW_UNAUTH_RELOAD/GATEWAY_ALLOW_UNAUTH_RELOADmet leeg reload-token opent admin-reload. Orchestrator rond 123-136, gateway rond 434-438./api/diagen/api/cluster-healthstaan op de auth-whitelist.engine/services/dashboard/app/main.pyrond 319-330. Lekt interne URLs en config-vlaggen.Gewenste uitkomst
S3_ADMIN_TOKEN, geen fallback.ALLOW_UNAUTH_RELOADnooit true buiten dev; startup weigert die combinatie.