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
208 stars 61 forks source link

Add support for setting an Alias' name from the k8s namespace and serviceaccount #110

Closed benashz closed 3 years ago

benashz commented 3 years ago

Overview

This PR is a continuation of #103. Which added a new role configuration to store the Alias.Name in the form of namespace/serviceaccount. Prior to this change the Alias.Name would always be derived from the service account's token uid.

Design of Change

Add a new roles configuration alias_name_source to allow for setting one of the following naming formats:

Related Issues/Pull Requests

[ ] PR #103

Contributor Checklist

[ ] Add relevant docs to upstream Vault repository, or sufficient reasoning why docs won’t be added yet My Docs PR Link Example [ ] Add output for any tests not ran in CI to the PR description (e.g., acceptance tests) [X] Backwards compatible