Support mixed security context configurations
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 523
- Forks
- 75
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 24
Description
Summary of the new feature / enhancement
A configuration may require parts to be elevated and also parts to be restricted. This is already supported for the whole doc via metadata, but this needs to be extended to specific resources.
Proposed technical implementation details (optional)
Initially, if a configuration requires mixed, we should require that the user be elevated and during execution, dsc creates a restricted process to run the resources that specify restricted.
Later, if a configuration requires mixed, dsc can detect this and prompt at the start (UAC on Windows and sudo on non-Windows) to spawn a child dsc process that is elevated that actually executes the configuration and handles restricted the same as the initial implementation above.
One potential technical challenge is reading/writing standard io across elevated and restricted processes.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files or tests; start by tracing how dsc executes configurations and resources, including the existing whole-document security metadata. Define how mixed configurations identify restricted resources and how elevated and restricted processes exchange standard I/O. Done means both elevated and restricted resource execution are supported without changing the intended security context.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100