Skip to content

Shouldn't xService SET the credential whenever it SETs? #766

Open
@Jaykul

Description

Problem description

I can't find a way to rotate service credentials using xService

Suggested solution

It seems to me that the logic for credentials in xService should follow the pattern in xScheduledTask: if the credential is provided, set the credential. Presumably the Set only runs when Test fails, so it wouldn't result in restarting the service over and over or anything like that...

Alternatively, the resource needs to cache a hash for the username + password and update them if the hash changes. People can't change the username of their credential every time they want to change the password!

Operating system the target node is running

Windows Server 2019

PowerShell version and build the target node is running

PS 5.1

xPSDesiredStateConfiguration version

Name                         Version
----                         -------
xPSDesiredStateConfiguration 9.1.0
xPSDesiredStateConfiguration 5.1.0.0

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions