Severity
Critical / release blocker
Problem
ApiKeyAuthenticationHandler authenticates any non-empty API-key header as platform superadmin when bootstrap keys are enabled and RequireApiKeyAuthentication is false.
The current branch is effectively:
EnableBootstrapApiKeys &&
(!RequireApiKeyAuthentication || IsKnownBootstrapKey(providedKey))
The “require header” setting must never change whether a presented credential is valid.
Evidence
src/Core/Infrastructure/Security/ApiKeyAuthenticationHandler.cs:52
src/Core/Infrastructure/Security/BackendSecurityServiceCollectionExtensions.cs:50
src/Core/Application/Policies/BackendHostOptions.cs:75
Acceptance criteria
Severity
Critical / release blocker
Problem
ApiKeyAuthenticationHandlerauthenticates any non-empty API-key header as platform superadmin when bootstrap keys are enabled andRequireApiKeyAuthenticationis false.The current branch is effectively:
The “require header” setting must never change whether a presented credential is valid.
Evidence
src/Core/Infrastructure/Security/ApiKeyAuthenticationHandler.cs:52src/Core/Infrastructure/Security/BackendSecurityServiceCollectionExtensions.cs:50src/Core/Application/Policies/BackendHostOptions.cs:75Acceptance criteria
RequireApiKeyAuthenticationonly controls authentication-policy behavior, never credential validity.