-
Notifications
You must be signed in to change notification settings - Fork 30
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
Implement RunAsGroup Resource #54
Comments
Can we reference a secret by vault/name? Then let secretmanagement sort out the underlying store. |
This should allow for configuration that needs some aspects running elevated vs other parts that do not. Alternatively if the user is root/elevated, it should also allow running as non-elevated. |
We've had a few different scenarios to look at on the WinGet configuration side of the world. We want to be able to run individual resources either in the user context or elevated as necessary for package installation and other use cases. This logically can be thought of as having a need for both an "elevated" execution process and a "non-elevated" execution process to handle a single configuration file. For example, if I want to install Visual Studio and then configure workloads or extensions, the execution must be elevated. If that same configuration needs to install a package in the user scope running the resource elevated could cause undesired results.
|
For WinGet scenario, we can defer This means this resource will have a single boolean property called |
Is it possible to make a decision on the name and property for this so that we can be aligned? There is a desire for us to also have this for v2 (PowerShell only) configurations that we already support, and it would be great to have a single resource definition and documentation that worked across both. I would prefer that we use an enumeration as it enables better self-documentation. The opposite of
Additional values could be supported in the future, such as My expectation is that the result of be invoked in:
In this way, the caller is responsible for invoking from the highest required context and the group is responsible for downgrading as necessary (and never upgrading). |
@mgreenegit and I discussed this, we propose a single property called |
Thanks, looks great. What would be the "module" / resource name? The title of the issue seems to have the resource name as |
This resource will be implemented as part of |
Sorry, the better question is "How should it be referenced?" Is it to be called |
Ah, yes, it'll be called that. In DSCv3 terminology, that's the resource type name. |
Since we have metadata now to indicate if the whole config requires elevated or not, we can defer this until actual scenario requires it |
Summary of the new feature / enhancement
This GroupResource runs every resource within its config fragment under specified credentials. Need to determine if username/password is the right model and how it should be passed securely within the Config (via a variable?)
Proposed technical implementation details (optional)
No response
The text was updated successfully, but these errors were encountered: