Open Windos opened 3 years ago
Thanks for the feedback. Are there any usage scenarios that you covered or feel are important this version is still missing? Besides the basics actually working. :)
I haven't looked at what sort of additional metadata is possible to feed through SecretManagement... but being able to add URLs, OTPs, notes, etc would be sweet
OTP. That's an interesting scenario.
Definitely agree on setting other fields.
Strictly speaking, if I'm using that in code I'd probably just store the OTP secret as its own secret and use GoogleAuthenticator to get the pin if needed (yes... I have some APIs I use that ask for the OTP pin 🤦♂️)
For the original issue, it looks like an error in Get-SecretInfo. The SecretsModule doesn't like duplicate keys, but 1Password has no problem having duplicate Titles. I can't reproduce the same message you got, but I added duplicate items to 1Password with different casing and got the following error from SecretsManagement. I try to filter out duplicates and return only the first item, but Contains()
of ArrayList
is case sensitive comparison so it doesn't work in this case (haha).
Get-SecretInfo: An item with the same key has already been added. Key: [B5UserUUID, Microsoft.PowerShell.SecretManagement.SecretInformation]
Ok, duh, reproduced in Get-Secret. I don't know of a good way to disambiguate duplicate 1Password items.
It's easy to get a totp from op
, but not sure how to handle that with Get-Secret. 🤔
op get totp <item>
maniacal laughing The trouble you can get into with Powershell.
Hey Chris, good work on this module! You've got a hell of a lot farther than me! I've run into two issues that I'll file separately:
I'm not able to retrieve a secret from my vault (setting it works perfectly, I can see it in the GUI)
Environment