Update Kubernetes 1.24 and kind v0.19.0 #280
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ensure that we test all the components against Kubernetes 1.24. We should aim for Kubernetes 1.27 in the future, but this is a good step forward as many behaviour changes are related to this version.
https://kubernetes.io/blog/2022/05/03/kubernetes-1-24-release-announcement/
In particular, we are looking at one change that directly impacts Vault. Service Account Tokens in Kubernetes v1.24, non-expiring service account tokens are no longer auto-generated.
You can read further details here:
https://eng.d2iq.com/blog/service-account-tokens-in-kubernetes-v1.24/
How come this is working? without additional changes?
With any vault version before 1.9, this should break all the integration tests because the jwt iss validation will fail.
You can read more details about this here https://developer.hashicorp.com/vault/docs/auth/kubernetes#kubernetes-1-21
You need to enable
disable_iss_validation=true
on those versions for theauth/kubernetes/config
configuration.From Vault 1.9.0,
disable_iss_validation
andissuer
are deprecated, and the default fordisable_iss_validation
has changed totrue
for new Kubernetes auth mounts.