Closed marshallwp closed 2 months ago
Okay a bit embarrassed here, I'm not sure how I managed to confirm this three times before posting only to immediately find it was an unrelated issue, but I did. Perhaps I was simply too trusting of code comments.
In any case, this issue is not.
Prerequisites
Steps to reproduce
Starting in PowerShell 7.3, the command
ConvertFrom-Json -AsHashtable
was changed to return an OrderedHashtable instead of a regular Hashtable. While this change was considered to be non-breaking at the time, the new output is incompatible with theGet-Secret
command, which it rejects as a PSCustomObject. Any vault extensions that expect the behavior present in previous versions will break in 7.3+.Notably,
Get-SecretInfo
handles them just fine, so this would seem to be a bug in the implementation ofGet-Secret
. I believe the most straightforward solution would be to let Get-Secret return OrderedHashtables. Though implementing a cast to a regular Hashtable would also work.Expected behavior
Actual behavior
Error details
Environment data
Version
1.1.2
Visuals
No response