Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add audit logs #8

Merged
merged 4 commits into from
Jul 8, 2018
Merged

Add audit logs #8

merged 4 commits into from
Jul 8, 2018

Conversation

shaikatz
Copy link
Contributor

@shaikatz shaikatz commented Jul 8, 2018

  • Add logs
  • remove debugging code

Closes #1

@shaikatz shaikatz requested a review from omerlh July 8, 2018 10:41
await mKeyVaultClient.GetKeyAsync(keyId);
}
catch (KeyVaultErrorException e) when (e.Response.StatusCode == HttpStatusCode.NotFound)
{
await mKeyVaultClient.CreateKeyAsync($"https://{mKeyVaultName}.vault.azure.net", hash, mKeyType, 2048);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe worth adding log here?

}
catch (KeyVaultErrorException e)
{
mLogger.Warning(e, "Decryption request failed, SourceIP: {sourceIp}, ServiceAccount: {sa}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add also log on success?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shaikatz
Copy link
Contributor Author

shaikatz commented Jul 8, 2018

@omerlh added.

}
catch (KeyVaultErrorException e)
{
mLogger.Warning(e, "Decryption request failed, SourceIP: {sourceIp}, ServiceAccount: {sa}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shaikatz shaikatz merged commit cb804ac into master Jul 8, 2018
@shaikatz shaikatz deleted the add-audit-logs branch July 8, 2018 13:46
omerlh added a commit that referenced this pull request Jul 9, 2018
This reverts commit cb804ac, reversing
changes made to 825fcd2.
omerlh added a commit that referenced this pull request Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants