{"id":40119427,"url":"https://github.com/sinkingpoint/alertmanager-bouncer","last_synced_at":"2026-01-19T12:34:44.057Z","repository":{"id":57517043,"uuid":"233604381","full_name":"sinkingpoint/alertmanager-bouncer","owner":"sinkingpoint","description":"A business-logic enforcing reverse proxy for alertmanager","archived":false,"fork":false,"pushed_at":"2024-03-13T22:46:10.000Z","size":98,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T07:18:47.143Z","etag":null,"topics":["alertmanager","business-logic","prometheus","proxy","rules-engine"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sinkingpoint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-13T13:40:42.000Z","updated_at":"2024-09-17T13:05:44.000Z","dependencies_parsed_at":"2024-06-20T02:23:23.479Z","dependency_job_id":null,"html_url":"https://github.com/sinkingpoint/alertmanager-bouncer","commit_stats":null,"previous_names":["sinkingpoint/alertmanager_bouncer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sinkingpoint/alertmanager-bouncer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinkingpoint%2Falertmanager-bouncer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinkingpoint%2Falertmanager-bouncer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinkingpoint%2Falertmanager-bouncer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinkingpoint%2Falertmanager-bouncer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinkingpoint","download_url":"https://codeload.github.com/sinkingpoint/alertmanager-bouncer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinkingpoint%2Falertmanager-bouncer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28567911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alertmanager","business-logic","prometheus","proxy","rules-engine"],"created_at":"2026-01-19T12:34:43.965Z","updated_at":"2026-01-19T12:34:44.051Z","avatar_url":"https://github.com/sinkingpoint.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alertmanager Bouncer\n\nSometimes you want to apply business logic to Alertmanager, enforcing authors, logic around silence times etc.\nAccording to upstream, this logic doesn't belong in Alertmanager itself - fair enough, but that leaves us wondering\nwhere to put it.\n\nAlertManager bouncer is a reverse proxy which has the ability to intercept POSTs to the Alertmanager API, and accept, or\nreject them based on a set of policies.\n\n## Command Line Help\n\n```\nusage: alertmanager_bouncer --backend.addr=BACKEND.ADDR --listen.addr=LISTEN.ADDR --config.bouncersfile=CONFIG.BOUNCERSFILE [\u003cflags\u003e]\n\nA Business Logic Reverse Proxy for Alertmanager\n\nFlags:\n  --help                        Show context-sensitive help (also try --help-long and --help-man).\n  --backend.addr=BACKEND.ADDR   The URL of the backend to upstream to\n  --listen.addr=LISTEN.ADDR     The URL for the reverse proxy to listen on\n  --config.bouncersfile=CONFIG.BOUNCERSFILE  \n                                The file containing the list of bouncers to create\n  --timeout.dial=30s            The timeout of the initial connection to the backend\n  --timeout.tlshandshake=10s    The timeout of the TLS handshake to the backend, after a connection is established\n  --timeout.responseheader=10s  The timeout of the receive of the initial headers from the backend\n  --timeout.serverread=5s       The timeout of the reverse proxy to read requests\n  --timeout.serverwrite=10s     The timeout of the reverse proxy to write the response to the upstream client\n  --tls.certfile=TLS.CERTFILE   The file path of the TLS cert file on disk, if you want to serve TLS\n  --tls.keyfile=TLS.KEYFILE     The file path of the TLS key file on disk, if you want to serve TLS\n```\n\n## Example\n\nTo define the bouncers for your proxy, you need to define them in YAML in the file passed to config.bouncersfile.\nThe format of this file is as follows:\n\n```yaml\n# The bouncers for our proxy\nbouncers:\n  # Bouncer which enforces that all silences have an author that ends with @cloudflare.com\n  - method: POST\n    uriRegex: /api/v[12]/silences # Handles both the v1 and v2 API\n    deciders:\n      - name: AllSilencesHaveAuthor\n        config:\n          domain: \"@cloudflare.com\"\n    dryrun: false # DryRun = True forces this decider to just log failures, rather than blocking\n  # Bouncer which mirrors both silences and alerts to another alertmanager (Maybe for testing)\n  - method: POST\n    uriRegex: /api/v[12]/(:?silences|alerts)\n    deciders:\n      - name: Mirror\n        config:\n          destination: \"http://alertmanager-2:9091\"\n```\n\n## License\n\nApache License 2.0, see [LICENSE](https://github.com/sinkingpoint/alertmanager_bouncer/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinkingpoint%2Falertmanager-bouncer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinkingpoint%2Falertmanager-bouncer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinkingpoint%2Falertmanager-bouncer/lists"}