{"id":37165202,"url":"https://github.com/calebhailey/sensu-deregistration-handler","last_synced_at":"2026-01-14T19:36:01.698Z","repository":{"id":55663163,"uuid":"288876769","full_name":"calebhailey/sensu-deregistration-handler","owner":"calebhailey","description":"Deregister Sensu Entities on-demand","archived":true,"fork":false,"pushed_at":"2020-12-07T14:02:39.000Z","size":35,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-10T04:57:12.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/calebhailey.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-20T01:37:08.000Z","updated_at":"2023-12-11T19:56:05.000Z","dependencies_parsed_at":"2022-08-15T05:50:53.536Z","dependency_job_id":null,"html_url":"https://github.com/calebhailey/sensu-deregistration-handler","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/calebhailey/sensu-deregistration-handler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebhailey%2Fsensu-deregistration-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebhailey%2Fsensu-deregistration-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebhailey%2Fsensu-deregistration-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebhailey%2Fsensu-deregistration-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calebhailey","download_url":"https://codeload.github.com/calebhailey/sensu-deregistration-handler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calebhailey%2Fsensu-deregistration-handler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"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":[],"created_at":"2026-01-14T19:36:00.723Z","updated_at":"2026-01-14T19:36:01.673Z","avatar_url":"https://github.com/calebhailey.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967\u0026logo=sensu)](https://bonsai.sensu.io/assets/calebhailey/sensu-deregistration-handler)\n![Go Test](https://github.com/calebhailey/sensu-deregistration-handler/workflows/Go%20Test/badge.svg)\n![goreleaser](https://github.com/calebhailey/sensu-deregistration-handler/workflows/goreleaser/badge.svg)\n\n# Sensu Deregistration Handler\n\n## Table of Contents\n- [Overview](#overview)\n- [Usage](#usage)\n- [Configuration](#configuration)\n  - [Asset registration](#asset-registration)\n  - [Handler definition](#handler-definition)\n- [Installation from source](#installation-from-source)\n- [Contributing](#contributing)\n\n## Overview\n\nThe Sensu Deregistration Handler is a simple handler that deletes entities from the \nSensu Entities API. Any valid Sensu Event can be used to initiate a deregistration, \nincluding keepalive events. \n\n## Usage\n\n```\nDeregister Sensu entities on-demand! This handler take zero arguments and does not perform any validation. It simply consumes events and deletes the entity referenced in the event. Use with caution!\n\nUsage:\n  sensu-deregistration-handler [flags]\n  sensu-deregistration-handler [command]\n\nAvailable Commands:\n  help        Help about any command\n  version     Print the version number of this plugin\n\nFlags:\n      --access-token string      Sensu Access Token\n      --api-key string           Sensu API Key\n      --api-url string           Sensu API URL (default \"http://127.0.0.1:8080\")\n  -h, --help                     help for sensu-deregistration-handler\n      --namespace string         Sensu Namespace\n      --trusted-ca-file string   Sensu Trusted Certificate Authority file\n\nUse \"sensu-deregistration-handler [command] --help\" for more information about a command.\n```\n\n## Configuration\n\n### Asset registration\n\n[Sensu Assets][10] are the best way to make use of this plugin. If you're not using an asset, please\nconsider doing so! If you're using sensuctl 5.13 with Sensu Backend 5.13 or later, you can use the\nfollowing command to add the asset:\n\n```\nsensuctl asset add calebhailey/sensu-deregistration-handler\n```\n\nIf you're using an earlier version of sensuctl, you can find the asset on the [Bonsai Asset Index][https://bonsai.sensu.io/assets/calebhailey/sensu-deregistration-handler].\n\n### Handler definition\n\n```yml\n---\ntype: Handler\napi_version: core/v2\nmetadata:\n  name: sensu-deregistration-handler\nspec:\n  type: pipe\n  command: sensu-deregistration-handler\n  runtime_assets:\n  - calebhailey/sensu-deregistration-handler\n```\n\n## Installation from source\n\nThe preferred way of installing and deploying this plugin is to use it as an Asset. If you would\nlike to compile and install the plugin from source or contribute to it, download the latest version\nor create an executable script from this source.\n\nFrom the local path of the sensu-deregistration-handler repository:\n\n```\ngo build\n```\n\n## Contributing\n\nFor more information about contributing to this plugin, see [Contributing][1].\n\n[1]: https://github.com/sensu/sensu-go/blob/master/CONTRIBUTING.md\n[2]: https://github.com/sensu-community/sensu-plugin-sdk\n[3]: https://github.com/sensu-plugins/community/blob/master/PLUGIN_STYLEGUIDE.md\n[4]: https://github.com/sensu-community/handler-plugin-template/blob/master/.github/workflows/release.yml\n[5]: https://github.com/sensu-community/handler-plugin-template/actions\n[6]: https://docs.sensu.io/sensu-go/latest/reference/handlers/\n[7]: https://github.com/sensu-community/handler-plugin-template/blob/master/main.go\n[8]: https://bonsai.sensu.io/\n[9]: https://github.com/sensu-community/sensu-plugin-tool\n[10]: https://docs.sensu.io/sensu-go/latest/reference/assets/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalebhailey%2Fsensu-deregistration-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalebhailey%2Fsensu-deregistration-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalebhailey%2Fsensu-deregistration-handler/lists"}