From ffb823334d6b46355c300aa078ada41e81019ee8 Mon Sep 17 00:00:00 2001 From: Michael Ryaboy Date: Tue, 22 Sep 2026 21:27:52 -0700 Subject: [PATCH] Exclude obsolete raw keys from the label registry --- e2e/spending.mjs | 3 ++- src/admin.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/e2e/spending.mjs b/e2e/spending.mjs index 95b85cd..4d7ef41 100644 --- a/e2e/spending.mjs +++ b/e2e/spending.mjs @@ -42,6 +42,7 @@ try { await labelStore.put('cls:ls_legacy', '2026-09-01T00:00:00.000Z'); await labelStore.put('cls:ls_malformed', '{broken'); await labelStore.put('unrelated-secret', 'must not appear'); + await labelStore.put('cls:obsolete-raw-key', '2026-09-01T00:00:00.000Z'); let next = adminUrl; const seen = new Set(); const pageSizes = []; @@ -51,7 +52,7 @@ try { assert.match(response.headers.get('cache-control'), /private/); const html = await response.text(); assert.match(html, /All label sets/); - assert.doesNotMatch(html, /