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

Adding Logging Enabled Check to Azure Key Vault #644

Merged
merged 2 commits into from
Mar 21, 2022

Conversation

jnikles1
Copy link
Contributor

@jnikles1 jnikles1 commented Mar 3, 2022

Signed-off-by: Justin Nikles justin.nikles@sap.com

Description

Adds a check specifically for the AuditEvent log setting, which is set to true when logging is enabled https://docs.microsoft.com/en-us/azure/key-vault/general/howto-logging?tabs=azure-cli#enable-logging

Issues Resolved

List any existing issues this PR resolves, or any Discourse or StackOverflow discussion that's relevant

Check List

@jnikles1 jnikles1 requested a review from a team as a code owner March 3, 2022 22:00
@jnikles1
Copy link
Contributor Author

jnikles1 commented Mar 4, 2022

the diagnostic_settings_logs method doesn't sufficiently report whether logging is enabled or not. If any setting in the log block that is returned is not enabled (whether it signals that logging is enabled or not) the array reports a false flag. For this reason, the additional method was added to specifically check the field which signals that logging is enabled.

Signed-off-by: Justin Nikles <justin.nikles@sap.com>
@jnikles1 jnikles1 force-pushed the azure-key-vault-logging branch from 1b6ea47 to 8e0e27b Compare March 11, 2022 19:20
@jnikles1
Copy link
Contributor Author

hi @sathish-progress - thanks for the suggestion. It's now implemented as suggested

Copy link
Contributor

@SathishAchilles SathishAchilles left a comment

Choose a reason for hiding this comment

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

LGTM

@sathish-progress sathish-progress merged commit 3f3884b into inspec:main Mar 21, 2022
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.

3 participants