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

Search-TssSecret error #399

Open
jmackxiii opened this issue Mar 13, 2024 · 2 comments
Open

Search-TssSecret error #399

jmackxiii opened this issue Mar 13, 2024 · 2 comments
Assignees
Labels
bug Something isn't working more detail required More information or response to current questions is needed not reproducible Unable to reproduce the noted issue

Comments

@jmackxiii
Copy link

Verified issue does not already exist?

Yes

What error did you receive

Search-TssSecret -TssSession $session -SecretName 'synapsevd'

Cannot convert value "@{id=111452; name=AH-Atriuishealth.net\synapsevd; secretTemplateId=6191; secretTemplateName=AH-AD_Service_Accounts; folderId=5290; folderPath=\AH\IT\Management Accounts\Service Accounts;
siteId=46; active=True; checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Success; lastPasswordChangeAttempt=0001-01-01T00:00:00; responseCodes=; lastAccessed=;
extendedFields=; checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=False; hidePassword=False;
createDate=2022-08-08T17:46:23; daysUntilExpiration=106; hasLauncher=True; checkOutUserId=-1; checkOutUserName=}" to type "Thycotic.PowerShell.Secrets.Summary". Error: "Cannot convert the "@{id=111452;
name=AH-Atriuishealth.net\synapsevd; secretTemplateId=6191; secretTemplateName=AH-AD_Service_Accounts; folderId=5290; folderPath=\AH\IT\Management Accounts\Service Accounts; siteId=46; active=True;
checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Success; lastPasswordChangeAttempt=0001-01-01T00:00:00; responseCodes=; lastAccessed=; extendedFields=;
checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=False; hidePassword=False; createDate=2022-08-08T17:46:23;
daysUntilExpiration=106; hasLauncher=True; checkOutUserId=-1; checkOutUserName=}" value of type "System.Management.Automation.PSCustomObject" to type "Thycotic.PowerShell.Secrets.Summary"."
At C:\Program Files\WindowsPowerShell\Modules\Thycotic.SecretServer\0.61.0\functions\secrets\Search-TssSecret.ps1:274 char:17

  • ... [Thycotic.PowerShell.Secrets.Summary[]]$restResponse.reco ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvalidCastConstructorException

Please run the command using -Verbose

VERBOSE: Command invocation: Search-TssSecret -TssSession:TssSessionObject -SearchText:synapsevd -Verbose:True
VERBOSE: Filters: filter.searchText=synapsevd
VERBOSE: Performing the operation GET https://oct.secretservercloud.com/api/v1/secrets?sortBy[0].direction=asc&sortBy[0].name=Name&take=2147483647&filter.includeRestricted=true&filter.searchText=synapsevd
Cannot convert value "@{id=111452; name=AH-Atriuishealth.net\synapsevd; secretTemplateId=6191; secretTemplateName=AH-AD_Service_Accounts; folderId=5290; folderPath=\AH\IT\Management Accounts\Service Accounts;
siteId=46; active=True; checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Success; lastPasswordChangeAttempt=0001-01-01T00:00:00; responseCodes=; lastAccessed=;
extendedFields=; checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=False; hidePassword=False;
createDate=2022-08-08T17:46:23; daysUntilExpiration=105; hasLauncher=True; checkOutUserId=-1; checkOutUserName=}" to type "Thycotic.PowerShell.Secrets.Summary". Error: "Cannot convert the "@{id=111452;
name=AH-Atriuishealth.net\synapsevd; secretTemplateId=6191; secretTemplateName=AH-AD_Service_Accounts; folderId=5290; folderPath=\AH\IT\Management Accounts\Service Accounts; siteId=46; active=True;
checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Success; lastPasswordChangeAttempt=0001-01-01T00:00:00; responseCodes=; lastAccessed=; extendedFields=;
checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=False; hidePassword=False; createDate=2022-08-08T17:46:23;
daysUntilExpiration=105; hasLauncher=True; checkOutUserId=-1; checkOutUserName=}" value of type "System.Management.Automation.PSCustomObject" to type "Thycotic.PowerShell.Secrets.Summary"."
At C:\Program Files\WindowsPowerShell\Modules\Thycotic.SecretServer\0.61.0\functions\secrets\Search-TssSecret.ps1:274 char:17

  • ... [Thycotic.PowerShell.Secrets.Summary[]]$restResponse.reco ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvalidCastConstructorException

Provide a test case or steps to reproduce

Trying to run a Search on a secret that we have access to and is a valid secret.

Expected behavior

To return details on the secret searched for.

What Edition of Secret Server?

Cloud Subscription

What version of Secret Server

Secret Server Cloud

What PowerShell host was used when producing this error

Windows PowerShell ISE (powershell_ise)

PowerShell Host Version

Name Value


PSVersion 5.1.14393.6343
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.6343
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

@jmackxiii jmackxiii added bug Something isn't working triage needed new issues that are still in state of triage labels Mar 13, 2024
@jagger
Copy link
Contributor

jagger commented Mar 22, 2024

Cannot validate error using module 0.61.8 and SSC US

@jagger jagger self-assigned this Mar 22, 2024
@jagger jagger added not reproducible Unable to reproduce the noted issue more detail required More information or response to current questions is needed and removed triage needed new issues that are still in state of triage labels Mar 22, 2024
@jmackxiii
Copy link
Author

Sadly this is happening with our version of the module. We are also stuck with using this version for the time being too as it is tied to our PS version. Happy to provide what I can on this end if you think any additional information will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more detail required More information or response to current questions is needed not reproducible Unable to reproduce the noted issue
Projects
None yet
Development

No branches or pull requests

2 participants