87 Commits

Author SHA1 Message Date
buildmaster
83966b6bfc Bumping versions 2021-04-21 00:13:12 +00:00
buildmaster
6302b9f9cd Going back to snapshots 2021-02-11 15:19:12 +00:00
buildmaster
29530c777f Update SNAPSHOT to 2.2.7.RELEASE 2021-02-11 15:16:33 +00:00
John Gasper
d9f2d245d0 Fix Invalid effective property name in reference documentation
`server-id:` should be `server-name` per https://github.com/spring-cloud/spring-cloud-vault/blob/master/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultProperties.java#L584-L588

See gh-407.
2020-08-11 12:26:46 +02:00
Marcin Grzejszczak
2a042adf8f Migrated to docs.spring.io & updated sc-build 2020-06-04 15:58:43 +02:00
Mark Paluch
b2bcf183cb Polishing
Reformat documentation.

See gh-394.
2020-04-02 15:09:01 +02:00
Mark Paluch
0178b6b5a1 Deprecate spring.cloud.vault.generic in favor of spring.cloud.vault.kv
Deprecating properties that used the previous kv backend name "generic" so these can be removed with the next major release.

Closes gh-394.
2020-04-02 15:09:01 +02:00
Mark Paluch
d6c83e3ad8 Update quickstart guide
Reflect Spring Cloud Vault perspective of setting up Vault. Add references to config- and bash files.

Closes gh-541.
2020-03-10 10:57:23 +01:00
Mark Paluch
49aee4cf51 Allow disabling authentication for Vault Agent use
We now allow disabling Spring Vault's ClientAuthentication and SessionManagement features to rely on authenticated requests sent by Vault Agent. The authentication infrastructure can be disabled via:

spring.cloud.vault:
    authentication: NONE

Closes gh-356.
2020-01-13 12:08:15 +01:00
Mark Paluch
11e940d975 Use project-version placeholder in documentation.
Closes gh-370.
2019-11-14 16:00:56 +01:00
Raoof Mohammed
7376b03c7e Fix azure-msi default mount path in reference documentation
Closes gh-369.
2019-11-14 15:56:08 +01:00
zhogov
e0700bbf10 Fix documentation for GCP-IAM.
As per [VaultProperties](c0b958f598/spring-cloud-vault-config/src/main/java/org/springframework/cloud/vault/config/VaultProperties.java (L741))

Original pull request: gh-358.
2019-09-27 08:50:57 +02:00
Mark Paluch
c0b958f598 Add X-Vault-Namespace Support.
We now support Vault namespaces by setting the spring.cloud.vault.namespace property.

Closes gh-259
2019-09-09 15:21:58 +02:00
Mark Paluch
fb99455e53 Add support for PCF authentication.
We now support PCF authentication:

spring.cloud.vault:
    authentication: PCF
    pcf:
        role: my-dev-role

Closes gh-354.
2019-09-09 14:45:14 +02:00
Mark Paluch
7a5d997283 Add support to override endpointUri for AWS IAM Authentication.
We now allow setting the AWS IAM Endpoint URI to adjust for various AWS regions.

Closes gh-346.
2019-08-14 10:19:44 +02:00
Marcin Grzejszczak
834a799099 Added symbolic link of index.adoc 2019-07-29 14:47:46 +02:00
Mark Paluch
daf6b24a4b Polishing
Rewrap documentation.

Closes gh-335.
2019-05-22 15:39:31 +02:00
Mårten Svantesson
87db1bd686 Document that database credentials are not rotated.
Clarifying limitation with Spring Cloud Vault not being able to rotate database secrets

Original pull request: gh-335.
2019-05-22 15:38:49 +02:00
Mårten Svantesson
d22beb1fce Add configurable endpoints for renew and revoke of secret leases.
We now allow configuration which endpoints to use for renew/revocation
through configuring spring.cloud.vault.config.lifecycle.lease-endpoints=Legacy/SysLeases.

Vault 0.8 has introduced endpoints below sys/leases and deprecated the previous legacy approach.

Original pull request: gh-334.
2019-05-20 11:49:07 +02:00
Zach Hubbs
f5da0e5a98 Fix password property in example.
* Update spring-cloud-vault.adoc

Updated password property in example to match the spring datasource password

* Fixing the rest of the property examples

Updating all property examples so the password property is mapped to a datasource password property


Original pull request: gh-324.
2019-04-18 10:24:23 +02:00
Spring Operator
c6045f29e8 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

