Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-TSSSecret not accessing restricted secrets properly #91

Closed
jagger opened this issue Feb 26, 2021 · 0 comments
Closed

Get-TSSSecret not accessing restricted secrets properly #91

jagger opened this issue Feb 26, 2021 · 0 comments
Assignees
Labels
bug Something isn't working secrets Endpoint tag secrets

Comments

@jagger
Copy link
Contributor

jagger commented Feb 26, 2021

`PS> Get-TssSecret -TssSession $SourceSession -id $secretID

Invoke-TssRestApi : The requested Secret requires a comment when viewed.
At C:\Program Files\WindowsPowerShell\Modules\thycotic.secretserver\0.31.2\functions\secrets\Get-Secret.ps1:139 char:37
$restResponse = Invoke-TssRestApi @invokeParams
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidOperation: (System.Object[]:Object[]) [Invoke-TssRestApi], Exception
FullyQualifiedErrorId : API_ValidateSecretAccessCommentRequired,Invoke-TssRestApi

PS> Get-TssSecret -TssSession $SourceSession -id $secretID -comment "hi"

WARNING: Issue getting secret [1463]
C:\Program Files\WindowsPowerShell\Modules\thycotic.secretserver\0.31.2\parts\ErrorHandling.ps1 : The remote server
returned an error: (400) Bad Request. | The request is invalid.
At C:\Program Files\WindowsPowerShell\Modules\thycotic.secretserver\0.31.2\functions\secrets\Get-Secret.ps1:143 char:21
. $ErrorHandling $err
~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,ErrorHandling.ps1

@jagger jagger added the bug Something isn't working label Feb 26, 2021
@wsmelton wsmelton added the secrets Endpoint tag secrets label Feb 28, 2021
@wsmelton wsmelton self-assigned this Feb 28, 2021
@wsmelton wsmelton added this to the 0.5 Release milestone Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working secrets Endpoint tag secrets
Projects
None yet
Development

No branches or pull requests

2 participants