Skip to content

A Phoenix⁠/Ash⁠ app that tracks changes to repository content in GitHub repositories and certain AWS resources (IAM, S3 and VPC), with simple-ish extensibility to other providers and resources

Notifications You must be signed in to change notification settings

Config-Guardians/hachiware

Repository files navigation

Banner

Notes

Postgres must be installed as per AshPostgres documentation Make sure to run mix ash.setup before starting the server to setup the database

Hachiware

Funcionality

This repository combines the below into a single Phoenix/Ash server:

  • A backend to store reports generated from our agent system and view them within our dashboard
  • An extensible system to map resources available on Steampipe to a monitor-able target
  • A polling system to track changes made to these resources and push them to our agent system through SSE if any are detected
  • A pass-through REST API endpoint to configure credentials on our steampipe-sidecar component
    • The pass-through allows Hachiware to intercept successful credential parsing responses from steampipe-sidecar. The provider with the authenticated credentials will then have its resources monitored for changes

The pre-built Docker image is hosted at https://hub.docker.com/repository/docker/zachareee/hachiware

Running the Server

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Set the SIDECAR_HOST, DATABASE_URL, STEAMPIPE_DATABASE_URL environment variables
    • Refer to Config Guardians for an example on how to set it up with the required containers
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit SwaggerUI from your browser to see the API documentation.

Ready to run in production? Please check our deployment guides.

Running in Docker

Refer to Config Guardians, which contains the whole system architecture we employ to power Config Guardians

Learn more

About

A Phoenix⁠/Ash⁠ app that tracks changes to repository content in GitHub repositories and certain AWS resources (IAM, S3 and VPC), with simple-ish extensibility to other providers and resources

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages