-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
medusa import: Unable to import empty secret files #58
Comments
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:
Here is also a paths output for a better understanding, maybe:
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:
I'd really like to have the option to include empty keys on with import function. |
When transferring secrets from one instance to another, I run
medusa export
which gives me structure similar to this:Here
A/C
is empty secret.When I run
medusa import
, onlyA/B
is imported.Secret
A/C
is not imported.The text was updated successfully, but these errors were encountered: