hub v0.153.0: off-site and PBS-DR re-issues session only too (R-1059 = A, operator 2026-10-15); R-1059 closed
gates / gates (push) Successful in 6m41s
gates / gates (push) Successful in 6m41s
Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
This commit is contained in:
1 parent
368ee9878d
commit
00686789e1
11 files changed
+42
-22
No files matched your search
@@ -43,7 +43,7 @@ var scopeGroups = []scopeGroup{
|
||||
{grpVouch, "Releases: vouch", "", "golden, agent, MinAgent (the vouch)", false, true},
|
||||
{grpCustomers, "Customers", "config forms, DR recipe", "block/unblock, geo disable", true, true},
|
||||
{grpHosts, "Hosts & logs", "host pages, log bundles, log tails", "operator actions, log requests", true, true},
|
||||
{grpOffsite, "Off-site", "run the key check", "windows, re-issue, freeze", true, true},
|
||||
{grpOffsite, "Off-site", "run the key check", "windows, freeze", true, true},
|
||||
{grpOS, "OS updates", "the fleet queue", "approve, ring, on/off", true, true},
|
||||
{grpMailHold, "Mail hold", "", "release", false, true},
|
||||
}
|
||||
@@ -168,10 +168,12 @@ var operatorRoutes = []routeEntry{
|
||||
{Prefix: "/os/", Get: rd(grpOS), Post: wr(grpOS)},
|
||||
// Runs the daily key check now: it reads keys and reports, it changes none.
|
||||
{Exact: "/offsite/key-audit", Post: rd(grpOffsite)},
|
||||
{Prefix: "/configs/", Suffix: "/offsite-reissue", Post: wr(grpOffsite)},
|
||||
// Resets the household's off-site password and stages a fresh one-time secret for the box (R-1059, ruling 2026-10-15).
|
||||
{Prefix: "/configs/", Suffix: "/offsite-reissue", Post: sessionOnly},
|
||||
// Sends a fresh claim code to the household's e-mail (R-1055, operator ruling 2026-10-15 13:20).
|
||||
{Prefix: "/configs/", Suffix: "/claim-resend", Post: sessionOnly},
|
||||
{Prefix: "/configs/", Suffix: "/pbsdr-reissue", Post: wr(grpOffsite)},
|
||||
// Re-keys the household's PBS-DR token and stages a fresh one-time secret for the box (R-1059, ruling 2026-10-15).
|
||||
{Prefix: "/configs/", Suffix: "/pbsdr-reissue", Post: sessionOnly},
|
||||
{Prefix: "/configs/", Suffix: "/offsite-freeze", Post: wr(grpOffsite)},
|
||||
// The preview is the generated controller config — it carries the controller API key.
|
||||
{Prefix: "/configs/", Suffix: "/preview", Get: sessionOnly},
|
||||
|
||||
@@ -551,7 +551,7 @@ func TestRequireAuth_NoPasswordRefusesEveryOperatorRoute(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestToken_CredentialAndLinkRoutesAreSessionOnly — operator ruling 2026-10-15 13:20 (`09` §3 decision 252, R-1055):
|
||||
// TestToken_CredentialAndLinkRoutesAreSessionOnly — operator ruling 2026-10-15 13:20 (`09` §3 decision 252, R-1055, R-1059):
|
||||
// every route that sends, mints or reveals a household credential or link, or changes a household's e-mail, is session
|
||||
// only. A token holding EVERY scope gets 403 on each, and nothing changes (the e-mail, the passphrase, no new config).
|
||||
// The positive control: block — still customers:write — is NOT refused.
|
||||
@@ -571,6 +571,9 @@ func TestToken_CredentialAndLinkRoutesAreSessionOnly(t *testing.T) {
|
||||
{"/customers/c1/selfbind-link", "mints and mails the self-bind link"},
|
||||
{"/configs/c1/regen-password", "mints a new owner passphrase"},
|
||||
{"/appliances/1/bind", "delivers the passphrase to the box that asks"},
|
||||
// R-1059 (operator 2026-10-15): the off-site and PBS-DR re-issues mint a household credential for the box.
|
||||
{"/configs/c1/offsite-reissue", "resets the household's off-site password"},
|
||||
{"/configs/c1/pbsdr-reissue", "re-keys the household's PBS-DR token"},
|
||||
}
|
||||
form := url.Values{"email": {"attacker@example.com"}, "customer_id": {"c2"}, "customer_name": {"x"}}
|
||||
for _, rt := range routes {
|
||||
|
||||
Reference in new issue
Block a user