Skip to content

Commit

Permalink
Modifying audience string
Browse files Browse the repository at this point in the history
  • Loading branch information
conor-mccullough committed Oct 24, 2023
1 parent 1c00c77 commit a74d7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/auth_gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (l *AuthLoginGCP) getJWT(ctx context.Context) (string, error) {
if metadata.OnGCE() {
// If we are running on GCE instance we can get the JWT token
// from the meta-data service.
audience := fmt.Sprintf("%s/vault", l.params[consts.FieldRole])
audience := fmt.Sprintf("vault/%s", l.params[consts.FieldRole])
c := metadata.NewClient(nil)
resp, err := c.Get(
fmt.Sprintf("instance/service-accounts/default/identity?audience=%s&format=full", audience),
Expand Down

0 comments on commit a74d7bd

Please sign in to comment.