Giter VIP home page Giter VIP logo

vaultron's Introduction

vaultron's People

Contributors

brianshumate avatar fprimex avatar

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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vaultron's Issues

Leaf certs expired on January 27, 2022

Hey @brianshumate - thanks for sharing Vaultron with the world - it's a great dev tool!

Expected Behavior

./form brings up a working Vaultron vault cluster as it typically does ๐Ÿ˜„

Actual Behvior

The leaf certs for both raft and consul-flavored deployments expired Jan 27 13:43:20 2022 GMT, so Vaultron Vault clusters will not start.

This includes the certs found in black_lion/tls/, red_lion/tls/, and yellow_lion/tls/ directories.

Steps to Reproduce

  1. I first did this with a raft-flavored cluster, so TF_VAR_vault_flavor=raft in my shell env.
  2. Run ./form
  3. Run ./ion_darts to export configs for this vaultron instance
  4. Run vault status to see status of cluster:
    Screen Shot 2022-01-27 at 11 18 38 AM
  5. Run docker logs vaultron-vault0 node to see what's up:
    Screen Shot 2022-01-27 at 11 19 34 AM
  6. Visit https://127.0.0.1:8200 in the browser:
    Screen Shot 2022-01-27 at 11 20 41 AM

View leaf certs using openssl

  1. Run openssl x509 -in black_lion/tls/vault-server-0.crt -noout -text on an example leaf cert to see it expired today:
    Signature Algorithm: sha256WithRSAEncryption
        Issuer: CN=node.arus.consul
        Validity
            Not Before: Oct 25 13:42:50 2019 GMT
            Not After : Jan 27 13:43:20 2022 GMT
    

NOTE: the certs in etc/tls/ are NOT expired, just the leaf certs in the *_lion/tls directories.

Check for Terraform

The form and unform scripts should check for the existence of a local terraform binary.

Otherwise, it's this:

./form: 21: ./form: terraform: not found
./form: 23: ./form: terraform: not found
โœจ  Form Vaultron! ...
โœจ  Consul version: 
โœจ  Vault version: 
๐Ÿšซ  Vaultron cannot form! Check terraform plan output.

[vaultron] [!] Vaultron cannot form- sorry, Vaultron does not support Vault version "1.6.0"!

See title. Latest release; file is there.

I edited the form script for debugging (see comment below):

check_vault_version() {
  if [ -n "$TF_VAR_vault_version" ]
    then
      USER_VAULT_CONFIG="../../black_lion/templates/oss/vault_config_${TF_VAR_vault_version}.hcl"
      echo $USER_VAULT_CONFIG # edit for debugging
      if [ ! -f "$USER_VAULT_CONFIG" ]
        then
          msg alert "Vaultron cannot form- sorry, Vaultron does not support Vault version ${TF_VAR_vault_version}!"
          unset TF_VAR_vault_version
          kill -INT $$
      fi
  fi
}
./form                                                                                                                                                           21s 
[vaultron] [=] Form Vaultron! 
[vaultron] [i] Terraform has been successfully initialized! 
../../black_lion/templates/oss/vault_config_"1.6.0".hcl
[vaultron] [!] Vaultron cannot form- sorry, Vaultron does not support Vault version "1.6.0"!
ll black_lion/templates/oss/vault_config_"1.6.0".hcl                                                                                                              6s 
-rw-rw-r-- 1 tobias tobias 1,1K Dez  7 21:43 black_lion/templates/oss/vault_config_1.6.0.hcl

The config file is there, but the conditional is not matching.

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.