{"id":22514543,"url":"https://github.com/xide/kube2allow","last_synced_at":"2026-04-16T19:05:09.903Z","repository":{"id":95935780,"uuid":"260955195","full_name":"Xide/kube2allow","owner":"Xide","description":"helper to guess required linux capabilities for pods in your Kubernetes cluster","archived":false,"fork":false,"pushed_at":"2020-05-05T21:28:59.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T11:29:01.124Z","etag":null,"topics":["capabilities","kubernetes","linux","security"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xide.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-03T15:12:29.000Z","updated_at":"2020-05-12T11:07:39.000Z","dependencies_parsed_at":"2023-09-01T11:19:09.114Z","dependency_job_id":null,"html_url":"https://github.com/Xide/kube2allow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Xide/kube2allow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xide%2Fkube2allow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xide%2Fkube2allow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xide%2Fkube2allow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xide%2Fkube2allow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xide","download_url":"https://codeload.github.com/Xide/kube2allow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xide%2Fkube2allow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260268609,"owners_count":22983601,"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","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":["capabilities","kubernetes","linux","security"],"created_at":"2024-12-07T03:18:44.353Z","updated_at":"2026-04-16T19:05:09.873Z","avatar_url":"https://github.com/Xide.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kube2Allow\n\nLittle helper to guess required linux capabilities for pods in your Kubernetes cluster.\n\n## Install\n\n```sh\nkubectl apply -f ds.yaml\n```\n\n## Usage\n\nOnce installed, the application will create configmaps for each containers in the cluster, named \n`k2a-${POD_NAME}-${CONTAINER_NAME}` in the pod namespace.\n\n```sh\n# Get all configmaps\nkubectl get cm --all-namespaces -l 'k8s-app=kube2allow'\n\n# Delete generated configmaps\nkubectl delete cm --all-namespaces -l 'k8s-app=kube2allow'\n\n# Uninstall kube2allow\nkubectl delete -f ds.yaml\n```\n\n### Generate syscall \u003c-\u003e capabilities mapping\n\nThe mapping is extracted from referenced capabilities in the `man 2` page.\nYou can generate `app/caps_mapping.json` with this command:\n\n```sh\nmake app/caps_mapping.json\n```\n\nYou can either rebuild the image to embed this file, or mount it as a volume on `/caps_mapping.json` in the container.\n\n## Caveats\n\n- This application guesses the capabilities by trapping system calls, but there is no direct mapping\n between syscall and required caps. Thus, it is done by parsing the `man` page, but this can lead to \n a broader set of capabilities than the process really requires.\n\n- syscalls are detected at runtime, but it can happen that a container only requires capabilities during \n initialization. In order to ensure all capabilities have been scraped, you can restart the pods once \n `kube2allow` is installed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxide%2Fkube2allow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxide%2Fkube2allow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxide%2Fkube2allow/lists"}