Add Lambda-Runtime-Invocation-Id header support for cross-wiring protection
Los mantenedores suelen responder en 8 días
@darklight3it ya está trabajando en esto.
Desde el 27/7/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Parse
Lambda-Runtime-Invocation-Idfrom the/nextresponse headers (optional — may be absent with older RAPID) - Store it alongside the invocation context
- Echo it as a request header on
/responseand/error - 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
- Lenguaje dominante
- Rust
- Estrellas
- 3.6k
- Forks
- 397
- Merge medio
- 5 d 14 h
- PR fusionados (30 d)
- 2
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aws/aws-lambda-rust-runtime
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
aws/aws-lambda-rust-runtime#1099 · 1 reacción ·
Los mantenedores suelen responder en 8 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 74/100
aws/aws-lambda-rust-runtime#1165 ·
Los mantenedores suelen responder en 8 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
aws/aws-lambda-rust-runtime#1161 ·
Los mantenedores suelen responder en 8 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
aws/aws-lambda-rust-runtime#1131 · 1 comentario ·
Los mantenedores suelen responder en 8 días
-
experimental lambda battery packAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
aws/aws-lambda-rust-runtime#1128 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 8 días
Todos los issues de aws/aws-lambda-rust-runtime
Issues similares
-
`categorize_command` has no `uv` arm, so every `rtk uv …` row counts as `other` in the ecosystem mixAbiertoarea:api bug good first issue priority:low
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
rtk-ai/rtk#4316 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día
-
area/cli kind/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
good first issue open-endedness: low type: new feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100