-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: Add logging to Get-AzKeyVaultAccessPolicies #271 #283
Conversation
✔️ Deploy Preview for arcus-scripting ready! 🔨 Explore the source changes: d873b13 🔍 Inspect the deploy log: https://app.netlify.com/sites/arcus-scripting/deploys/62345346204d400008240fe9 😎 Browse the preview: https://deploy-preview-283--arcus-scripting.netlify.app |
Great work @pimentacodit888! Thanks for your contribution 👍🏻 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for this! ❤️ Will help a long way in defect detection, as consumers will know it succeeded.
Just added some minor suggestions to include the 'Azure Key Vault' in the statements (like we do in the existing logging statements). When things get run parallel, it's good that we still know what's going on. 😄
src/Arcus.Scripting.KeyVault/Scripts/Get-AzKeyVaultAccessPolicies.ps1
Outdated
Show resolved
Hide resolved
src/Arcus.Scripting.KeyVault/Scripts/Get-AzKeyVaultAccessPolicies.ps1
Outdated
Show resolved
Hide resolved
…ies.ps1 Co-authored-by: Stijn Moreels <[email protected]>
…ies.ps1 Co-authored-by: Stijn Moreels <[email protected]>
Write-Host when all the policies are successfully retrieving from key vault and also added details in verbose for each policy.
The following fields are printed in verbose logging: Tenant Id; Object Id; Keys; Secrets; Certificates; Storage
Closes #271
Note: The fields Keys, Secrets, Certificates and Storage only display information about the access permissions of the policy, not the sensitive data.
E.g. keys : {Get, List, Set, Delete}