The query-string token is kept, but it no longer happens silently
?token= on the admin API is an affordance for an operator typing curl; the console never uses it and none of the gates do (0 occurrences of token= in scripts/). Refusing it is how an operator ends up switching auth off instead of learning the header. What was wrong was the silence. Measured on the shipped image before deciding: a container hit with /admin-api/state?token=<secret> logged 0 lines containing the token at the shipped level (Microsoft.AspNetCore: Warning), and 2 lines at Microsoft.AspNetCore=Information, including the full URL. Raising that level is the ordinary next move while debugging, so the leak is one environment variable away, not a hypothetical. Now a request authenticated by the query string logs a warning naming the path and never the token. Two tests: the query form is served and named; the header form produces no such warning and no token anywhere in the captured logs. Teeth: delete the warning and exactly the query test fails (1 failed, 33 passed). Also refreshed the ci.yml header, whose Linux numbers had gone stale (54/54 + 30/30 + 41/41 -> 59/59 + 32/32 + 43/43 + 33/33), and kept the wall clock quoted as measured once rather than current. Gates: build 0 warnings, unit 59/59, integration 34/34, actionlint 0 problems.
This commit is contained in:
+10
-12
@@ -16,18 +16,16 @@
|
||||
# What has been done to narrow the darwin/linux gap without a runner:
|
||||
# scripts/ci-linux-rehearsal.sh runs the gates in containers. Source gates
|
||||
# (restore, build, unit, integration, smoke) in mcr.microsoft.com/dotnet/sdk:10.0
|
||||
# — Ubuntu 24.04.5, SDK 10.0.401 resolving the pinned global.json, 54/54 + 30/30
|
||||
# + 19/19, first try, 1:02.81 wall cold: evidence that the 25-minute timeout
|
||||
# below is not near. Compose gate in docker:cli against the host daemon: 41/41 on
|
||||
# Linux. Console gate in mcr.microsoft.com/playwright:v1.63.0-noble — the stack
|
||||
# seeded by docker:cli, the same console-check.cjs driving it in a real Linux
|
||||
# Chromium: 33/33. So every gate this file runs now has a Linux number. What it
|
||||
# does not have is a runner: the repository has no remote, so this file has
|
||||
# never executed on GitHub.
|
||||
#
|
||||
# One gate is not in this file: geo database freshness. It is a schedule, not a
|
||||
# push gate (the pin ages on the vendor's calendar, not on ours), so it lives in
|
||||
# .github/workflows/geo-freshness.yml and calls scripts/geo-db-freshness.sh.
|
||||
# - Ubuntu 24.04.5, SDK 10.0.401 resolving the pinned global.json: unit 59/59,
|
||||
# integration 32/32, smoke 19/19, first try. Compose gate in docker:cli against
|
||||
# the host daemon: 43/43 on Linux. Console gate in
|
||||
# mcr.microsoft.com/playwright:v1.63.0-noble - the stack seeded by docker:cli,
|
||||
# the same console-check.cjs driving it in a real Linux Chromium: 33/33. The
|
||||
# only wall clock ever measured for the source job is 1:02.81 cold (first
|
||||
# rehearsal); later rehearsals were not re-timed, so that number is quoted as
|
||||
# measured once, not as current. So every gate this file runs has a Linux
|
||||
# number. What it does not have is a runner: the repository has no remote, so
|
||||
# this file has never executed on GitHub.
|
||||
|
||||
name: ci
|
||||
|
||||
|
||||
Reference in New Issue
Block a user