Git Product home page Git Product logo

spring-cloud-vault-config-samples's Introduction

Spring Vault Examples

This repository contains examples using Spring Vault and Spring Cloud Vault.

Setup

Open a console in the examples root directory and execute the following commands to setup Vault:

$ src/test/bash/create_certificates.sh # Create SSL certificates
$ src/test/bash/install_vault.sh # Download and unzip vault
$ src/test/bash/local_run_vault.sh &

Vault is now running in dev-mode listening on https://localhost:8200 and http://localhost:8201.

Vault requires some configuration before you can run the examples.

$ source src/test/bash/env.sh
$ src/test/bash/setup_examples.sh

The root token is set to 00000000-0000-0000-0000-000000000000 and Vault is running in dev mode.

You can use Vault now from the console or run the examples. Check out the example-specific readme's for further instructions/requirements.

Vault runs with SSL enabled so make sure the application runs in the current directory so it can find work/keystore.jks.

Using Vault from the Command Line

You can use a shortcut to setup the token and Vault CLI environment by sourcing vault/env.sh

$ source src/test/bash/env.sh # Set Vault address, Token and CA path

Write Data to Vault

Writes the key-value pair mykey=value to the path secret/my-spring-boot-app.

$ ./vault write secret/my-spring-boot-app mykey=value

spring-cloud-vault-config-samples's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

spring-cloud-vault-config-samples's Issues

certificate renewal without application restart

I used your PKI example for certificate distribution with Vault. As I understand, the applications only renew their key and certificate when they get restarted. What would be the best approach to renew key and certificate during application runtime?

Using Spring Cloud Vault with appid / userid authentication

We have a requirement where in we need to use spring cloud vault with appid / userid authentication. We are going to have the SSL disabled. With the examples that you provided for spring cloud or spring core. I was unable to figure this out. Could you help me with some examples where I can achieve this

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.