JustinGrote / JustinGrote/SecretManagement.KeePass
Retrieve info when using field references
- Dominant language
- PowerShell
- Stars
- 123
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
First of all, thanks for this great module.
I'm just wanna ask or report that when you have an entry where the user name and password are set as field reference, the value returned is not the actual value of the reference, but the field itself.
For instance, if I have a username set as {REF:U@T:MainAccount}, when I execute the following code I get:
```
$cred = Get-Secret -Vault KeePass -Name "MainAccount"
Write-Host $cred.GetNetworkCredential().Username
```
Result:
```
{REF:U@T:MainAccount}
```
However if the value of username of MainAccount is for instance jlanza, the result should have been jlanza and not the pointer to the value.
Thanks for you help.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Get-Secret call for a KeePass entry whose username uses the shown {REF:U@T:MainAccount} syntax, then trace how field references are handled during credential retrieval. Done means GetNetworkCredential().Username returns the referenced value, such as jlanza, rather than the reference string.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- authentication, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100