{"id":16845031,"url":"https://github.com/phenixblue/kcas","last_synced_at":"2026-04-15T22:34:04.339Z","repository":{"id":57705835,"uuid":"500597715","full_name":"phenixblue/kcas","owner":"phenixblue","description":"Application to discover and serve the Kubernetes API CA Cert","archived":false,"fork":false,"pushed_at":"2022-06-08T02:32:10.000Z","size":10120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-03T14:10:02.810Z","etag":null,"topics":["api","ca","cert","golang","k8s"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phenixblue.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":"2022-06-06T21:24:00.000Z","updated_at":"2022-06-07T08:49:59.000Z","dependencies_parsed_at":"2022-08-26T13:23:23.189Z","dependency_job_id":null,"html_url":"https://github.com/phenixblue/kcas","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/phenixblue/kcas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenixblue%2Fkcas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenixblue%2Fkcas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenixblue%2Fkcas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenixblue%2Fkcas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phenixblue","download_url":"https://codeload.github.com/phenixblue/kcas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenixblue%2Fkcas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31863493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["api","ca","cert","golang","k8s"],"created_at":"2024-10-13T12:57:27.032Z","updated_at":"2026-04-15T22:34:04.322Z","avatar_url":"https://github.com/phenixblue.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kcas\n\nApplication to discover and serve the Kubernetes API CA Cert\n\nUseful for scenarios where you want to make the CA Cert discoverable outside of a cluster\n\n## Usage\n\n```\nA utility to discover and serve the Kubernetes API Server CA Certificate to a target cluster\n\nUsage:\n  kcas [flags]\n\nFlags:\n      --config string                config file (default is $HOME/.kcas.yaml)\n      --configmap-key string         name of the namespace where the configmap is located (default \"ca.crt\")\n      --configmap-name string        name of the configmap that houses the Kubernetes API Server CA Certificate (default \"kube-root-ca.crt\")\n      --configmap-namespace string   name of the namespace where the configmap is located (default \"kube-system\")\n      --context string               name of the kubeconfig context to use. Leave blank for default\n  -h, --help                         help for kcas\n      --kubeconfig string            name of the kubeconfig file to use. Leave blank for default/in-cluster\n```\n\n## Use Cases\n\n### Serve K8s API CA Cert\n\nSometimes you may have a need to expose the K8s API Server CA Cert external to a given cluster.\n\n#### Standard Install\n\n```shell\n$ make install\n```\n\nThis will create the `kcas-system` namespace and deploy all other resources there\n\nThis configuration will look for the `kube-root-ca.crt` configmap in the `kcas-system` namespace and serve that contents on `/ca-cert`\n\n#### Standalone Install\n\n```shell\n$ make install-standalone namespace=target-namespace\n```\n\nThis will deploy all resources except for the namespace and cluster scoped RBAC resources into the namespace specified.\n\nThis configuration will look for the `kube-root-ca.crt` configmap in the target namespace and serve that contents on `/ca-cert`\n\n### Serve data from an arbitrary configMap\n\nYou want to serve some data from a configmap other than the k8s API Server CA Cert. To do this, you need to change the arguments in the deployment similar to this:\n\n```yaml\nargs:\n  - \"--configmap-namespace=target-namespace\"\n  - \"--configmap-name=my-cool-configmap\"\n  - \"--configmap-name=my-config.yaml\"\n  - \"--disable-tls-processing\"\n```\n\nThe specific arguments and values will differ based on use case and environment, so these serve only as one possible example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenixblue%2Fkcas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphenixblue%2Fkcas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenixblue%2Fkcas/lists"}