Repository navigation
fix: Start-TssSecretChangePassword defaults -Type to 'Random' (#444) - #471
Merged
Merged
Conversation
Removes [Parameter(Mandatory)] from -Type and sets the default value to 'Random'. The most common usage (an immediate random rotation) is now: Start-TssSecretChangePassword -TssSession $s -Id 46 instead of the previously required: Start-TssSecretChangePassword -TssSession $s -Id 46 -Type Random Behavior matrix is unchanged from what the issue specified: -Type omitted, -NextPassword omitted -> Random rotation (new default) -Type Random, -NextPassword omitted -> Random rotation (explicit) -Type Manual, -NextPassword provided -> Manual rotation -Type Manual, -NextPassword omitted -> Error (unchanged) -Type Random, -NextPassword provided -> Error (unchanged) Adds a second .EXAMPLE showing the Manual case so callers can find the non-default path easily. Verified against Secret Server 12.x lab: a no -Type call against a freshly-created AD secret successfully started a random rotation (PasswordType: 0, NextPassword: null in the request body). Closes #444. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
jagger
force-pushed
the
jagger/fix-444-changepassword-default-random
branch
from
June 30, 2026 21:04
de0555a to
d982886
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes
[Parameter(Mandatory)]from-Typeand sets its default to'Random'. The most common call - an immediate random password rotation - is now:instead of the previously required
-Type Randomboilerplate.Adds a second
.EXAMPLEshowing the Manual-with-supplied-password path so the non-default usage is still easy to find.Closes #444.
Behavior matrix
Unchanged from what the issue requested:
-Type-NextPasswordRandomManualManual-NextPassword required(unchanged)Random-NextPassword cannot be used with Random(unchanged)Lab verification
Against Secret Server 12.x:
Both paths behave as specified.
Release
Targets v0.62.1 (on the 0.62.1 milestone). UX change with no API surface removal - callers who were explicitly passing
-Type Randomcontinue to work identically.🤖 Generated with Claude Code