Hi there Everyone,
While attempting to run the database init
command to initialize the database and generate the KMS keys:
boundary database init -config /boundary/config.hcl
I get the following error:
Error parsing KMS configuration: error setting configuration on the kms plugin: rpc error:
code = Unknown
desc = error fetching Azure Key Vault wrapper key information: keyvault.BaseClient#GetKey: Failure responding to request:
StatusCode=404 -- Original Error: autorest/azure: Service returned an error.
Status=404
Code="KeyNotFound"
Message="A key with (name/id) root was not found in this key vault. If you recently deleted
this key you may be able to recover it using the correct recovery command. For help
resolving this issue, please see https://go.microsoft.com/fwlink/?linkid=2125182"
The following is my KMS configuration:
# Root KMS configuration block: this is the root key for Boundary
# Using Azure Key Vault
kms "azurekeyvault" {
purpose = "root"
key_name = "root"
}
# Worker authorization KMS
# Using Azure Key Vault
kms "azurekeyvault" {
purpose = "worker-auth"
key_name = "worker"
}
# Recovery KMS block: configures the recovery key for Boundary
# Using Azure Key Vault
kms "azurekeyvault" {
purpose = "recovery"
key_name = "recovery"
}
The following items are exposed via environment variables:
# AZURE_TENANT_ID: Azure Tenant ID
# AZURE_CLIENT_ID: Azure App ID
# AZURE_CLIENT_SECRET: Azure App Password
# AZUREKEYVAULT_WRAPPER_VAULT_NAME: Key Vault Name
# BOUNDARY_POSTGRES_URL: Postgres connection string
Any thoughts on why it doesn’t generate the root key ? Any help would be much appreciated. Thanks !