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

Group Policy for a PSRepository Allow List/Registered List #1696

Open
SydneyhSmith opened this issue Sep 9, 2024 · 2 comments
Open

Group Policy for a PSRepository Allow List/Registered List #1696

SydneyhSmith opened this issue Sep 9, 2024 · 2 comments

Comments

@SydneyhSmith
Copy link
Collaborator

Summary of the new feature / enhancement

The group policy will register repositories as the only repositories allowed to be installed from if the policy is enabled.
If the policy is enabled no other repositories will be allowed.

The policy will take in a list of repositories, at minimum a name;uri pair or a full hashtable (or json may be preferred) of repository information.

The policy will initially be Windows only but we will explore enabling on non-Windows via Intune policy and file system.

The policy will be checked at each call to a repository, we will assume same privileges for all operations.

There will also be a function/api that will expose if the policy is enabled and what repository Uris are available so that other tools which call PSResourceGet (such as WinGet) can integrate to this functionality.

If an exact repo is specified that is not allowed it will be a terminating error. If no repo is specified all allowed repos will be seared and it will be a non-terminating error.

Proposed technical implementation details (optional)

image

@SydneyhSmith
Copy link
Collaborator Author

SydneyhSmith commented Sep 19, 2024

We have decided to require json rather than a name value pair

@StartAutomating
Copy link

@SydneyhSmith This seems like it would be appreciated by the many organizations that still love group policy!

Ideally, this should be easy to get/set with PowerShell as well (for those people who dislike the group policy editor, or anything outside of the command line).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants