Repository navigation
docs(env): add CRON_SECRET to both .env.example files - #277
Merged
gkhngyk merged 1 commit intoJun 19, 2026
Merged
Conversation
There was a problem hiding this comment.
Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.
In the meantime, two things that make review faster:
- A short description of why the change matters, not just what it does — most of our PRs link a
Fixes #...to the issue that explains the why. - A quick local test note if there's anything worth eyeballing in the browser.
If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.
Fixes ansvisor#244. CRON_SECRET guards three internal server endpoints but was missing from both example files, causing silent 401s in cloud deployments. Added with a comment explaining it is cloud-only and must be set to the same value on both the web app and the server.
P-Maheswari
force-pushed
the
fix/add-cron-secret-to-env-examples
branch
from
June 19, 2026 06:59
48e8fee to
62be42a
Compare
gkhngyk
approved these changes
Jun 19, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Verified against the code — all three internal endpoints (/api/internal/daily-tracking, /api/internal/content/:id/brief, /api/internal/trigger-tracking) are guarded by CRON_SECRET, and it was indeed missing from both example files. The comments are accurate and the cloud-only framing is spot on. Thanks @P-Maheswari! 🙏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #244. CRON_SECRET guards three internal server endpoints but was missing from both example files, causing silent 401s in cloud deployments. Added with a comment explaining it is cloud-only and must be set to the same value on both the web app and the server.
Summary
Added
CRON_SECRETto both.env.examplefiles with a descriptive comment.Without this entry, cloud operators have no indication they need to set this
variable, causing permanent 401s on three internal endpoints and failures in
daily tracking, content-brief generation, and post-checkout tracking.
Related issue
Closes #244
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsChecklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)