PowerShell / PowerShell/DSC

Add support for `PSDscRunAsCredential` input parameter for class-based resources

Open
#961 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Enhancement
Dominant language
Rust
Stars
523
Forks
75
Avg merge
3d 16h
Merged PRs (30d)
24

Description

Summary of the new feature / enhancement

As I user I need backwards compatibility for the input parameter PSDscRunAsCredential for those class-based resources that supports it or require it. Without this existing configurations need to change have resources are used within the same configuration run, and also some resource might not be able to be used by DSCv3.

If a class-based resource implements [DscResource(RunAsCredential = 'Mandatory')] those cannot be used by the DSCv3 yet. Similar, many class-based resources uses [DscResource(RunAsCredential = 'Optional')] which cannot be used by a user either.

With the current functionality all class-based resources DSCv3 defaults to [DscResource(RunAsCredential = 'NotSupported')] even if a class-based resource implements it or not.

Proposed technical implementation details (optional)

I would like it to be possible to use input parameter PSDscRunAsCredential with class-based resources and DSCv3 switches user context as necessary on an individual resource basis.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing how DSCv3 invokes class-based resources and handles the PSDscRunAsCredential parameter; done means supporting Optional and Mandatory RunAsCredential resources while switching user context per resource as required.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, rust
Domain
devops, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.