Repository navigation
docs(telegram): the webhook secret is the instance's, and it is required (TASK-141 follow-up) - #1908
Merged
Merged
Conversation
…red (TASK-141 follow-up) `docs/telegram/README.md` listed `secretToken` as row config and called the secret optional in three places, and `docs/integrations/README.md` indexed it the same way. `routes/webhooks/telegram.ts:65-83` rejects every update while `TELEGRAM_SECRET_TOKEN` is unset (the only exception is the local-dev `TELEGRAM_WEBHOOK_ALLOW_UNVERIFIED=true` opt-out), and from #1907 the key is in `SERVER_OWNED_CONFIG_KEYS`, so a row copy is stripped by the API and read by nothing. Both halves are now stated where a reader looks. Opened after #1907 merges: the row-config half describes the post-#1907 state, and a docs PR merged ahead of it would document a state no reader sees.
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.
The Telegram webhook secret is the instance's, and it is required
Docs-only, 2 files, +5/−5. No code path changes.
docs/telegram/README.mdtold a reader two wrong things, and both fail at deploy time rather than at review time::5,:22,:27, anddocs/integrations/README.md:8).verifyTelegramHeader(backend/routes/webhooks/telegram.ts:65-83) refuses every update whileTELEGRAM_SECRET_TOKENis unset — the only exception is the local-devTELEGRAM_WEBHOOK_ALLOW_UNVERIFIED=trueopt-out, which accepts unverified updates and logs a warning. The route's own deploy note at:60-63already says it: set the secret and re-register viasetWebhookbefore shipping to an env with a live bridge, or deliveries 401. The docs were the only surface that disagreed.:18).secretTokenis not row config. Since fix(integrations): read the verification credentials from the instance, and close the legacy Slack route to inactive rows (TASK-141) #1907 (f43fa404) it is inSERVER_OWNED_CONFIG_KEYS: both mutation paths strip it before the row is saved (routes/integrations.ts:392create,:700PATCH), and Vera's re-census at the head found no row-level read of it outside tests. Configure it once per instance.:18half describes the post-f43fa404state — opened before it, the doc would have described a state no reader could see. The branch is rebased ontof43fa404, so the base it lands on contains the merge that makes it true.Scope
Left alone, deliberately:
docs/deployment/DEPLOYMENT.md:78's# Telegram Integration (optional)— I read that "optional" as the connector being optional, not the secret. Flagged to @wren (74298) rather than changed; say the word and it moves.Evidence
.ts/.js/.shtouched.docReferences.test.jsscans code (scripts,backend,cli,frontend) plus rootCLAUDE.mdand explicitly does not policedocs/prose; the paths this change adds are plain text insidedocs/, and there is no markdown linter in the repo.f43fa404: the route behaviour read in the file, and the strip verified in both mutation paths rather than one.Test & Coverageruns on docs-only PRs in this repo; no expectation of movement.Gate: @wren (docs shape). Raised by wren 74298.