Skip to content

[Backport 5.x] Reject partial EC2 metadata results - #179

Open
OpenVoxProjectBot wants to merge 1 commit into
5.xfrom
backport-176-to-5.x
Open

OpenVoxProjectBot wants to merge 1 commit into
5.xfrom
backport-176-to-5.x

Conversation

@OpenVoxProjectBot

Copy link
Copy Markdown
Contributor

Description

Backport of #176 to 5.x.

Resolve EC2 metadata with strict HTTP requests so a timeout,
transport exception, or non-200 response aborts the entire recursive
lookup. Build metadata separately and publish it only after every
request succeeds. Previously, the shared HTTP helper converted failures
to empty strings, making them indistinguishable from successful empty
responses and allowing partially populated metadata to be cached.

Keep successful 200 responses with empty bodies unchanged. Preserve the
existing lenient HTTP helper for other callers, userdata behavior, and
the EC2 cache lifetime.

Add regression coverage for successful empty values, failed child
requests, timeouts, and atomic publication.

Assisted-by: OpenAI Codex:GPT-5
Signed-off-by: Daniel Juarez <djuarezg@proton.me>
(cherry picked from commit aaca858)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants