mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-12-01 09:24:46 +00:00
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:
parent
c01e7bcd04
commit
25e3d0cf3e
3 changed files with 5 additions and 5 deletions
|
|
@ -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"/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue