{"id":19096592,"url":"https://github.com/sapcc/netbox-webhook-distributor","last_synced_at":"2025-07-22T15:33:54.532Z","repository":{"id":41954484,"uuid":"425954146","full_name":"sapcc/netbox-webhook-distributor","owner":"sapcc","description":"A Netbox webhook event distributor using nats jetstream","archived":false,"fork":false,"pushed_at":"2023-12-15T11:46:16.000Z","size":8121,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":48,"default_branch":"main","last_synced_at":"2025-04-30T14:17:34.571Z","etag":null,"topics":["events","nats-streaming","netbox","webhook"],"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/sapcc.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":"2021-11-08T18:41:56.000Z","updated_at":"2023-10-03T01:48:54.000Z","dependencies_parsed_at":"2024-06-21T17:34:45.280Z","dependency_job_id":"154c61f5-8f6b-4c9e-b64b-b3b467187fc2","html_url":"https://github.com/sapcc/netbox-webhook-distributor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sapcc/netbox-webhook-distributor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fnetbox-webhook-distributor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fnetbox-webhook-distributor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fnetbox-webhook-distributor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fnetbox-webhook-distributor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sapcc","download_url":"https://codeload.github.com/sapcc/netbox-webhook-distributor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fnetbox-webhook-distributor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266520994,"owners_count":23942369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["events","nats-streaming","netbox","webhook"],"created_at":"2024-11-09T03:37:11.627Z","updated_at":"2025-07-22T15:33:54.500Z","avatar_url":"https://github.com/sapcc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# netbox-webhook-distributor\nThis is a automatic Netbox webhook distributor. It can forward a Netbox webhook event to N number of recipients.\nIt uses Nats jetstream to save and replay incoming Netbox events.\n\n## overview\nThe netbox-webhook-distributor tries to resend an event in case of a ```http timeout``` or ```500 http status code```. The maximum retry/backoff strategy looks as follows:\n```go\n    Steps:    20,\n    Duration: 10 ms,\n    Factor:   2.0,\n    Jitter:   0.1,\n```\nIf all retries fail, the event will be dropped, and the next event will be processed. \nThe Netbox event data is not altered and distributed as is.\n\nEach recipient will run a Nats consumer for each Netbox webhook type (device, site etc.), which allows to replay events as needed.\n\nEvents in Nats are kept for 1 hour.\n\n## config\nIn order to add a recipient, it needs to be added to the list of recipients in a config.yaml file. Within the netbox_webhooks, one can define which events should be distributed. A recipient needs to provide an URL which accepts JSON data via POST and return a 200 http status code.\n\n### example config\n```yaml\nrecipients:\n  - name: \"test01\"\n    url: \"https://any_url.com\"\n    netbox_webhooks:\n      site:\n        - \"created\"\n        - \"updated\"\n        - \"deleted\"\n      device:\n        - \"deleted\"\n  - name: \"test02\"\n    url: \"http://test.com/webhook\"\n    netbox_webhooks:\n      site:\n        - \"created\"\n        - \"deleted\"\n      device:\n        - \"deleted\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapcc%2Fnetbox-webhook-distributor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapcc%2Fnetbox-webhook-distributor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapcc%2Fnetbox-webhook-distributor/lists"}