Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
Expand Down Expand Up @@ -438,6 +439,10 @@ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProvi
grpcTransportProviderBuilder
.setAttemptDirectPathXds()
.setAttemptDirectPath(true)
// Try to fetch a hard-bound access token for direct access if the runtime
// environment supports it.
.setAllowHardBoundTokenTypes(
Copy link
Contributor

Choose a reason for hiding this comment

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

You can set it as default. Not a hard requirement, but could we add a env var to disable this incase we have any problem? Better to use env var rather than rollback client to prev version.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a great point. Done. Thanks for the tip!

Collections.singletonList(InstantiatingGrpcChannelProvider.HardBoundTokenTypes.ALTS))
// Allow using non-default service account in DirectPath.
.setAllowNonDefaultServiceAccount(true);
}
Expand Down
Loading