SAP-archive / karydia

Kubernetes Security Walnut
Other
77 stars 10 forks source link

Distinguish between mutating and validating service token pod webhook #93

Closed marcrahnsap closed 5 years ago

marcrahnsap commented 5 years ago

Description

Option karydia.gardener.cloud/automountServiceAccountToken=remove-default is only applicable for the mutating webhook. If the mutating hook is not registered at the api server, but the option remove-default is set, karydia will return a meaningful error message and will deny the deployment. If karydia is configured as mutating and validating webhook, karydia acts accordingly and patches the object.

Checklist

Before submitting this PR, please make sure: