Giter VIP home page Giter VIP logo

poc-strongswan-vault-psk-loader's Introduction

PoC - Vault PSK Loader for StrongSwan

PoC Overview

The PoC adds three PSKs to StrongSwan (a static PSK and two PSKs from Vault when it detects those new PSKs).

The PoC service runs until it adds two PSKs it discovers in Vault.

PSK Loader Service

The service lists the current PSKs (their IDs) whenever it adds a new PSK to verify that StrongSwan knows about it. Note that the PSKs loaded through other interfaces will not be visible (including the PSKs defined in the StrongSwan config files).

Docker Compose Notes

  • Run dc_build.command to build the components
  • Run dc_run.command to run the PoC components (and watch the console output)
  • Run dc_cleanup.command once you are done (after each PoC execution)

Add Two PSKs to Vault

Once the PoC containers are up and running it's time to add new PSKs (using Vault UI and API).

Create a PSK through the Vault UI (login with token: poc-vault-token). Use the following Create Secret fields:

  • Path for this section: psk/one (psk - path prefix, one - key name)
  • Version Data (field key value): name -> psk.name.one , value -> psk.value.one

Add another PSK using the helper script (vault_add_psk_two.command).

Notes

  • Need a recent version of StrongSwan because the ability to load PSKs was not a part of the original version of the Vici interface/plugin.
  • The PSK discovery process is pretty basic. A real Vault secret notification implementation is not in scope.

poc-strongswan-vault-psk-loader's People

Contributors

kcq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.