spring-cloud-vault icon indicating copy to clipboard operation
spring-cloud-vault copied to clipboard

Add property to configure cert authentication role

Open aram535 opened this issue 1 year ago • 1 comments

I'm setting up an cert authentication but can't seem to find the option value to set for the cert auth name.

https://docs.spring.io/spring-cloud-vault/docs/current/reference/html/#common-application-properties doesn't seem to contain any entries for the cert auth other than the mount name.

For Vault:

curl -H "X-Vault-Request: true" -H "X-Vault-Token: $(vault print token)" https://127.0.0.1:8200/v1/auth/cert/certs?list=true

Reference: https://github.com/spring-projects/spring-vault/pull/780

Per @mp911de ... it is settable via:

ClientCertificateAuthenticationOptions.builder().role(…).build()

aram535 avatar Apr 16 '24 21:04 aram535

Another reference: https://github.com/spring-projects/spring-vault/issues/864

mp911de avatar Apr 18 '24 09:04 mp911de