spring-projects / spring-vault

Provides familiar Spring abstractions for HashiCorp Vault
https://spring.io/projects/spring-vault
Apache License 2.0
283 stars 186 forks source link

Support role_name and entity_alias in VaultTokenRequest #690

Closed edmundham closed 1 year ago

edmundham commented 2 years ago

Hi all,

From the vault documentation for creating token through API call, https://www.vaultproject.io/api-docs/auth/token#create-token they have role_name and entity_alias. However, current (2.3.2 version) VaultTokenRequest does not support these parameters. https://github.com/spring-projects/spring-vault/blob/2.3.2/spring-vault-core/src/main/java/org/springframework/vault/support/VaultTokenRequest.java

Can the team look into adding these?

Thanks in advance!

mp911de commented 2 years ago

Feel free to submit a pull request.