Skip to content

Commit 9023934

Browse files
authored
feat(bigtable): Enable ALTS hard bound token in Bigtable w/ direct access (#13153)
The same thing has been introduced to Cloud Spanner and GCS.
1 parent 5615ffc commit 9023934

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bigtable/bigtable.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ func NewClientWithConfig(ctx context.Context, project, instance string, config C
150150
enableDirectAccess, _ := strconv.ParseBool(os.Getenv("CBT_ENABLE_DIRECTPATH"))
151151
if enableDirectAccess {
152152
o = append(o, internaloption.EnableDirectPath(true), internaloption.EnableDirectPathXds())
153+
if disableBoundToken, _ := strconv.ParseBool(os.Getenv("CBT_DISABLE_DIRECTPATH_BOUND_TOKEN")); !disableBoundToken {
154+
o = append(o, internaloption.AllowHardBoundTokens("ALTS"))
155+
}
153156
}
154157

155158
// Allow non-default service account in DirectPath.

0 commit comments

Comments
 (0)