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

List all account egress keys? #370

Closed
ldelelis opened this issue Mar 8, 2023 · 1 comment · Fixed by #374
Closed

List all account egress keys? #370

ldelelis opened this issue Mar 8, 2023 · 1 comment · Fixed by #374

Comments

@ldelelis
Copy link

ldelelis commented Mar 8, 2023

Part of one of our sync processes would need to pull the egress keys of all users, in order to detect differences that might occur on target hosts. So far the only way I found of doing this is looping through the output of accountList, and requesting each account's egress keys individually.

This process of course takes some time. If there's a simpler way would someone please let me know?

@speed47
Copy link
Collaborator

speed47 commented Mar 14, 2023

Hey,

We have similar auditing/reconciling processes that go through all accounts and/or groups, and the #371 PR currently under review does exactly what you need but for groups: getting all the groups data nicely dumped into a JSON through --json by simply specifying --all to groupInfo. This command is only accessible to accounts granted with the bastion auditor role.

I can do this too for the accounts, I actually started a branch for this but didn't push it yet, I'll do it now that I know you have the need :)

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 a pull request may close this issue.

2 participants