Closed szahri closed 3 years ago
1st off, thanks for submitting an issue and using the extension!
A few quick question so I can look into it:
What version of PowerShell are you using ($psversiontable)? What version of SecretManagement are you using? Or are you loading this module directly into your PowerShell session?
I have a branch I have been sitting on for some GA changes, so will include this fix if I can.
Hi Josh, Here are the details :
$PSVersionTable
Name Value
---- -----
PSVersion 5.1.19041.906
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.906
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
The version of SecretManagement and SecretStore are 1.0.0 and 1.0.2 respectively.
Thanks! J
I am trying to re-create this and understand the situation a little bit more.
This is what I initially had:
This is what I think you setup, correct?
I can retrieve secrets from both locations.
The design of the extension might not be optimal for most Hashicorp Vault use right now. The current output type I am returning is a PSCredential, but maybe a better output type would be a hashtable. That way you can use the custom key/value under the path.
@szahri Please checkout the new Preview Branch . This now includes the default output of a Hashtable, which might help with part of the problem.
Example usage below:
@szahri Were you able to test the new version?
Hi Joshua
Just testet the preview relese and this is working perfectly! Both ways, reading and writing secrets btw. Thanks for all the work on this module, consuming HC Vault is extremely comfortable on windows powershell systems with this.
Cheers, Rob
This issue should now be resolved. Please open another issue if you have any further problems with this functionality.
Hi there, I'm just having a play with this module and trying to figure out how to get a value from a key within a secret path.
Example : I have a
key:value
calledtestuser:testpass1234
under thesecret/mysecrets/secret1
path.While I can do this successfully:
I'm unable to access the value of
testuser
underneath this path:get-secret -name mysecrets/secret1/test -Vault secret
It just bombs out with the following error :
In comparison, using native vault command I could definitely extract the key:value pair like so:
How do I go about extracting the same info using your module? Or am I using it the wrong way? I'm using kv1 engine. Nice work btw :)
Thanks J