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

Not all secrets showing with SecretServer #33

Open
moseala55 opened this issue Feb 2, 2022 · 8 comments
Open

Not all secrets showing with SecretServer #33

moseala55 opened this issue Feb 2, 2022 · 8 comments

Comments

@moseala55
Copy link

Connected and authenticated to on prem SecretServer just fine. Not all secrets that I know and have verified I have access too, including secrets that I have created are showing. "Personal Folder" does not show in the list as well. When refreshing the dynamic folder, I do get an information error in the bottom left saying "Some tokens couldn't be resolved".

@lemonmojo
Copy link
Member

Please post a screenshot of the full error message.
Also, there's a limit on how many entries should be returned by the API. How many are you expecting approximately?

@moseala55
Copy link
Author

2022-02-03_8-20-24
Screenshot of the log uploaded. We have 5,817 items in our SecretServer. If that is to many entries to be returned, how would I limit the script to pull from specific folders?

@st9rm1337
Copy link
Collaborator

Please try adjusting the value on line 103 of the script as follows:
"paging.take" = 1000;

you can also pick a different number, which suits your needs.

@moseala55
Copy link
Author

moseala55 commented Feb 11, 2022

Increasing the value seems to show more if not all the credentials and nested folders (as far as I can tell). However I still get notified that some tokens couldn't be resolved. I have it set at 20000, but increased to 20000 by adding 1000 to the value. While I can see more credentials, it does cause the application to lock up upon start up as it reloads the folder. Is there anyway to limit the scrip to pull from only a specific folder?

@lemonmojo
Copy link
Member

@moseala55 Yes, you can filter the secrets by certain criteria, including the folder ID.
To do so, you'll want to modify the request body that is sent to the secret server from line 102 to 104 of the dynamic folder script.

By default, the body looks like this:

$secretsRequestBody = @{
  "paging.take" = 1000;
}

To include only secrets from a specific folder ID, you would adjust those lines like so:

$secretsRequestBody = @{
  "paging.take" = 1000;
  "filter.folderId" = 123;
}

For more information on the supported filter criteria, please see Thycotic's Rest API documentation.

@lemonmojo
Copy link
Member

@moseala55 Did you get the chance to test the suggestion in my last reply?

@jpitpol
Copy link

jpitpol commented Dec 1, 2022

Hello, We have the same issue. We use the secret server and our secrets are 5500. I changed the number on the script to 20000 and i still cannot see everything. Is there a different explanation?

@jpitpol
Copy link

jpitpol commented Dec 5, 2022

Also, the "filter.folderId" = 123; does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants