You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the authenticating pod has no init containers, and the authenticator sidecar container doesn't have the expected name, then the authenticator fails with the internal error:
Authentication Error: #<NoMethodError: undefined method `find' for nil:NilClass>
This occurs in the lookup for the authenticator container because pod.spec.initContainers is nil:
Closes#1182
If `initContainers` or `containers` is not included in the deployment config for a pod, then the pod spec attributes for these are `nil` rather than an empty array.
This commit accounts for that possibility when searching for the authenticator containerby defaulting to an empty array if the value is `nil`. It also adds spec tests to verify this behavior.
Closes#1182
If `initContainers` or `containers` is not included in the deployment config for a pod, then the pod spec attributes for these are `nil` rather than an empty array.
This commit accounts for that possibility when searching for the authenticator containerby defaulting to an empty array if the value is `nil`. It also adds spec tests to verify this behavior.
Issue description
When the authenticating pod has no init containers, and the authenticator sidecar container doesn't have the expected name, then the authenticator fails with the internal error:
This occurs in the lookup for the authenticator container because
pod.spec.initContainers
isnil
:conjur/app/domain/authentication/authn_k8s/validate_pod_request.rb
Lines 96 to 99 in b08670e
The text was updated successfully, but these errors were encountered: