feat(launcher): Add configurable CA bundle environment variables to launcher v2 #12473
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it
This PR introduces support for configuring which CA-related environment variables the v2 launcher sets when a user provides a custom CA bundle path.
Currently, launcher_v2 unconditionally sets:
whenever CaCertPath is provided.
This behavior is too strict for some environments that want finer control—e.g., cloud-specific setups, distroless containers, or Python environments that expect only a subset of these variables.
This feature allows users to configure exactly which environment variables should be set.
Which issue(s) this PR fixes
Fixes #12329
Description of changes
Users may now specify which CA-related environment variables should be set.
Including:
If CACertEnvVars is nil or empty, the launcher preserves legacy behavior and sets the original 3 environment variables:
This ensures full backward compatibility.
All calls to executeV2 now include the new argument, and tests verify that launcher execution behavior continues to work as expected.
No changes were made to end-to-end or integration tests.
Testing done
launcher_v2_test.goEnd-to-end and API integration tests expectedly fail locally due to requiring a real Kubernetes cluster; this is normal and identical to upstream contributor experience.
Backward compatibility
Fully backward compatible.
CACertEnvVars, the launcher behaves exactly as before.Documentation
A short follow-up PR will update the docs in
docs/backend/tlsexplaining how to configure CA env vars viaLauncherV2Options.