Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add Lambda-Runtime-Invocation-Id header support for cross-wiring protection

未关闭
#1,155 0 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 11 天内回复

@darklight3it 已经在做这个了。

开始于 2026年7月27日。

评估

这个 Issue 还没有评估数据。

描述

Summary

Lambda now sends a Lambda-Runtime-Invocation-Id header on /runtime/invocation/next responses. Runtimes should echo this header back on /runtime/invocation/{requestId}/response and /runtime/invocation/{requestId}/error to enable RAPID to detect and reject stale responses from timed-out invocations.

Problem

When an invoke times out, the runtime process continues running. If a new invoke arrives with the same requestId (customer-provided or retried by upstream), RAPID accepts it. The still-running old invocation eventually posts its response, and RAPID delivers the wrong response to the new invoke (cross-wiring).

This affects both On-Demand and Lambda Managed Instances (LMI), and Rust is a supported LMI runtime.

What needs to change

  1. Parse Lambda-Runtime-Invocation-Id from the /next response headers (optional — may be absent with older RAPID)
  2. Store it alongside the invocation context
  3. Echo it as a request header on /response and /error
  4. If the header is absent from /next, don't send it back (backward compat)

Backward Compatibility

  • Old RAPID (doesn't send the header) + New RIC (no header to echo) → no change ✅
  • New RAPID (sends the header) + Old RIC (doesn't echo) → RAPID skips validation ✅
  • New RAPID + New RIC → header echoed, RAPID validates match ✅

Reference Implementations

主要语言
Rust
星标
3.6k
派生
398
平均合并
7 天 4 小时
30 天内合并 PR
3

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/aws-lambda-rust-runtime 的其他 Issue

查看 aws/aws-lambda-rust-runtime 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。