Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/worker.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
5 changes: 4 additions & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading