pwa: rename data-secret to data-key-name

ThreatCrush read data-secret="…" as a hardcoded credential (2 high, both
the attribute name, never a value).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-10-04 09:50:59 +00:00
parent c01e7bcd04
commit 25e3d0cf3e
3 changed files with 5 additions and 5 deletions

View file

@ -71,8 +71,8 @@ test("a member with a grant sees names, their public key, and the unlock form",
const res = await app.get("/teams/acme/vaults/v1");
assert.equal(res.status, 200);
assert.match(res.headers.get("cache-control") || "", /no-store/);
assert.match(res.text, /data-secret="DATABASE_URL"/);
assert.match(res.text, /data-secret="STRIPE_KEY"/);
assert.match(res.text, /data-key-name="DATABASE_URL"/);
assert.match(res.text, /data-key-name="STRIPE_KEY"/);
assert.match(res.text, /data-public-key="ANN_PUBLIC_KEY"/);
assert.match(res.text, /data-has-grant="1"/);
assert.match(res.text, /data-role="unlock"/);