uswitch / kiam

Integrate AWS IAM with Kubernetes
Apache License 2.0
1.15k stars 238 forks source link

Validate ARN format #503

Closed brenix closed 2 years ago

brenix commented 3 years ago

Updates the ARN resolver to return an error if the ARN format is not generally valid. This prevents a index out of range panic in kiam when splitting the string into parts (via roleFromArn), which generally leads to kiam unable to sync the pod cache.