prowler icon indicating copy to clipboard operation
prowler copied to clipboard

feat(m365powershell): add `pwsh` authentication via app

Open HugoPBrito opened this issue 6 months ago • 9 comments

Context

Microsoft is blocking user sign-ins without MFA, breaking our authentication flow.

Description

This PR implements a solution to authenticate PowerShell via APP credentials.

Checklist

  • Are there new checks included in this PR? Yes / No
    • If so, do we need to update permissions for the provider? Please review this carefully.
  • [ ] Review if the code is being covered by tests.
  • [ ] Review if code is being documented following this specification https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings
  • [ ] Review if backport is needed.
  • [ ] Review if is needed to change the Readme.md
  • [ ] Ensure new entries are added to CHANGELOG.md, if applicable.

API

  • [ ] Verify if API specs need to be regenerated.
  • [ ] Check if version updates are required (e.g., specs, Poetry, etc.).
  • [ ] Ensure new entries are added to CHANGELOG.md, if applicable.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

HugoPBrito avatar Jun 10 '25 17:06 HugoPBrito

Codecov Report

:x: Patch coverage is 77.47748% with 25 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 88.00%. Comparing base (bcc96ab) to head (67f88db). :warning: Report is 441 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7992      +/-   ##
==========================================
+ Coverage   80.97%   88.00%   +7.03%     
==========================================
  Files         184      271      +87     
  Lines        7353    18083   +10730     
==========================================
+ Hits         5954    15914    +9960     
- Misses       1399     2169     +770     
Flag Coverage Δ
api 94.45% <75.00%> (?)
prowler 79.82% <77.66%> (-1.15%) :arrow_down:

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

Components Coverage Δ
prowler 79.82% <77.66%> (-1.15%) :arrow_down:
api 94.45% <94.73%> (∅)
:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Jun 11 '25 11:06 codecov[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 12 '25 13:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 12 '25 14:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 12 '25 14:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 13 '25 11:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 13 '25 11:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 13 '25 11:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 13 '25 12:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 14 '25 16:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 18 '25 13:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 20 '25 08:06 github-actions[bot]

⚠️ Changes detected in the following folders without a corresponding update to the CHANGELOG.md:

  • api
  • prowler

Please add an entry to the corresponding CHANGELOG.md file to maintain a clear history of changes.

⚠️ Changes detected in the following folders without a corresponding update to the CHANGELOG.md:

  • api

Please add an entry to the corresponding CHANGELOG.md file to maintain a clear history of changes.

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉

github-actions[bot] avatar Jun 20 '25 08:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 20 '25 14:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 20 '25 14:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 20 '25 14:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 20 '25 14:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 20 '25 14:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 23 '25 09:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 26 '25 09:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 26 '25 14:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 27 '25 12:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 30 '25 10:06 github-actions[bot]

You can check the documentation for this PR here -> Prowler Documentation

github-actions[bot] avatar Jun 30 '25 10:06 github-actions[bot]