Polishing.

Simplify file read. Add tests.

See gh-609
Original pull request: gh-614
This commit is contained in:
Mark Paluch
2021-10-04 08:58:31 +02:00
parent a0150aef17
commit 7c215f2c3e
3 changed files with 65 additions and 19 deletions

View File

@@ -9,9 +9,8 @@ Spring Cloud Vault supports token and AppId authentication.
=== Token authentication
Tokens are the core method for authentication within Vault.
Token authentication requires a static token to be provided using the
https://github.com/spring-cloud/spring-cloud-commons/blob/master/docs/src/main/asciidoc/spring-cloud-commons.adoc#the-bootstrap-application-context[Bootstrap Application Context].
As a fallback the token may also be retrieved from ~/.vault-token which is the default location used by the Vault CLI to cache a token.
Token authentication requires a static token to be provided using the configuration.
As a fallback, the token may also be retrieved from `~/.vault-token` which is the default location used by the Vault CLI to cache tokens.
NOTE: Token authentication is the default authentication method.
If a token is disclosed an unintended party gains access to Vault and can access secrets for the intended client.