Skip to content

refactor: rename env var to FB_AWS_EC2_METADATA_CLIENT_ENABLED#10

Merged
fstr merged 2 commits into
fireboltfrom
fix/FB-1308-rename-env
May 26, 2026
Merged

refactor: rename env var to FB_AWS_EC2_METADATA_CLIENT_ENABLED#10
fstr merged 2 commits into
fireboltfrom
fix/FB-1308-rename-env

Conversation

@gm42

@gm42 gm42 commented May 26, 2026

Copy link
Copy Markdown

Description

rename env var to FB_AWS_EC2_METADATA_CLIENT_ENABLED.

Issue


Note

Medium Risk
Renaming the env var is a breaking operational change for deployments still using FIREBOLT_ALLOW_AWS_IRSA; misconfiguration would leave EC2 IMDS/credential paths disabled.

Overview
Renames the opt-in environment variable that controls whether InitEC2MetadataClient runs from FIREBOLT_ALLOW_AWS_IRSA to FB_AWS_EC2_METADATA_CLIENT_ENABLED. Behavior is unchanged: the EC2 metadata client stays off unless that variable is truthy.

Comments in InitEC2MetadataClient are updated to describe disabling IMDS (169.254.169.254) by default and enabling via the new name, instead of framing it as IRSA.

Deploy note: any runtime that still sets FIREBOLT_ALLOW_AWS_IRSA must switch to FB_AWS_EC2_METADATA_CLIENT_ENABLED or IMDS-based credentials/metadata will not initialize.

Reviewed by Cursor Bugbot for commit ce357c0. Bugbot is set up for automated code reviews on this repo. Configure here.

The flag gates initialization of the aws-sdk EC2 metadata client, which
queries the IMDS endpoint (169.254.169.254) for instance identity and
IRSA-style credentials. The previous name (FIREBOLT_ALLOW_AWS_IRSA)
described one use case rather than what the flag actually controls;
the new name reflects the underlying behavior. Semantics are unchanged:
the metadata client stays disabled unless the variable is set to a
truthy value.
Comment thread src/aws-cpp-sdk-core/source/internal/AWSHttpResourceClient.cpp Outdated
@fstr fstr merged commit 3fbeb38 into firebolt May 26, 2026
2 of 4 checks passed
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