Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.23 KB

File metadata and controls

47 lines (38 loc) · 1.23 KB

embedded-vault

Maven dependency

pom.xml
<dependency>
    <groupId>com.playtika.testcontainers</groupId>
    <artifactId>embedded-vault</artifactId>
    <scope>test</scope>
</dependency>

Consumes (via bootstrap.properties)

  • embedded.vault.enabled (true|false, default is true)

  • embedded.vault.reuseContainer (true|false, default is false)

  • embedded.vault.dockerImage (default is 'vault:1.8.1')

  • embedded.vault.host (default is 'localhost')

  • embedded.vault.port (int, default is 8200)

  • embedded.vault.token (default is '00000000-0000-0000-0000-000000000000')

  • embedded.vault.path (default is 'secret/application')

  • embedded.vault.secrets (Map, default is empty)

Produces

  • embedded.vault.host

  • embedded.vault.port (mapped HTTP port)

  • embedded.vault.token

Example

To auto-configure spring-cloud-vault-config use these properties in your test application.yaml:

/src/test/resources/application.yaml
spring.cloud.vault:
  scheme: http
  host: ${embedded.vault.host}
  port: ${embedded.vault.port}
  token: ${embedded.vault.token}
  kv:
    enabled: true