Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit c296c92

Browse files
committed
feat: Enable ALTS hard bound token in Bigtable w/ direct access
1 parent a3ca085 commit c296c92

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
import java.io.IOException;
6565
import java.nio.charset.StandardCharsets;
6666
import java.util.Base64;
67+
import java.util.Collections;
6768
import java.util.List;
6869
import java.util.Map;
6970
import java.util.Optional;
@@ -438,6 +439,10 @@ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProvi
438439
grpcTransportProviderBuilder
439440
.setAttemptDirectPathXds()
440441
.setAttemptDirectPath(true)
442+
// Try to fetch a hard-bound access token for direct access if the runtime
443+
// environment supports it.
444+
.setAllowHardBoundTokenTypes(
445+
Collections.singletonList(InstantiatingGrpcChannelProvider.HardBoundTokenTypes.ALTS))
441446
// Allow using non-default service account in DirectPath.
442447
.setAllowNonDefaultServiceAccount(true);
443448
}

0 commit comments

Comments
 (0)