Commit Graph
120 Commits
Author SHA1 Message Date
翅膀 5b755deca5 fix(oauth): confirm account links and installs
A login link or installation id is not proof of account ownership.
Verify installation management, bind browser state and require an
explicit account-link confirmation before granting chat access.
2026-10-23 23:23:29 +08:00
翅膀 81af2053c0 fix(group): preserve identity through lifecycle
Group names are mutable and reusable, so they cannot own durable
state. Preserve immutable identities across lifecycle operations and
commit invite use with membership under transaction-time guards.
2026-10-23 23:23:27 +08:00
翅膀 c853f2910f fix(config): transact per-group configuration
Whole-table writes and cached snapshots can overwrite other groups
or resurrect removed configuration. Use per-group guarded writes,
one-time identity migration and explicit unreadable-row failures.
2026-10-23 23:23:25 +08:00
翅膀 ceb906d479 fix(target): normalize actual destinations
Different target spellings can name the same actual destination.
Normalize channel, thread and topic identities for ownership checks
and per-route duplicate suppression.
2026-10-23 23:23:22 +08:00
翅膀 0978c6c310 fix(feishu): authenticate and dedupe callbacks
Authenticate signed or token-verified callbacks before dispatching
commands. Decode encrypted envelopes and handle card actions using
the correct fields without claiming irrelevant chat events.
2026-10-23 23:23:21 +08:00
翅膀 e850ec3c14 fix(feishu): neutralize untrusted mentions
Forge text is untrusted and can contain at-all tags.
Neutralize mentions in card bodies and footers before rendering.
2026-10-23 23:23:19 +08:00
翅膀 4c1ec472af fix(feishu): use the card update endpoint
Delayed card updates use the card update endpoint; the config
endpoint cannot update an interaction response.
2026-10-23 23:23:18 +08:00
翅膀 832718a238 fix(feishu): refresh and evict tokens safely
Separate app token caches, stop reusing refused tokens and share
refreshes. Cache failures briefly and keep valid tokens in memory
when a best-effort KV cache write fails.
2026-10-23 23:23:17 +08:00
翅膀 1b814b4dfa fix(feishu): retry sends with stable uuids
An unreadable response does not prove a send failed.
Reuse the same uuid for retries so recovering the result cannot
create a second Feishu message.
2026-10-23 23:23:16 +08:00
翅膀 fa3b090dd6 fix(feishu): classify retryable api failures
Business error codes can be transient even in HTTP 200 responses.
Classify token and rate-limit errors for retry and defer long waits.
2026-10-23 23:23:14 +08:00
翅膀 061e045a39 fix(feishu): bound individual api requests
Bound individual platform calls so they cannot outlive the lock
protecting a message update or stall a whole delivery invocation.
2026-10-23 23:23:13 +08:00
翅膀 7882701e1f fix(telegram): keep completed commands claimed
Redelivery after a completed write must never post another comment.
Keep completion claims despite reply failures, scope updates per bot
and only issue account-login links in private chats.
2026-10-23 23:23:11 +08:00
翅膀 8b10b98880 fix(telegram): honor the author emoji toggle
The author marker must obey the group emoji preference just like
formatter-added decoration.
2026-10-23 23:23:10 +08:00
翅膀 7a76cac8a1 fix(telegram): clamp visible html characters
Telegram counts visible characters, not HTML source bytes.
Truncate without splitting tags, entities or surrogate pairs.
2026-10-23 23:23:08 +08:00
翅膀 93650141f7 fix(telegram): render hard breaks as newlines
Telegram HTML does not support br tags. Render Markdown hard breaks
as plain newlines so otherwise valid messages are accepted.
2026-10-23 23:23:06 +08:00
翅膀 dd45e13cb1 fix(telegram): keep editable messages as text
Guessing photo versus text from message content makes later edits
use the wrong API and a smaller caption budget. Always send text
and use the avatar as a link preview.
2026-10-23 23:23:05 +08:00
翅膀 867d2af6ac fix(telegram): report unreadable send results
An unreadable successful response may already have sent the message.
Report an explicit uncertain result instead of retrying a create
without an idempotency key or pretending it succeeded.
2026-10-23 23:23:03 +08:00
翅膀 b212989c05 fix(telegram): honor nested rate-limit delays
Telegram places retry_after inside parameters, not at the top level.
Read that value and defer long waits to the delivery queue.
2026-10-23 23:23:02 +08:00
翅膀 03021f7c2b fix(telegram): bound individual api requests
Bound individual platform calls so they cannot outlive the lock
protecting a message update or stall a whole delivery invocation.
2026-10-23 23:22:58 +08:00
翅膀 0bf18fe2ca fix(telegram): always verify webhook secrets
Webhook verification must not silently disable itself when the
optional secret is absent. Derive a stable secret from the bot
token and reject callbacks when verification is unavailable.
2026-10-23 23:22:57 +08:00
翅膀 706737ca6b fix(discord): defer and deduplicate interactions
Acknowledge slow actions before Discord times out and deduplicate
interaction writes. Preserve comment text and reject edits whose
source changed after the modal opened.
2026-10-23 23:22:53 +08:00
翅膀 37d22f6907 fix(auth): bind sessions and tokens to identity
Automatic retries can repeat non-idempotent user actions.
Disable those retries and expose a write hook so bot handlers can
record completion immediately before the GitHub write.
2026-10-23 23:22:52 +08:00
翅膀 2bdce90776 fix(auth): revoke stale sessions and tokens
Revoked or rotated credentials must stop working despite stale KV
replicas. Track the live token and revocations in D1 and preserve
immutable identity bindings rather than trusting a recycled login.
2026-10-23 23:22:52 +08:00
翅膀 5ff2338b48 fix(github): resolve immutable member ids
A login can be renamed and reclaimed before its first sign-in.
Resolve the current immutable user id when membership is granted
so a future holder of the login cannot inherit access.
2026-10-23 23:22:43 +08:00
翅膀 25f36e2d3a fix(github): verify installation management
An installation id is user-controlled, and repository access is not
installation management. Verify the owning account or an active
organization admin using the user token and read:org scope.
2026-10-23 23:22:36 +08:00
翅膀 f8329035e3 fix(discord): resume bounded command syncs
Application changes, command rollbacks and large guild lists can
leave commands stale indefinitely. Track the current hash per app
and resume bounded paginated work without needless KV writes.
2026-10-23 23:22:35 +08:00
翅膀 bfbdf3b159 fix(discord): constrain embeds and role mentions
Respect combined embed and component limits as well as field caps.
Restrict allowed mentions to validated route roles so payload text
cannot notify everyone.
2026-10-23 23:22:31 +08:00
翅膀 7cf507f654 fix(discord): reuse nonces after lost responses
A successful create may lose its response. Reuse a stable nonce
with enforce_nonce so retries recover that message instead of
posting duplicates or accepting an unreadable success.
2026-10-23 23:22:29 +08:00
翅膀 966403bdc1 fix(discord): encode channel path segments
Stored channel and message ids are path segments, not URL paths.
Encode them so aliases cannot address another Discord resource.
2026-10-23 23:22:25 +08:00
翅膀 0761c4bc5a fix(discord): defer long rate-limit waits
Long rate-limit sleeps block delivery progress inside a worker.
Return a retryable 429 for the queue when the wait exceeds the bound.
2026-10-23 23:22:21 +08:00
翅膀 ffd6cf5a36 fix(discord): bound individual api requests
An unbounded API request can outlive an update-chain lock.
Bound each request so another holder cannot race a late edit.
2026-10-23 23:22:17 +08:00
翅膀 b71cd7b6bb fix(logs): scope queries before limiting results
Filter authorized groups in SQL before LIMIT and aggregate only
visible rows. Preserve current group attribution for late writes,
surface read failures and combine related totals in one scan.
2026-10-23 23:22:10 +08:00
翅膀 76380ff1c0 fix(check): isolate updates by check suite
Same-named checks from different suites must not edit one message.
Include the suite or app identity and retain the former key for
controlled adoption of existing tracked messages.
2026-10-23 23:22:04 +08:00
翅膀 a95feefaf8 fix(formatter): hide actions on other forges
Action buttons call the GitHub API as the linked user.
Hide them for other forges to avoid operating on a same-named
GitHub repository.
2026-10-23 23:22:00 +08:00
翅膀 2e672034d0 fix(formatter): read security severity levels
The scanner severity is not the security severity of an alert.
Prefer the security level so critical and high alerts get the right
label and color.
2026-10-23 23:21:59 +08:00
翅膀 61be34da4f fix(formatter): render deployment state values
The deployment status object stringifies as [object Object].
Render its actual state in the status field.
2026-10-23 23:21:58 +08:00
翅膀 2911519f18 fix(gitea): link push authors to their forge
A Gitea author is not the same-named GitHub account.
Build author profile links from the originating forge.
2026-10-23 23:21:54 +08:00
翅膀 aca870374f fix(formatter): strip only leading ref prefixes
A short branch or tag may itself contain refs/heads or refs/tags.
Strip one leading full-ref prefix at the caller and keep short names
unchanged when generating labels and links.
2026-10-23 23:21:50 +08:00
翅膀 e44fc60c55 fix(formatter): preserve bounded markdown text
Code spans, fences, indentation and autolinks are Markdown content,
not HTML tags to strip. Preserve them while bounding cleanup input
and reusing results across routes for the same event.
2026-10-23 23:21:46 +08:00
翅膀 99d239ff4f fix(formatter): preserve invalid code points
Out-of-range numeric entities can throw while formatting a delivery.
Keep invalid code points verbatim instead of aborting the message.
2026-10-23 23:21:43 +08:00
翅膀 1b3f353153 fix(github): restrict enrichment request urls
Webhook-provided URLs must never receive an installation token on
another host. Restrict enrichment to GitHub repository API paths,
reject redirects and bound optional requests.
2026-10-23 23:21:39 +08:00
翅膀 d5e86bb4d9 fix(github): bound and reuse app token fetches
Repeated token exchanges waste requests and JWT work for every event.
Reuse valid installation tokens, share refreshes and back off briefly
after failures while keeping every shared wait bounded.
2026-10-23 23:21:38 +08:00
翅膀 2d87367b48 i18n(bot): explain command and account failures
Explain account linking, command failures and skipped delivery
outcomes consistently in both supported languages.
2026-10-23 23:21:31 +08:00
翅膀 7e40d251e8 fix(i18n): bound and cache translation loads
Repeated misses and simultaneous override loads spend KV reads for
the same language. Cache confirmed misses and share bounded loads
without caching read failures as missing translations.
2026-10-23 23:21:30 +08:00
翅膀 372c8522c0 fix(filter): validate executable condition trees
Malformed trees and unsupported patterns must not silently turn an
exclude rule into a pass. Validate the shape and only the patterns
the evaluator actually executes.
2026-10-23 23:21:26 +08:00
翅膀 1b6b30066f fix(filter): read only own payload properties
Inherited object properties are not webhook payload data.
Read own properties only so JSONPath cannot traverse prototypes.
2026-10-23 23:21:25 +08:00
翅膀 900962e003 fix(filter): read each event branch correctly
Deployment and check branches live in event-specific nested fields.
Read those fields and remove only the actual leading ref prefix.
2026-10-23 23:21:21 +08:00
翅膀 125d5eee1f fix(filter): use isolated linear-time patterns
Backtracking patterns can exhaust worker CPU on untrusted payloads.
Use linear-time matching and separate bounded cache namespaces so
glob and regex entries cannot corrupt each other.
2026-10-23 23:21:20 +08:00
翅膀 50966a4c50 fix(storage): preserve claims across kv fallback
Only missing tables justify KV fallback; other failures must surface.
Remember fallback writes so migration to D1 cannot forget claims
and replay completed work. Share marker checks without extra writes.
2026-10-23 23:21:17 +08:00
翅膀 6535126ae0 fix(bot): reject oversized callback bodies
Reject declared oversized bot callbacks before reading their bodies.
This keeps unauthenticated requests from wasting worker resources.
2026-10-23 23:21:15 +08:00