Repository navigation
feat(relay): Lambda relay, normalizers and CloudFormation template - #4
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MaU9o1s775q1DoiNSPtC4b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MaU9o1s775q1DoiNSPtC4b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MaU9o1s775q1DoiNSPtC4b
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Next included review available in 47 minutes. View limit details
Note Summarized by CodeRabbit Free
|
The conditional put could never dedupe because the sort key includes the receive time. GitHub does not retry on its own, so a manual redelivery is an intentional replay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MaU9o1s775q1DoiNSPtC4b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MaU9o1s775q1DoiNSPtC4b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MaU9o1s775q1DoiNSPtC4b
Adds
@hook-harness/relay.POST /webhook: HMAC over raw bytes (base64-decoded),timingSafeEqual, static allowlist, signals-only normalizers, conditionalPutItem(redeliveries are a success), 1-day TTL inexpiresAt.GET /events?owner=&repos=&after=&limit=: bearer token (SHA-256 looked up astoken#<hash>), revoked/expiry check, one Query on the owner partition withSK > max(after-60s, now-1d), pagination up to the limit,gapflag.template.yaml: table (provisioned 25/25 default or on-demand), role, 1-day log group, arm64 nodejs24.x function with placeholder code, public function URL and both permissions.packages/relay/dist/index.mjs(AWS SDK v3 bundled).pnpm checkpasses with 100% coverage.Contract: owner-partitioned events
Per coordinator request, events are partitioned by owner so one poll covers an org:
PK=owner#<lower-cased owner>,SK=<receivedAt ms, 15 digits>#<delivery id>, top-levelrepo,envelope,expiresAt.GET /events:ownerrequired (400);repos=a/b,c/doptional. Events are filtered in code after the Query (the cursor advances past filtered-out items, and fills up tolimitof kept events). 403 when the token allows nothing in the owner.reposentries:owner/name,owner/*or*(case-insensitive).@hook-harness/relay/keysexports:DAY_SECONDS,DAY_MS,OVERLAP_MS,padMs,eventPk,eventSk,eventExpiresAt,tokenHash,tokenPk,tokenKey,tokenAllowsRepo,tokenAllowsOwner.Note: pnpm added
minimumReleaseAgeExcludeentries for the AWS SDK packages inpnpm-workspace.yaml.🤖 Generated with Claude Code
https://claude.ai/code/session_01MaU9o1s775q1DoiNSPtC4b