Skip to content

A hashicorp vault tool that reports all the tokens with their policies and details to your slack

License

Notifications You must be signed in to change notification settings

kaisbaccour/hashicorp-vault-token-pdf-slack-reporter

Repository files navigation

Hashicorp vault token reporter:

This project is intended to automatically generate an overview over the active tokens living on your hashicorp vault. The generated overview has a pdf format and is sent to a slack channel that you can configure through environment variables.

Prerequisites:

This application is supposed to run as a container in a pod on kubernetes. The pod should have a k8s service account that is mounted to it. That service account should be able to connect to hashicorp vault and authenticate with a vault kubernetes backend module.

Environment variables:

The environment variable you would need for this to run are:

  • VAULT_ADDR #Hashicorp-vault-server address
  • $KUBERNETES_AUTH_ROLE #The vault's kubernetes backend auth to allow the vault-reporter pod to connect to vault
  • $KUBERNETES_AUTH_MOUNTPOINT #The vault's kubernetes backend mountpoint
  • REPORTER_SLACK_BEARER #Slack Bearer
  • SLACK_CHANNEL #slack channel to submit the pdf to
  • SLACK_MONITORING_CHANNEL #Alerts when there is one at least a root token

Style

token posessing vault policies containing "developer", "admin" or root will be shown with a specific style/font

Alerting on slack channel whenever one or more root tokens are found.

monitoring.png

PDF format report sent to slack that the audit/security team could download.

report-with-root-tokens.png

Slack notification when a report is ready.

report-without-root-tokens.png

About

A hashicorp vault tool that reports all the tokens with their policies and details to your slack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published