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

Add script to audit account logins for past 90 days #18

Open
wants to merge 112 commits into
base: main
Choose a base branch
from

Conversation

hutchdoescoding
Copy link

This script outputs a CSV that displays the last login time for a StrongDM account for the past 90 days to identify inactive users/service accounts.

wrenhunter and others added 30 commits May 18, 2021 09:05
First draft
Update for public consumption
Changing language from garden > strongDM
Removed Auth0 link
Not needed here
Added notes about admin token, and change required if your logging uses JSON
…th-group-in-matchers

Feat/only create users with group in matchers
turner-strongdm and others added 28 commits January 5, 2022 11:09
This script serves as an example exporter that can monitor the
health of resources ("Infrastructure") and nodes ("Gateways/Relays").

The script uses the following workflow:

- Make an API call to strongDM's API to retrive information about resources and
nodes. The frequency of the API call is configurable by updating the "update_interval"
variable in "main()"

- Collect data about any resource or node that is tagged with <alert_tag> in strongDM.
This tag is configurable by updating the "alert_tag" variable in "main()"

- Export metrics to a prometheus endpoint as a "Gauge" (0 for healthy, 1 for unhealthy)
- Renamed API key/secret environment variables
- Removed validation check for states being "started" or "stopped"
- Added the "health" and "state" prometheus labels for resources and
nodes respectively to make it easy to see the current health in prometheus
…le-resources

Added a permission for running role_resources.py
Co-authored-by: gaabrieljesuss <gaabrieljesuss@users.noreply.github.com>
Co-authored-by: gaabrieljesuss <gaabrieljesuss@users.noreply.github.com>
Co-authored-by: gaabrieljesuss <gaabrieljesuss@users.noreply.github.com>
Co-authored-by: gaabrieljesuss <gaabrieljesuss@users.noreply.github.com>
Co-authored-by: gaabrieljesuss <gaabrieljesuss@users.noreply.github.com>
At least this is a good audit trail for audit changes.
Co-authored-by: vassalo <vassalo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet