Skip to content

Commit

Permalink
set audience correctly, no https (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
k4leung4 authored Sep 20, 2024
1 parent 36fc666 commit 7844ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apk/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ var DefaultAuthenticators Authenticator = multiAuthenticator{
// First, we'll try to use the HTTP_AUTH environment variable if it's set.
EnvAuth{},
// If both of these envs are set, we'll try to use the k8s token first.
NewK8sAuth(os.Getenv("K8S_TOKEN_PATH"), os.Getenv("CHAINGUARD_IDENTITY"), "https://issuer.enforce.dev", "https://apk.cgr.dev"),
NewK8sAuth(os.Getenv("K8S_TOKEN_PATH"), os.Getenv("CHAINGUARD_IDENTITY"), "https://issuer.enforce.dev", "apk.cgr.dev"),
// If only the identity env is set, and k8s auth didn't work, we'll try to use exchanged GCP auth.
NewChainguardIdentityAuth(os.Getenv("CHAINGUARD_IDENTITY"), "https://issuer.enforce.dev", "https://apk.cgr.dev"),
NewChainguardIdentityAuth(os.Getenv("CHAINGUARD_IDENTITY"), "https://issuer.enforce.dev", "apk.cgr.dev"),
// If nothing has worked yet, we'll try to use chainctl.
CGRAuth{},
}
Expand Down

0 comments on commit 7844ca6

Please sign in to comment.