hashicorp / vault-plugin-auth-kubernetes

Vault authentication plugin for Kubernetes Service Accounts
https://www.vaultproject.io/docs/auth/kubernetes.html
Mozilla Public License 2.0
206 stars 62 forks source link

Update audience handling for correctness #179

Closed tomhjp closed 1 year ago

tomhjp commented 1 year ago

I took a deeper look at our audience validation logic in response to #175, and saw a few things that could be improved, using the TokenReview API docs as a reference. I still don't think the logic is 100% correct when populating the TokenReview request audiences, but I think we have made some slightly incompatible promises in the Vault API, so I'm hesitant to align completely with the intended usage.