{"id":36919662,"url":"https://github.com/jw-s/safeguard","last_synced_at":"2026-01-12T16:13:51.534Z","repository":{"id":64302919,"uuid":"137530721","full_name":"jw-s/safeguard","owner":"jw-s","description":"Brings protected resources to kubernetes!","archived":false,"fork":false,"pushed_at":"2023-03-06T23:26:25.000Z","size":13563,"stargazers_count":11,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T17:31:39.290Z","etag":null,"topics":["admission-controller","kubernetes","kubernetes-controller","protected","protected-resources"],"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/jw-s.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":"2018-06-15T20:48:34.000Z","updated_at":"2024-06-07T10:06:09.000Z","dependencies_parsed_at":"2024-06-20T17:13:44.318Z","dependency_job_id":"59266ae3-7b6c-4615-b888-ae2042d45c41","html_url":"https://github.com/jw-s/safeguard","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jw-s/safeguard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw-s%2Fsafeguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw-s%2Fsafeguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw-s%2Fsafeguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw-s%2Fsafeguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jw-s","download_url":"https://codeload.github.com/jw-s/safeguard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jw-s%2Fsafeguard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28342280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T15:50:39.657Z","status":"ssl_error","status_checked_at":"2026-01-12T15:49:49.297Z","response_time":98,"last_error":"SSL_read: 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":["admission-controller","kubernetes","kubernetes-controller","protected","protected-resources"],"created_at":"2026-01-12T16:13:46.948Z","updated_at":"2026-01-12T16:13:51.518Z","avatar_url":"https://github.com/jw-s.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# safeguard\n\nSafeguard is a custom admission controller for kubernetes used to enforce protection on kubernetes resources.\n\n## Usage\n\n1.  Configure [safeguard.yml](safeguard.yml) with your own ca bundle base64 encoded.\n2.  Modify [secret.yml](contrib/secret.yml) with your own `tls.crt` and `tls.key`\n\n    NOTE: the certificates have to be signed by the same CA as your api server!\n3. Run the following;\n```\nkubectl create -f safeguard.yml -n NAMESPACE\nkubectl create -f contrib/secret.yml -n NAMESPACE\nkubectl create -f contrib/deployment.yml -n NAMESPACE # this should be in the same namespace as the secret\nkubectl create -f contrib/service.yml -n NAMESPACE # this should be in the same namespace as the deployment\n```\n\n4. Decorate your resources with the following annotation to protect them.\n```\n---\napiVersion: v1\nkind: Service\nmetadata:\n  name: example\n  annotations:\n    safeguard.jw-s.com/protected: 'true'\n...\n\n```\n\n5. Try to delete the protected resource!\n\n\n## Development\n### Prerequistities\n* Go 1.12.x\n* Make\n\n```bash\ngo get -d github.com/jw-s/safeguard\ncd $GOPATH/src/github.com/jw-s/safeguard\nmake build\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjw-s%2Fsafeguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjw-s%2Fsafeguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjw-s%2Fsafeguard/lists"}