Skip to content
Merged
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
7 changes: 5 additions & 2 deletions storage/grpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"io"
"log"
"os"
"strconv"
"sync"

"cloud.google.com/go/iam/apiv1/iampb"
Expand Down Expand Up @@ -101,8 +102,10 @@ func defaultGRPCOptions() []option.ClientOption {
defaults = append(defaults,
internaloption.AllowNonDefaultServiceAccount(true),
internaloption.EnableDirectPath(true),
internaloption.EnableDirectPathXds(),
internaloption.AllowHardBoundTokens("ALTS"))
internaloption.EnableDirectPathXds())
if disableBoundToken, _ := strconv.ParseBool(os.Getenv("GCS_DISABLE_DIRECTPATH_BOUND_TOKEN")); !disableBoundToken {
Comment thread
tritone marked this conversation as resolved.
Outdated
defaults = append(defaults, internaloption.AllowHardBoundTokens("ALTS"))
}
Comment thread
tritone marked this conversation as resolved.
Outdated
}

return defaults
Expand Down
Loading