-
Notifications
You must be signed in to change notification settings - Fork 7
Pass ENOTIFY_INTERNAL_TOKEN through to vapi #1710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
+19
−3
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,11 @@ services: | |
| # Shared secret for the internal SSR RPC cache (/private-api/ssr/*); the | ||
| # web service sends it on every proxied read. Unset = those routes are off. | ||
| - SSR_INTERNAL_SECRET | ||
| # Shared secret vapi presents to enotify to unlock a user's OWN complete | ||
| # notification feed. enotify defaults to chain-derived activity only and | ||
| # fails closed, so unset means every user silently loses favorites, | ||
| # bookmarks, Points transfers and the aggregates from their own list. | ||
| - ENOTIFY_INTERNAL_TOKEN | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. Missing token deploys silently The bare Compose passthrough accepts an absent or empty ENOTIFY_INTERNAL_TOKEN, so deployments succeed while vapi silently omits favorites, bookmarks, Points transfers, and notification aggregates. This also lets a later missing-secret deployment reset a previously working service to the degraded state without any CI failure. Agent Prompt
|
||
| # Upstream fills the SSR RPC cache may run at once, and how many may wait | ||
| # for a slot. An origin with ~90 misses/s against a 200-900ms node path | ||
| # needs 45-85 fills in flight; the defaults (64/256) queued fills past the | ||
|
|
||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
ENOTIFY_INTERNAL_TOKENis missing from the repository secrets, this export still succeeds and the production compose render deploys vapi with an empty token. As the new compose comment states, vapi then fails closed and silently omits favorites, bookmarks, Points transfers, and aggregates for every user, while the workflow remains green. Add a nonempty preflight check in both production deploy jobs, analogous to the adjacent newsletter checks; staging should at least fail or warn explicitly as intended.Useful? React with 👍 / 👎.