authorize: fix google cloudrun header audience (#2558) (#2560)

Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.com>
This commit is contained in:
backport-actions-token[bot] 2021-09-02 15:56:22 +00:00 committed by GitHub
parent 0752e5dc35
commit cb02622dae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View file

@ -31,7 +31,7 @@ func NewHeadersRequestFromPolicy(policy *config.Policy) *HeadersRequest {
}
input.KubernetesServiceAccountToken = policy.KubernetesServiceAccountToken
for _, wu := range policy.To {
input.ToAudience = wu.URL.Hostname()
input.ToAudience = "https://" + wu.URL.Hostname()
}
return input
}