{"id":22974063,"url":"https://github.com/bolcom/gke-exec-credential","last_synced_at":"2026-05-17T06:31:24.875Z","repository":{"id":147136734,"uuid":"355154124","full_name":"bolcom/gke-exec-credential","owner":"bolcom","description":"A small exec helper for K8S to automatically retrieve and refresh access tokens from gcloud","archived":false,"fork":false,"pushed_at":"2021-04-15T07:51:27.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-27T20:49:06.271Z","etag":null,"topics":["gcp","google-cloud","k8s","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/bolcom.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-04-06T10:52:00.000Z","updated_at":"2021-04-15T07:51:29.000Z","dependencies_parsed_at":"2023-05-15T15:15:51.593Z","dependency_job_id":null,"html_url":"https://github.com/bolcom/gke-exec-credential","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bolcom/gke-exec-credential","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolcom%2Fgke-exec-credential","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolcom%2Fgke-exec-credential/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolcom%2Fgke-exec-credential/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolcom%2Fgke-exec-credential/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bolcom","download_url":"https://codeload.github.com/bolcom/gke-exec-credential/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bolcom%2Fgke-exec-credential/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33129247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T06:27:06.342Z","status":"ssl_error","status_checked_at":"2026-05-17T06:26:59.432Z","response_time":107,"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":["gcp","google-cloud","k8s","kubernetes"],"created_at":"2024-12-15T00:00:01.282Z","updated_at":"2026-05-17T06:31:24.870Z","avatar_url":"https://github.com/bolcom.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gke-exec-credential\n\n## What is it?\nIt is a small external exec provider for Kubernetes that delegates getting and refreshing the access token to the `gcloud` command-line tool.\n\nNormally `kubectl` already refreshes tokens automatically, but third-party clients and libraries don't typically support all the various auth flows that you may have specified in your K8S config file. The `exec` flow seems to be well-supported (e.g. by the fabric8.io kubernetes-client for Java) and this is a bridge between that and Google's cloud.\n\n## How to build\n* Install Rust via [rustup](https://rustup.rs/).\n* Clone this repo\n* `cargo build --release`\n* The binary is `target/release/gke-exec-credential`\n\n## Installation\nIn your `~/.kube/config` file, set up your K8S context like so:\n\n```yaml\n- context:\n    cluster: my-fancy-k8s-cluster\n    namespace: default\n    user: gke\n```\n\nThen, add the `gke` user like so:\n\n```yaml\nusers:\n- name: gke\n  user:\n    exec:\n      apiVersion: client.authentication.k8s.io/v1beta1\n      command: /path/to/gke-exec-credential\n```\n\nIn the folder where `gke-exec-credential` is located a file called `gke-exec-credential-cached` will be placed with the cached gcloud access token. It will be refreshed automatically.\n\n## Details\nThe implementation is based on [this](https://github.com/jglick/gke-exec-credential) credential helper, but adds a simple cache to avoid having to refresh the token on every call. Normally `ExecCredentials` are also cached until the client process exits, but this is not really suitable for a command-line workflow where the process exits after every invocation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolcom%2Fgke-exec-credential","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolcom%2Fgke-exec-credential","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolcom%2Fgke-exec-credential/lists"}