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

(maint) - Add disclaimer for script block logging #295

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

jordanbreen28
Copy link

Summary

This PR adds a warning to each generated modules readme about the use of sensitive data with script block logging enabled. As per microsoft's own recommendation, protected event logging should also be enabled to encyrpt this data.

Additional Context

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows?view=powershell-7.4#protected-event-logging:~:text=It%27s%20recommended%20to%20enable%20Protected%20Event%20Logging%2C%20as%20described%20below%2C%20when%20using%20Script%20Block%20Logging%20for%20anything%20other%20than%20diagnostics%20purposes.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows?view=powershell-7.4#protected-event-logging

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

This commit adds a warning to each generated modules readme about the
use of sensitive data with script block logging enabled.
As per microsoft's own recommendation, protected event logging should
also be enabled to encyrpt this data.
@jordanbreen28 jordanbreen28 added the maintenance non-user-visible changes improving the infrastructure label Aug 15, 2024
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 19.70%. Comparing base (d424f92) to head (6b0acab).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #295   +/-   ##
=======================================
  Coverage   19.70%   19.70%           
=======================================
  Files          47       47           
  Lines         868      868           
=======================================
  Hits          171      171           
  Misses        697      697           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jordanbreen28 jordanbreen28 marked this pull request as ready for review August 15, 2024 09:36
@jordanbreen28 jordanbreen28 requested a review from a team as a code owner August 15, 2024 09:36
@david22swan david22swan merged commit 3adb824 into main Aug 15, 2024
12 checks passed
@david22swan david22swan deleted the maint-add_readme_disclaimer branch August 15, 2024 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance non-user-visible changes improving the infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants