Giter Club home page Giter Club logo

spring-vault-talk's Introduction

Samples from Securely Managing Secrets with Spring Vault talk. Refer to the Javadoc for setup instructions:

  • hello-vault - Runs a simple example that demos how to write and read a pojo’s properties to Vault using Spring Vault’s Vault template.

  • hello-spring-vault - Runs a simple example that demos how to use @VaultPropertySource

  • spring-vault-mysql - Runs an example that demos how to use @VaultPropertySource to obtain credentials for a DataSource for a MySQL database

spring-vault-talk's People

Contributors

rwinch avatar

Stargazers

csyangchsh avatar

Watchers

 avatar  avatar

spring-vault-talk's Issues

error when running the hello-vault

I am getting below error when I ran the hello-vault application:
Exception in thread "main" org.springframework.vault.client.VaultException: Status 404 URI http://localhost:8200/v1/secret/hello-spring-vault: {"request_id":"c5cbac9c-8b38-40a3-a2e7-e7d35555c15b","lease_id":"","renewable":false,"lease_duration":0,"data":null,"wrap_info":null,"warnings":["Invalid path for a versioned K/V secrets engine. See the API docs for the appropriate API endpoints to use. If using the Vault CLI, use 'vault kv put' for this operation."],"auth":null}
at org.springframework.vault.core.VaultTemplate$2.doWithVault(VaultTemplate.java:276)
at org.springframework.vault.core.VaultTemplate$2.doWithVault(VaultTemplate.java:262)
at org.springframework.vault.core.VaultTemplate.doWithVault(VaultTemplate.java:192)
at org.springframework.vault.core.VaultTemplate.write(VaultTemplate.java:262)
at sample.Main.main(Main.java:28)

I have passed the values using cli and trying to using hello-vault to connect to vault and display the stored results but I am stuck with the above error. Could you please let me know if I need to create vault.cong file for this??
If so, please let me know what should I include in the config file.

Appreciate your help.

Thanks,

Akhila

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.