fix: discover Kubernetes issuer for kubectl-ate - #2770
Conversation
Signed-off-by: Yashraj Shukla <shuklayashraj68@gmail.com>
Signed-off-by: Yashraj Shukla <shuklayashraj68@gmail.com>
|
This makes sense if we're doing generic setup, but this is part of a CI setup that always installs into |
|
@EItanya yeah, CI uses kind but that’s actually where the mismatch shows up. |
But then wouldn't it be failing? |
@EItanya I checked and CI doesn't actually hit the code path this fixes. admin commands (make-ca-pool, make-jwt-pool) auth through the kubeconfig context directly, not through ate-api's JWT check. So the issuer in the configmap never gets validated during CI setup. mismatch only shows up on stuff like kubectl-ate get actor-template which sends a real bearer token to ate-api for validation. that's the exact command failing in #2763. CI just never runs anything like that so it stays green either way. Could add a CI step that runs a kubectl-ate get after setup to catch this going forward, if that's useful. Can do it here or separate PR. |
|
CI isn't running on this PR for some reason and I can't approve without that. Can you either:
|
Fixes the hardcoded Kubernetes issuer in setup/CI by discovering the issuer from the cluster’s OIDC config.
This fixes kubectl-ate auth on kind.
Fixes #2763