Git Product home page Git Product logo

vault-migrator's People

Contributors

criloz avatar danijeel avatar nebtex-devbot avatar willglynn 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vault-migrator's Issues

Migration to and from filesystem can have issues with underscores

I have vault backed by consul which I am migrating to filesystem for backup purposes.

If my vault kv has a key named foo and a folder named _foo... both want to become _foo on the filesystem so I get a _foo is a directory error when running vault-migrator.

Since vault is okay with foo and _foo, is there some way to configure the consul file backend to make it handle this case? Do you have any advice that isn't: "don't do that, silly!" :-)

My config.json for vault-migrator --config config.json:

$ cat backup.json
{
    "to": {
        "name": "file",
        "config": {
            "path": "/Users/jar349/projects/vault-backups/data"
        }
    },
    "from": {
        "name": "consul",
        "config": {
            "address": "localhost:8500",
            "path": "vault/"
        }
    }
}

Migrating from Consul - Consul

Values seem to properly migrate from consul to another consul end point (attempting to create a DR by leveraging copying from a consul cluster to another consul node - and starting a vault instance against that node).

When bringing up a vault node against the copy, the vault can be unsealed but a leader can't be established. Have tried vault 0.7.0 and 0.10.x

The exporting functionality does seem to work as expected however a new vault instance can't be used against the replicated set.

Do certain values have to be removed from consul to address this? I have attempted to delete the leader data and lock from /vault/core.

When those vaults are removed the following errors are constantly thrown when the vault is unsealed.

[ERROR] core: failed to read auth table: error="decryption failed: cipher: message authentication failed"
[INFO ] core: pre-seal teardown starting
[INFO ] core: pre-seal teardown complete
[ERROR] core: post-unseal setup failed: error="failed to setup auth table"
[INFO ] core: acquired lock, enabling active operation
[INFO ] core: post-unseal setup starting
[INFO ] core: loaded wrapping token key
[INFO ] core: successfully setup plugin catalog: plugin-directory=
[INFO ] core: successfully mounted backend: type=kv path=secret/
[INFO ] core: successfully mounted backend: type=system path=sys/
[INFO ] core: successfully mounted backend: type=identity path=identity/
[INFO ] core: successfully mounted backend: type=cubbyhole path=cubbyhole/
[ERROR] core: failed to read auth table: error="decryption failed: cipher: message authentication failed"

Migration issue

Hi Team,

I have an existing Vault environment which is using dynamoDB as a backend and LDAP as an auth backend, it is using one ROOT key and 4 secrets.

I am migrating the dynamodb db to our new environment, new environment has consul as a backend
and Okta as an auth backend, it is using one ROOT key and 1 secrets key. After the migration, my auth backend, cluster config, RooT key, secrets key are getting overwritten.

How can i prevent that?

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.