Preflight Checklist
Vault Secrets Webhook Version
1.22.2
Installation Type
Official Helm chart
Bank-Vaults Version
No response
Kubernetes Version
1.25.3
Kubernetes Distribution/Provisioner
T-Systems K8S
Expected Behavior
Vault Secrets Webhook (VSW) can iterate over regcred credentials at the same level as kubelet does and can choose valid credentials for fetching image descriptor.
Actual Behavior
VSW chooses first regcred for given registry and uses it for all images from this registry - which is not always the case and breaks mutation for given Pod, even though all images are correctly downloaded by kubelet on the node with set imagePullSecrets.
Steps To Reproduce
- Create deployment with 2 images with different access credentials from the same registry (with incomplete args/command fields as it is not always convenient, especially for cached public images).
- imagePullSecrets array have one of the registry credential secrets as first element
- Observe failed mutation due to inability to fetch image descriptor for the second image (that has credential ref as 2nd element in imagePullSecrets array)
Configuration
Logs
Additional Information
No response
Preflight Checklist
Vault Secrets Webhook Version
1.22.2
Installation Type
Official Helm chart
Bank-Vaults Version
No response
Kubernetes Version
1.25.3
Kubernetes Distribution/Provisioner
T-Systems K8S
Expected Behavior
Vault Secrets Webhook (VSW) can iterate over regcred credentials at the same level as kubelet does and can choose valid credentials for fetching image descriptor.
Actual Behavior
VSW chooses first regcred for given registry and uses it for all images from this registry - which is not always the case and breaks mutation for given Pod, even though all images are correctly downloaded by kubelet on the node with set imagePullSecrets.
Steps To Reproduce
Configuration
Logs
Additional Information
No response