{"id":32739053,"url":"https://github.com/bit-cloner/kcg","last_synced_at":"2026-05-15T18:36:04.030Z","repository":{"id":37408937,"uuid":"285841301","full_name":"bit-cloner/kcg","owner":"bit-cloner","description":"Kubernetes config generator","archived":false,"fork":false,"pushed_at":"2021-04-29T17:01:09.000Z","size":44793,"stargazers_count":17,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-21T17:02:00.131Z","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/bit-cloner.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}},"created_at":"2020-08-07T13:54:48.000Z","updated_at":"2023-10-24T07:53:23.000Z","dependencies_parsed_at":"2022-08-18T18:41:06.429Z","dependency_job_id":null,"html_url":"https://github.com/bit-cloner/kcg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bit-cloner/kcg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit-cloner%2Fkcg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit-cloner%2Fkcg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit-cloner%2Fkcg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit-cloner%2Fkcg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bit-cloner","download_url":"https://codeload.github.com/bit-cloner/kcg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit-cloner%2Fkcg/sbom","scorecard":{"id":239804,"data":{"date":"2025-08-11","repo":{"name":"github.com/bit-cloner/kcg","commit":"981586e6d1b1587d9674c0b1057a3c29826e7541"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.9 not signed: https://api.github.com/repos/bit-cloner/kcg/releases/29451415","Warn: release artifact 0.9 does not have provenance: https://api.github.com/repos/bit-cloner/kcg/releases/29451415"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0053 / GHSA-c3h9-896r-86jm","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9","Warn: Project is vulnerable to: GO-2024-2748 / GHSA-33c5-9fx5-fvjm","Warn: Project is vulnerable to: GO-2021-0065 / GHSA-jmrx-5g74-6v2f","Warn: Project is vulnerable to: GO-2021-0064 / GHSA-8cfg-vx93-jvxw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T06:29:17.035Z","repository_id":37408937,"created_at":"2025-08-17T06:29:17.035Z","updated_at":"2025-08-17T06:29:17.035Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2025-11-03T09:00:49.546Z","updated_at":"2026-05-15T18:36:04.025Z","avatar_url":"https://github.com/bit-cloner.png","language":"Go","funding_links":["https://www.buymeacoffee.com/welldone"],"categories":["Configuration \u0026 Policy Automation"],"sub_categories":[],"readme":"## What is KCG?\nKubernetes config generator is an interactive command line tool that lets you create kubeconfig files\nrelated to a service account in a given namespace. The user can interactively chose a namespace and service account from a K8 cluster.\nThe output is a config file with token authentication that has same RBAC permissions assigned to chosen\nservice account.\n\n### Demo\n![til](./usage.gif)\n\n### Prerequisites \n\nDefault behaviour of this tool is to look in .kube directory for config file and it should have permissions to read namespaces, secrets, and serviceaccounts at cluster level.\nIt can also look for credentials of the K8 cluster you want to work with from Environment variable KUBECONFIG just like kubectl would.\n\n### Get it\n\nFor Linux\n\n```\nwget https://github.com/bit-cloner/kcg/releases/download/0.9/linux-amd64-kcg\nchmod +x linux-amd64-kcg\n./linux-amd64-kcg\n```\nOne liner\n\n```\nwget https://github.com/bit-cloner/kcg/releases/download/0.9/linux-amd64-kcg \u0026\u0026 sudo chmod +x ./linux-amd64-kcg \u0026\u0026 ./linux-amd64-kcg\n```\n\nFor Windows \n\n```\n$url = \"https://github.com/bit-cloner/kcg/releases/download/0.9/windows-386-kcg.exe\"\n$output = \"kcg.exe\"\nInvoke-WebRequest -Uri $url -OutFile $output -UseBasicParsing\n./kcg\n```\nTested on windows powershell (not PowerShell ISE) and [Terminal](https://github.com/microsoft/terminal) app\n\nFor Mac\n\n```\nwget https://github.com/bit-cloner/kcg/releases/download/0.9/darwin-amd64-kcg\nchmod +x darwin-amd64-kcg\n./darwin-amd64-kcg\n\n```\nInstall it as a kubectl plugin\n\n```\nwget https://github.com/bit-cloner/kcg/releases/download/0.9/kubectl-kcg\nsudo cp kubectl-kcg /usr/local/bin\nkubectl plugin list\nkubectl kcg\n```\n\u003ch3 align=\"left\"\u003eSupport:\u003c/h3\u003e\n\u003cp\u003e\u003ca href=\"https://www.buymeacoffee.com/welldone\"\u003e \u003cimg align=\"left\" src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" height=\"50\" width=\"210\" alt=\"welldone\" /\u003e\u003c/a\u003e\u003c/p\u003e\u003cbr\u003e\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbit-cloner%2Fkcg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbit-cloner%2Fkcg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbit-cloner%2Fkcg/lists"}