{"id":267,"date":"2022-11-14T19:00:00","date_gmt":"2022-11-15T00:00:00","guid":{"rendered":"http:\/\/sycured.127.0.0.1.sslip.io\/?p=267"},"modified":"2024-01-14T12:27:43","modified_gmt":"2024-01-14T17:27:43","slug":"vault-migration-cloud-seal-to-shamir","status":"publish","type":"post","link":"http:\/\/10.42.0.68:8080\/blog\/vault-migration-cloud-seal-to-shamir","title":{"rendered":"Hashicorp Vault: Migration from Cloud seal to Shamir seal"},"content":{"rendered":"\n

Hashicorp Vault has different Seal types, and a day we need to migrate between two seals.<\/p>\n\n\n\n

This is exactly what happened, and how I did it between Oracle Cloud KMS (ocikms) seal and Shamir Seal.<\/p>\n\n\n\n

Why am I doing this migration? Hashicorp broke Vault with a lot of Cloud KMS.<\/h2>\n\n\n\n

I’ve my lab deployed on Oracle Cloud and I needed to deploy 1.12.0\/1.12.1 to get a bug fix deployed.<\/p>\n\n\n\n

You deployed it and Vault didn’t restart\u2026 \ud83d\ude31 So I tried to run it manually from the CLI and got the real error:<\/p>\n\n\n\n

\/usr\/bin\/vault server -config=\/etc\/vault.d\/vault.hcl\nError parsing Seal configuration: 'key_id' not found for OCI KMS seal configuration\n2022-10-13T04:07:07.570Z [INFO]  proxy environment: http_proxy=\"\" https_proxy=\"\" no_proxy=\"\"<\/code><\/pre>\n\n\n\n

So no need to modify the configuration, Vault is broken with the OCI KMS. I reported it using GitHub: seal OCI KMS doesn’t find key_id<\/a> and someone already reported an additional error with OCI KMS: Oracle KMS seal: “did not find a proper configuration for private key”<\/a><\/p>\n\n\n\n

But investing a little more, it’s not the only KMS broken:<\/p>\n\n\n\n