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

v2.2.0 #179

Merged
merged 35 commits into from
Mar 4, 2024
Merged

v2.2.0 #179

merged 35 commits into from
Mar 4, 2024

Conversation

almenscorner
Copy link
Owner

@almenscorner almenscorner commented Feb 29, 2024

New Features

  • A new argument for retrieving audit data and creating commits based on the user UPN and action has been added. By just including --audit when running a backup, IntuneCD will check the Intune audit log for who made the change, set the UPN as the git user and commit the change in that users name. Additionally, if you want to get audit data further back than the default 24h, an env key can be set to the number of days you'd like to grab, AUDIT_DAYS_BACK.
    Payloads that supports audit checks are:

    • Apple Push Notification
    • App Configuration
    • Apple Enrolment Profiles
    • Autopilot profiles
    • Applications
    • App Protection
    • Filters
    • Compliance policies
    • Settings Catalog
    • Custom Attributes
    • Device Categories
    • Device Management Settings
    • Enrolment Configurations
    • Custom ADMX template profiles
    • Managed Google Play
    • Management Intents
    • Partner Device Management
    • Configuration Profiles
    • Notification templates
    • Powershell Scripts
    • Proactive Remediation
    • Remote Assistance Partner
    • Roles
    • Scope Tags
    • Shell Scripts
    • VPP tokens
    • Windows Driver Updates
    • Windows Feature Updates
    • Windows Quality Updates
  • Example commit message:

icd_audit
  • Scope Tags is now backed up with the name instead of ID and compared using the name when updating minimising the risk of conflicts between tenants.

  • Backup, update and remove custom compliance scripts for Linux and Windows

  • Backup, update and remove compliance polices for Linux

Fixes

  • Updates of Conditional Access and Roles failed in some cases due to keys that should be removed before performing an update.
  • Creating Scope Tags failed due to incorrect response code configured.

Other updates

  • Updated unit tests for better coverage.

Notes

Be aware that this update will cause commits in your repo as the scope tags on payloads will change from the ID to the name instead.

If you are planning to use --audit and do not want that the last user from the audit log is committing changed to documentation and other files not included in the audit run, make sure to configure your git user and email after IntuneCD has run the backup. Also remove --global from the git config to make sure it's set locally for the repo.

closes #178
closes #177
closes #180

@almenscorner almenscorner self-assigned this Feb 29, 2024
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

Attention: Patch coverage is 99.72678% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 97.55%. Comparing base (b8b1341) to head (fce0209).
Report is 6 commits behind head on main.

Files Patch % Lines
src/IntuneCD/intunecdlib/graph_request.py 92.59% 2 Missing ⚠️
...ntuneCD/update/Intune/update_compliancePolicies.py 99.40% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #179      +/-   ##
==========================================
+ Coverage   96.91%   97.55%   +0.64%     
==========================================
  Files          96      104       +8     
  Lines        4706     5737    +1031     
==========================================
+ Hits         4561     5597    +1036     
+ Misses        145      140       -5     
Flag Coverage Δ
unittests 97.55% <99.72%> (+0.64%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@almenscorner almenscorner merged commit 19a6954 into main Mar 4, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant