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

            return(new OkObjectResult(new { success = success }));
        }