Skip to content

Update changelog and enhance security features in command handling - #4

Merged
gaelcolas merged 2 commits into
masterfrom
fix/constrained
Sep 20, 2026
Merged

gaelcolas merged 2 commits into
masterfrom
fix/constrained

Conversation

@gaelcolas

@gaelcolas gaelcolas commented Sep 17, 2026

Copy link
Copy Markdown
Member
  • Removed dynamic PowerShell source generation from Invoke-NativeCommand.
  • Updated Add-SudoPreferenceRule to require filters as script blocks or wildcards.
  • Improved parameter handling in Invoke-NativeCommand to pass parameters separately.
  • Added unit tests for Invoke-NativeCommand and SudoPreference rules.

This change is Reviewable

- Removed dynamic PowerShell source generation from `Invoke-NativeCommand`.
- Updated `Add-SudoPreferenceRule` to require filters as script blocks or wildcards.
- Improved parameter handling in `Invoke-NativeCommand` to pass parameters separately.
- Added unit tests for `Invoke-NativeCommand` and `SudoPreference` rules.
@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 9392378f-022b-42d6-bc82-bdcfeac6fc9f


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

- Updated module description to reflect its purpose of building PowerShell wrappers around native commands.
- Improved the `Add-SudoPreferenceRule` function with detailed comments and examples.
- Enhanced `Get-PropertyHashFromListOutput` function with additional parameters and error handling.
- Added comprehensive help documentation for all public functions in the module.
- Created a new Wiki page for PSNativeCmdDevKit, outlining command references and security models.
- Implemented unit tests for `Get-PropertyHashFromListOutput` and `Invoke-NativeCommand` to ensure functionality.
- Refined sudo preference rule management with better handling of script blocks and user specifications.
- Updated existing tests to improve clarity and coverage of edge cases.
@gaelcolas
gaelcolas merged commit 2bafa00 into master Sep 20, 2026
9 checks passed
@gaelcolas
gaelcolas deleted the fix/constrained branch September 20, 2026 08:43
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.

1 participant