Skip to content

Conversation

@kannanjgithub
Copy link
Contributor

Removes the following env var usages.
GRPC_EXPERIMENTAL_XDS_SNI
GRPC_EXPERIMENTAL_XDS_AUTHORITY_REWRITE
GRPC_EXPERIMENTAL_XDS_SYSTEM_ROOT_CERTS
GRPC_EXPERIMENTAL_XDS_GCP_AUTHENTICATION_FILTER

  GRPC_EXPERIMENTAL_XDS_SNI
  GRPC_EXPERIMENTAL_XDS_AUTHORITY_REWRITE
  GRPC_EXPERIMENTAL_XDS_SYSTEM_ROOT_CERTS
  GRPC_EXPERIMENTAL_XDS_GCP_AUTHENTICATION_FILTER
  GRPC_EXPERIMENTAL_XDS_SNI
  GRPC_EXPERIMENTAL_XDS_AUTHORITY_REWRITE
  GRPC_EXPERIMENTAL_XDS_SYSTEM_ROOT_CERTS
  GRPC_EXPERIMENTAL_XDS_GCP_AUTHENTICATION_FILTER
@kannanjgithub kannanjgithub requested a review from ejona86 November 6, 2025 10:58
@ejona86 ejona86 added the TODO:backport PR needs to be backported. Removed after backport complete label Nov 11, 2025
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd feel more comfortable if we left the feature guards in-place and just change their default value. GRPC_EXPERIMENTAL_XDS_GCP_AUTHENTICATION_FILTER isn't really a concern, as any problems discovered there wouldn't be helped by keeping the env variable around. And the tests were already sort of broken.

public static final String ENDPOINT_HOSTNAME = "data-host";
public static final int ENDPOINT_PORT = 1234;
static final Bootstrapper.ServerInfo EMPTY_BOOTSTRAPPER_SERVER_INFO =
new Bootstrapper.ServerInfo() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class shouldn't be extended. Use create() to construct.

this.sslContextProviderSupplier = sslContextProviderSupplier;
EnvoyServerProtoData.BaseTlsContext tlsContext = sslContextProviderSupplier.getTlsContext();
UpstreamTlsContext upstreamTlsContext = ((UpstreamTlsContext) tlsContext);
if (CertificateUtils.isXdsSniEnabled) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this being removed without also changing the default value of/deleting GRPC_EXPERIMENTAL_XDS_SNI?

@kannanjgithub
Copy link
Contributor Author

It is easier to start from scratch for the changes to just change the default to true. I have raised a different PR #12499 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TODO:backport PR needs to be backported. Removed after backport complete

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants