fix: the vault's init_bare should try to load the provisioned secret_provider from the config file without also interpolating any of the rest of the configuration file. It should only fail if the user has not yet created a configuration file; i.e. done a first-time run.

This commit is contained in:
2026-06-04 12:02:43 -06:00
parent 40fdf3aaa7
commit 8f7a57f8e6
3 changed files with 110 additions and 10 deletions
+1 -1
View File
@@ -685,7 +685,7 @@ pub async fn create_config_file(config_path: &Path) -> Result<()> {
let provider_choice = prompt_provider_choice()?;
let mut vault = match &provider_choice {
None => Vault::init_bare(),
None => Vault::default_local(),
Some(provider) => Vault {
provider: provider.clone(),
},