Closes gh-297.
2019-03-21 22:14:53 +02:00
Spring Operator
14af952063 URL Cleanup (#289)
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://cloud.spring.io/spring-cloud-vault/ migrated to:
  https://cloud.spring.io/spring-cloud-vault/ ([https](https://cloud.spring.io/spring-cloud-vault/) result 200).
* http://stackoverflow.com/questions/1593051/how-to-programmatically-determine-the-current-checked-out-git-branch migrated to:
  https://stackoverflow.com/questions/1593051/how-to-programmatically-determine-the-current-checked-out-git-branch ([https](https://stackoverflow.com/questions/1593051/how-to-programmatically-determine-the-current-checked-out-git-branch) result 200).
* http://stackoverflow.com/questions/29300806/a-bash-script-to-check-if-a-string-is-present-in-a-comma-separated-list-of-strin migrated to:
  https://stackoverflow.com/questions/29300806/a-bash-script-to-check-if-a-string-is-present-in-a-comma-separated-list-of-strin ([https](https://stackoverflow.com/questions/29300806/a-bash-script-to-check-if-a-string-is-present-in-a-comma-separated-list-of-strin) result 200).
* http://www.apache.org/licenses/LICENSE-2.0 migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
* http://www.spring.io migrated to:
  https://www.spring.io ([https](https://www.spring.io) result 301).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0
* http://maven.apache.org/xsd/maven-4.0.0.xsd
* http://www.w3.org/2001/XMLSchema-instance
2019-03-11 19:09:56 -04:00
Mark Paluch
8cc67db6eb Polishing.
Add test. Fix expiry threshold configuration. Update documentation. Add author and since tags.

Original pull request: gh-278.
2019-02-13 14:44:50 +01:00
Philipp Trulson
5549b82592 Fix formatting of authentication methods reference documentation.
Original pull request: #280.
2019-02-13 14:13:51 +01:00
Mark Paluch
6e2afade1b Add support for GCP authentication.
We now support GCP Compute and GCP IAM authentication.

We also provide different RestTemplate's for Vault and for external service communication.

Closes gh-249.
2018-11-09 16:59:27 +01:00
Mark Paluch
fd77c19ceb Add support for Azure authentication.
Closes gh-250.
2018-11-09 08:57:38 +01:00
Mark Paluch
d413f50f24 Document property to configure Kubernetes auth mount.
Closes gh-258.
2018-11-05 09:22:53 +01:00
Mark Paluch
655fcf480d Polishing.
Update documentation to Spring Boot 2.x to reflect health endpoint configuration.

Original pull request: gh-238.
2018-09-03 13:58:52 +02:00
Mark Paluch
f70143d2d4 Document AppRole limitations using reactive configuration.
See gh-222.
2018-07-02 14:16:28 +02:00
Spencer Gibb
a915a79fba Updates boot reference to 2.0.0 2018-06-05 16:16:51 -04:00
Mark Paluch
165f666141 Add versioned key-value backend support.
We now provide configuration support for the versioned key-value backend introduced with Vault 0.10.0. This backend uses configuration properties prefixed with spring.cloud.vault.kv and defaults to the secret mount path. It resembles configuration properties from the generic secret backend. Using the versioned key-value backend requires disabling the generic secret backend (spring.cloud.vault.generic.enabled=false).

The versioned key-value backend can be configured programmatically through SecretBackendConfigurer.add(KeyValueSecretBackendMetadata.create(…)) which will add data path segments and unwrap nested data elements from the response.

See gh-209.
2018-04-24 16:49:04 +02:00
Mark Paluch
7c26507a2f Adapt to AppRole authentication modes in Spring Vault.
We now support a selected subset of push/pull/wrapped RoleId and SecretId combinations using AppRoleAuthentication:

* Provided RoleId/SecretId
* Provided RoleId without SecretId
* Provided RoleId, Pull SecretId
* Pull RoleId, provided SecretId
* Full pull mode
* Wrapped
* Wrapped RoleId, provided SecretId
* Provided RoleId, wrapped SecretId

The particular mode is derived from role-id, secret-id, role (name) and token properties beneath spring.cloud.vault.*.

Closes gh-174.
2018-02-06 13:35:00 +01:00
Mark Paluch
72bcc6fd32 Polishing.
Slightly rewording. Remove parts that would duplicate Kubernetes/Vault reference docs.

Original pull request: gh-178.
Related ticket: gh-173.
Closes gh-178.
2017-11-03 13:31:55 +01:00
Michal Budzyn
caf07993e3 Document Kubernetes authentication.
Original pull request: gh-178.
Related ticket: gh-173.
2017-11-03 13:31:55 +01:00
Mark Paluch
08d2a2e4c3 Polishing.
Convert spaces to tabs. Deprecate VaultPostgreSqlProperties and VaultMySqlProperties. Convert database integration test to use MySQL. Slightly reword reference documentation.

Upgrade lombok to 1.16.18 to use onMethod_ attributes.

Original pull request: gh-170.
Related ticket: gh-169.
2017-10-27 11:41:59 +02:00
Per Abich
9da5e83dc9 Add support for Vault's database backend.
We now support Vault's database backend directly. MySQL and PostgreSQL configuration properties are deprecated now in favor of spring.cloud.vault.database. Cassandra and MongoDB backends remain active and default to their deprecated backends to support multi-database configuration of multiple, various database types.

spring.cloud.vault:
    database:
        enabled: true
        role: readonly

Original pull request: gh-170.
Related ticket: gh-169.
2017-10-27 11:41:43 +02:00
Mark Paluch
9cff9eb9ed Polishing.
Rename vault-role configuration property to role for a consistent naming. Introduce path and server-name config properties. Eagerly fetch AWS credentials to fail early if credentials cannot be obtained. Fix properties in reference docs. Javadoc, reference docs wording. Add author tags. Re-generate readme.

Original pull request: gh-175.
See gh-134.
2017-10-27 10:48:38 +02:00
Kevin Holditch
96ac3ba712 Add support for AWS IAM authentication.
We now support configuration of AWS IAM using AWS' default credential provider chain to obtain credentials from the environment/system properties/credentials profile/ECS/EC2 metadata service.

spring.cloud.vault:
    authentication: AWS_IAM

Original pull request: gh-175.
Closes gh-134.
2017-10-27 10:47:58 +02:00
Mark Paluch
8403fb64eb Document how to use Vault's database backend.
See gh-169.
2017-10-20 17:41:39 +02:00
Mark Paluch
d8ba3bd143 Allow Vault server lookup via DiscoveryClient.
We now support Vault server lookup using service registries via DiscoveryClient. Vault server is looked up during the bootstrap phase and configured by serviceId rather than host/port when enabling service discovery.

Closes gh-132.
2017-07-24 13:42:54 +02:00
Mark Paluch
182713de5e Update documentation.
Closes gh-125.
2017-06-16 21:01:26 +02:00
Mark Paluch
1c9be8b4ad Allow specifying a Vault URI.
Closes gh-115.
2017-05-27 23:41:06 +02:00
Mark Paluch
1b946d3fa2 Allow configuration of PropertySourceLocator behavior.
We now support configuration of PropertySourceLocator behavior of generic and discovered secret backends. We introduced VaultConfigurer as strategy interface to be implemented by customizer beans in the bootstrap context. VaultConfigurer allows configuration of secret backends via SecretBackendConfigurer.

Motivation: Customization was only possible by implementing an own PropertySourceLocator by extending VaultPropertySourceLocatorSupport and implementing doCreatePropertySources. Both is non-trivial and does not allow reuse of existing functionality.

See gh-116.
2017-05-22 19:36:24 +02:00
Mark Paluch
03dd5e36c0 Allow configuration of AWS-EC2 nonce.
We now support static configuration of the AWS-EC2 authentication nonce to support re-login on application crashes/vm-internal restarts.

Closes gh-103.
2017-05-11 17:04:50 +02:00
Mark Paluch
734ac7cb5f Fix reference docs links. 2017-05-09 21:34:00 +02:00
Mark Paluch
1993145bfe Updated docs
See gh-99.
2017-04-18 11:14:17 +02:00
Marcin Grzejszczak
50854eab7b Updated docs 2017-04-18 10:28:49 +02:00
Mark Paluch
18ecd26ea2 Add revision/date to reference docs. 2017-04-10 20:34:04 +02:00
Mark Paluch
0623886106 Adapt to changed GitHub repository name.
Adapt changed GitHub repository name in pom.xml and documentation.

See gh-92.
2017-03-31 12:48:09 +02:00
Mark Paluch
4b039a73e8 Polishing.
Fix HashiCorp lettercasing in Readme.
2017-03-31 12:32:49 +02:00