{"id":23762262,"url":"https://github.com/appvia/cosign-keyless-admission-webhook","last_synced_at":"2025-09-05T06:31:50.139Z","repository":{"id":37141227,"uuid":"422139036","full_name":"appvia/cosign-keyless-admission-webhook","owner":"appvia","description":"Kubernetes admission webhook that uses cosign verify to check the subject and issuer of the image matches what you expect","archived":false,"fork":false,"pushed_at":"2025-07-22T20:35:15.000Z","size":152,"stargazers_count":23,"open_issues_count":14,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T22:22:10.862Z","etag":null,"topics":["container-security","cosign","hacktoberfest","kubernetes","kubernetes-admission-webhook","oidc","sigstore"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/appvia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-10-28T09:15:22.000Z","updated_at":"2025-01-23T08:46:50.000Z","dependencies_parsed_at":"2023-09-25T15:45:46.718Z","dependency_job_id":"10afc773-cad5-4c84-88a0-cf9a18f8d79b","html_url":"https://github.com/appvia/cosign-keyless-admission-webhook","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/appvia/cosign-keyless-admission-webhook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appvia%2Fcosign-keyless-admission-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appvia%2Fcosign-keyless-admission-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appvia%2Fcosign-keyless-admission-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appvia%2Fcosign-keyless-admission-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appvia","download_url":"https://codeload.github.com/appvia/cosign-keyless-admission-webhook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appvia%2Fcosign-keyless-admission-webhook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273722729,"owners_count":25156300,"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-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["container-security","cosign","hacktoberfest","kubernetes","kubernetes-admission-webhook","oidc","sigstore"],"created_at":"2024-12-31T21:17:21.892Z","updated_at":"2025-09-05T06:31:49.759Z","avatar_url":"https://github.com/appvia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cosign keyless Kubernetes admission webhook\n\n[![Build](https://github.com/appvia/cosign-keyless-admission-webhook/actions/workflows/ci.yml/badge.svg)](https://github.com/appvia/cosign-keyless-admission-webhook/actions/workflows/ci.yml)\n[![Security Scanning](https://github.com/appvia/cosign-keyless-admission-webhook/actions/workflows/security.yml/badge.svg)](https://github.com/appvia/cosign-keyless-admission-webhook/actions/workflows/security.yml)\n[![GitHub issues](https://img.shields.io/github/issues/appvia/cosign-keyless-admission-webhook.svg)](https://github.com/appvia/cosign-keyless-admission-webhook/issues)\n[![GitHub forks](https://img.shields.io/github/forks/appvia/cosign-keyless-admission-webhook.svg)](https://github.com/appvia/cosign-keyless-admission-webhook/network)\n[![GitHub stars](https://img.shields.io/github/stars/appvia/cosign-keyless-admission-webhook.svg)](https://github.com/appvia/cosign-keyless-admission-webhook/stargazers)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/appvia/cosign-keyless-admission-webhook/main/LICENSE)\n\n\u003e Kubernetes admission webhook that uses `cosign verify` to check the subject and issuer of the image matches what you expect\n\n## Installation\n\n```bash\n# if you don't already have cert-manager\nkubectl apply -f https://github.com/jetstack/cert-manager/releases/latest/download/cert-manager.yaml\n\nkubectl apply -k https://github.com/appvia/cosign-keyless-admission-webhook\n```\n\n## Usage\n\nIn the pod spec you set an annotation(s) of `subject.cosign.sigstore.dev/CONTAINER_NAME`\u003csup\u003e\\*\u003c/sup\u003e to the subject of the certificate and also set the `issuer.cosign.sigstore.dev/CONTAINER_NAME`\u003csup\u003e\\*\u003c/sup\u003e to the Issuer.\n\n\u003e \\*`CONTAINER_NAME` is the name of the container from your pod specification.\n\n### Full example\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata:\n  annotations:\n    subject.cosign.sigstore.dev/demo: https://github.com/chrisns/cosign-keyless-demo/.github/workflows/ci.yml@refs/heads/main\n    issuer.cosign.sigstore.dev/demo: https://token.actions.githubusercontent.com\n    subject.cosign.sigstore.dev/demoagain: https://github.com/chrisns/cosign-keyless-demo/.github/workflows/ci.yml@refs/heads/main\n    issuer.cosign.sigstore.dev/demoagain: https://token.actions.githubusercontent.com\n  name: cosign-keyless-demo\nspec:\n  containers:\n    - image: ghcr.io/chrisns/cosign-keyless-demo:latest\n      name: demo\n    - image: ghcr.io/chrisns/cosign-keyless-demo:latest\n      name: demoagain\n```\n\n## 🚨🚨🚨 WHY THIS MAY NOT WORK FOR YOU 🚨🚨🚨\n\n- Won't work, at least out the box with private registries or ones that just require authentication, you'll have to wire the credentials up to deployment's secrets\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappvia%2Fcosign-keyless-admission-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappvia%2Fcosign-keyless-admission-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappvia%2Fcosign-keyless-admission-webhook/lists"}