Skip to content

feat(DVLS SecretManagement Provider): Add initial module scripts#20

Open
Adam Listek (alistek) wants to merge 1 commit intomainfrom
feature/dvls-secretmanagement-provider
Open

feat(DVLS SecretManagement Provider): Add initial module scripts#20
Adam Listek (alistek) wants to merge 1 commit intomainfrom
feature/dvls-secretmanagement-provider

Conversation

@alistek
Copy link
Copy Markdown
Contributor

Adds a read-only Microsoft.PowerShell.SecretManagement provider for Devolutions Server, focused on PowerShell Universal credential retrieval.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good. A small improvement

Comment on lines +421 to +428
Function Get-DVLSCredentialEntry {
[CmdletBinding()]
Param(
[Parameter(Mandatory)]
[Object]$Session,
[Parameter(Mandatory)]
[String]$VaultId
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should accepts a parameter name to filter more quicky the entries (the api documentation indicates it exists)

Comment on lines +497 to +499
$match = Get-DVLSCredentialEntry -Session $Session -VaultId $vaultId |
Where-Object { (Get-DVLSObjectProperty -InputObject $_ -Name @('name', 'Name')) -EQ $Name } |
Select-Object -First 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use the name parameter mentionned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants