Comments (1)
In my case, with medusa v0.6.0, I don't even see the empty keys on the export. Here is the source structure that I'm trying to migrate to a new Vault, for example:
.
└── secrets/data_science/
├── data_engineering/
│ ├── debezium-backend/
│ │ ├── global
│ │ ├── production/
│ │ │ └── global
│ │ │ ├── :JDBC_LOG_DWH_DEBEZIUM_PASSWORD
│ │ │ └── :JDBC_LOG_DWH_READONLY_PASSWORD
│ │ └── staging/
│ │ └── global
│ │ ├── :JDBC_LOG_DWH_DEBEZIUM_PASSWORD
│ │ └── :JDBC_LOG_DWH_READONLY_PASSWORD
│ └── global
└── global
Here is also a paths output for a better understanding, maybe:
secrets/data_science/data_engineering/debezium-backend/global
secrets/data_science/data_engineering/debezium-backend/production/global:JDBC_LOG_DWH_DEBEZIUM_PASSWORD
secrets/data_science/data_engineering/debezium-backend/production/global:JDBC_LOG_DWH_READONLY_PASSWORD
secrets/data_science/data_engineering/debezium-backend/staging/global:JDBC_LOG_DWH_DEBEZIUM_PASSWORD
secrets/data_science/data_engineering/debezium-backend/staging/global:JDBC_LOG_DWH_READONLY_PASSWORD
secrets/data_science/data_engineering/global
secrets/data_science/global
But the export file only has:
data_engineering:
debezium-backend:
production:
global:
JDBC_LOG_DWH_DEBEZIUM_PASSWORD: omitted-s3cr3₺
JDBC_LOG_DWH_READONLY_PASSWORD: omitted-s3cr3₺
staging:
global:
JDBC_LOG_DWH_DEBEZIUM_PASSWORD: omitted-s3cr3₺
JDBC_LOG_DWH_READONLY_PASSWORD: omitted-s3cr3₺
It's also the same with the json export:
{
"data_engineering": {
"debezium-backend": {
"production": {
"global": {
"JDBC_LOG_DWH_DEBEZIUM_PASSWORD": "omitted-s3cr3₺",
"JDBC_LOG_DWH_READONLY_PASSWORD": "omitted-s3cr3₺"
}
},
"staging": {
"global": {
"JDBC_LOG_DWH_DEBEZIUM_PASSWORD": "omitted-s3cr3₺",
"JDBC_LOG_DWH_READONLY_PASSWORD": "omitted-s3cr3₺"
}
}
}
}
}
There is another tool called safe which exports these empty keys indeed, by fails to import them.
Even if I get the intact json export from safe and try to import it with medusa, it does not create these empty keys. (I know the path structure of these two exports are different.)
{
"secrets/data_science/data_engineering/debezium-backend/global": {},
"secrets/data_science/data_engineering/debezium-backend/production/global": {
"JDBC_LOG_DWH_DEBEZIUM_PASSWORD": "omitted-s3cr3₺",
"JDBC_LOG_DWH_READONLY_PASSWORD": "omitted-s3cr3₺"
},
"secrets/data_science/data_engineering/debezium-backend/staging/global": {
"JDBC_LOG_DWH_DEBEZIUM_PASSWORD": "omitted-s3cr3₺",
"JDBC_LOG_DWH_READONLY_PASSWORD": "omitted-s3cr3₺"
},
"secrets/data_science/data_engineering/global": {},
"secrets/data_science/global": {}
}
So the final result at the destination Vault, does not resemble the data structure of the source:
.
└── secrets/data_science/
└── data_engineering/
└── debezium-backend/
├── production/
│ └── global
│ ├── :JDBC_LOG_DWH_DEBEZIUM_PASSWORD
│ └── :JDBC_LOG_DWH_READONLY_PASSWORD
└── staging/
└── global
├── :JDBC_LOG_DWH_DEBEZIUM_PASSWORD
└── :JDBC_LOG_DWH_READONLY_PASSWORD
I'd really like to have the option to include empty keys on with import function.
from medusa.
Related Issues (20)
- Add an option to print version HOT 1
- unable to export with --insecure flag. HOT 1
- required policy ? HOT 3
- Feature: Implement Export & Import of secret versions
- Feature Request: Import and Export of Policies.
- JSON switch disabled in Vault UI after secrets imported( in yaml or json file) HOT 1
- cannot export from my vault because the path not found HOT 1
- ERROR: fail get idrsa, x509: failed to parse private key (use ParsePKCS8PrivateKey instead for this key format) HOT 4
- TLS Handshake Timeout With Many Paths
- Would it be possible to publish v2.x docker image(s) to ghcr.io ?
- Unable to export kv1 HOT 3
- feature: display only secrets' keys, not their value
- support to copy secrets provided in arguments
- Failure when the last version of secret is deleted HOT 1
- Failure when the last version of secret is deleted HOT 1
- vault:latest no longer exists in Docker Hub HOT 3
- Encryption/Decryption & OpenSSL
- Release assets missing for 0.7.0 HOT 1
- Error to the moment to run go build :(
- Ignoring updates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from medusa.