public override async Task Execute() { using (var vaultShard = Prompt.GetPasswordAsSecureString("Vault Key:", ConsoleColor.Yellow)) { await vaultServiceClient.Unseal(vaultShard); } }
public async Task <IActionResult> VaultUnseal([FromBody] ShardDto key) { var success = await vaultServiceClient.Unseal(key.Shard.ToSecureString()); return(new OkObjectResult(new { success = success })); }