fix: add token in the header for kube

Kubernetes JWT endpoint is authenticated so we must pass the token from
the config in the PyJWKClient's client header to fetch the public keys.

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-10-10 14:47:08 +02:00
parent a1c98ca87b
commit dbd6e2be06
No known key found for this signature in database
4 changed files with 11 additions and 2 deletions

View file

@ -81,6 +81,7 @@ jobs:
yq eval '.server.auth.provider_config.issuer = "${{ env.KUBERNETES_ISSUER }}"' -i $run_dir/run.yaml
yq eval '.server.auth.provider_config.audience = "${{ env.KUBERNETES_AUDIENCE }}"' -i $run_dir/run.yaml
yq eval '.server.auth.provider_config.jwks.uri = "${{ env.KUBERNETES_API_SERVER_URL }}"' -i $run_dir/run.yaml
yq eval '.server.auth.provider_config.jwks.token = "${{ env.TOKEN }}"' -i $run_dir/run.yaml
cat $run_dir/run.yaml
# avoid line breaks in the server log, especially because we grep it below.