Skip to content

Commit

Permalink
Remove secret value saving
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn committed May 21, 2024
1 parent c4f3c0e commit d80ab51
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Server/src/Core/SecretService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ public SecretService(IEnumerable<ISharedSecretGenerator> sharedSecretGenerators,

secret.Value = secretValue.ToSha256();

if (request.SaveValue.GetValueOrDefault() && _encryptionService is not NoEncryptionProvider)
{
secret.EncryptedValue =
await _encryptionService.EncryptAsync(secretValue, CancellationToken.None);
}

return (secret, secretValue);
}

Expand Down

0 comments on commit d80ab51

Please sign in to comment.