diff --git a/test/worker.test.mjs b/test/worker.test.mjs index fcbca78..0a1d08b 100644 --- a/test/worker.test.mjs +++ b/test/worker.test.mjs @@ -648,4 +648,6 @@ test('wrangler.toml allows the GitHub Pages site and no other github.io', async assert.equal(originAllowed('https://reportbase.github.io.evil.com', rules), false); assert.equal(originAllowed('http://reportbase.github.io', rules), false); assert.ok(!rules.some(r => /\*\.github\.io$/.test(r)), 'never allow *.github.io'); + // Public pages sign in here now, so the no-password dev stub must stay off. + assert.match(toml, /^DEV_AUTH\s*=\s*"false"/m, 'DEV_AUTH must be "false" in the deployed config'); }); diff --git a/wrangler.toml b/wrangler.toml index 6eac5e3..e4b77a7 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -70,7 +70,10 @@ ALLOWED_EMAILS = "" # Otherwise set this to "false" before a single real user touches it. /health # reports devAuth:true and a warning while it is on, so you cannot leave it # enabled without being told. -DEV_AUTH = "true" +# OFF (Oct 4): Google sign-in works, and three public pages on +# reportbase.github.io now sign in here, so the stub would let anyone claim an +# account and spend the key. Turn it back on only briefly, for local testing. +DEV_AUTH = "false" # Cost guards on the request itself. ALLOWED_MODELS = "" # empty = any model your key can reach