Repository navigation
[release/13.6] Reject empty OTLP API keys - #20408
Jose Perez Rodriguez (joperezr) merged 2 commits into
Conversation
Accept a null optional secondary key while asserting that an explicitly empty key fails dashboard options validation. Co-authored-by: Copilot <[email protected]>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20408Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20408" |
Tests selector13 / 99 PR test projects · 2 PR jobs, from 5 changed files. Selected PR test projects (13 / 99)
Selected PR jobs (2)
How these were chosen — grouped by what changed
🔧 📦 affected project 🧪 🧪 🧪 Job reasons
Selection computed for commit |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
6b0c14f
into
release/13.6
|
✅ No documentation update needed. Step 5 branch taken: This PR is a backport (of #20363 to Exclusion reasons from
No documentation PR was drafted. |
Backport of #20363 to release/13.6 /cc @JamesNK ## Customer Impact An explicitly empty secondary OTLP API key could allow a request with an empty `x-otlp-api-key` header to authenticate. This prevents that unintended access while still allowing an unset optional secondary key. ## Testing Dashboard test CI passed on Windows and Linux for this backport; Ubuntu x64 native-AOT Dashboard validation passed. The source PR adds configuration, authentication-handler, and OTLP HTTP endpoint coverage for empty keys and a null optional secondary key. ## Risk Medium. This changes OTLP authentication and startup validation: configurations with explicitly empty keys that were previously accepted will now fail validation; no public API changes. ## Regression? Unknown — please confirm. --------- Co-authored-by: James Newton-King <[email protected]> Co-authored-by: Copilot <[email protected]>
Backport of #20363 to release/13.6
/cc James Newton-King (@JamesNK)
Customer Impact
An explicitly empty secondary OTLP API key could allow a request with an empty
x-otlp-api-keyheader to authenticate. This prevents that unintended access while still allowing an unset optional secondary key.Testing
Dashboard test CI passed on Windows and Linux for this backport; Ubuntu x64 native-AOT Dashboard validation passed. The source PR adds configuration, authentication-handler, and OTLP HTTP endpoint coverage for empty keys and a null optional secondary key.
Risk
Medium. This changes OTLP authentication and startup validation: configurations with explicitly empty keys that were previously accepted will now fail validation; no public API changes.
Regression?
Unknown — please confirm.