Skip to content

Thycotic secret ids arg#2148

Closed
sk-keeper wants to merge 4 commits into
masterfrom
thycotic-secret-ids-arg
Closed

Thycotic secret ids arg#2148
sk-keeper wants to merge 4 commits into
masterfrom
thycotic-secret-ids-arg

Conversation

@sk-keeper

Copy link
Copy Markdown
Collaborator

No description provided.

Add secret-ids arg to import command, to use for debugging Thycotic secret IDs
Pass secret-ids arg from import command to thycotic import so it can be handled in the Thycotic import
If user sets secret-ids, the import will:
- Check if any of those IDs have come up in the lookup and would have been imported.
- Import only the secret-ids set

This is useful for debugging, because the lookup API may not return all Thycotic secrets - eg if there a security policy on them, but they may still be fetched.

Usage:
String (comma separated IDs)
`import --format thycotic server_name --secret-ids "123, 124,125"`
Python List (strings or integers)
`secret_ids=[123, 124, 125]`
Fix conditional logic so import continues if no secret ids are specified
@sk-keeper sk-keeper closed this Jun 13, 2026
@sk-keeper sk-keeper deleted the thycotic-secret-ids-arg branch June 13, 2026 03:43
stringified_debug_ids = [str(x) for x in debug_ids]
found_secrets = [x for x in stringified_debug_ids if x in stringified_secrets_ids]
logging.info(f'From the specified {len(debug_ids)} secret IDs, {len(found_secrets)} were found in the secret server lookup.')
logging.info(', '.join(found_secrets))
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

Successfully merging this pull request may close these issues.

3 participants