Skip to content

Commit

Permalink
Explicitly specify the dns schema for the ALTS hand-shaker. (#6686)
Browse files Browse the repository at this point in the history
Before this change applications that override the default resolver may
not be able to talk to the metadata server to start the ALTS Handshake,
resulting in DirectPath not being used.
  • Loading branch information
mjamaloney authored Oct 10, 2023
1 parent 59f57b1 commit 313861e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credentials/alts/alts.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import (
const (
// hypervisorHandshakerServiceAddress represents the default ALTS gRPC
// handshaker service address in the hypervisor.
hypervisorHandshakerServiceAddress = "metadata.google.internal.:8080"
hypervisorHandshakerServiceAddress = "dns:///metadata.google.internal.:8080"
// defaultTimeout specifies the server handshake timeout.
defaultTimeout = 30.0 * time.Second
// The following constants specify the minimum and maximum acceptable
Expand Down

0 comments on commit 313861e

Please sign in to comment.