You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Recommended when you want different effective keys per token without storing them.
177
+
-`SIGNING_SECRET` (**secret**, legacy)
178
+
- Backward-compatible fallback if `MASTER_SECRET` is not set.
179
+
- If `MASTER_SECRET` is not set, Kanariya will also treat `SIGNING_SECRET` as the master secret for derived signing (ops-friendly), while still accepting legacy signatures created directly with `SIGNING_SECRET`.
175
180
176
181
Optional:
177
182
@@ -199,6 +204,8 @@ Optional:
199
204
- Default: 0. Set to `1` to require signed canary URLs.
- Default: 300 (allowed clock skew for `ts`, set 0 to disable window check).
207
+
-`ALLOW_PUBLIC_SIGN` (non-secret, optional)
208
+
- Default: 0. If set to `1`, `/admin/sign` can be called without `ADMIN_KEY`.
202
209
203
210
## Signed canary URLs (optional)
204
211
@@ -208,15 +215,40 @@ This is useful when you want to reduce random scanning noise (only URLs you gene
208
215
1) Enable signature requirement:
209
216
210
217
- Set `REQUIRE_SIGNATURE=1`
211
-
- Set the secret key:
212
-
-`wrangler secret put SIGNING_SECRET`
218
+
- Set the master secret key (recommended):
219
+
-`wrangler secret put MASTER_SECRET`
220
+
- (Optional legacy) `wrangler secret put SIGNING_SECRET`
213
221
214
-
> Important: If `REQUIRE_SIGNATURE=1` but `SIGNING_SECRET` is not set, the Worker will silently ignore all canary hits (returns `204` but does not store events).
222
+
> Important: If `REQUIRE_SIGNATURE=1` but neither `MASTER_SECRET` nor `SIGNING_SECRET` is set, the Worker will silently ignore all canary hits (returns `204` but does not store events).
215
223
216
224
2) Generate signed URLs:
217
225
218
-
- UI: open the Token Studio (GitHub Pages `docs/index.html` or `public/index.html`) and enter `SIGNING_SECRET` under Advanced.
0 commit comments