{"id":21878298,"url":"https://github.com/pepabo/k8s-github-auth","last_synced_at":"2025-04-15T03:04:21.801Z","repository":{"id":44606869,"uuid":"171770391","full_name":"pepabo/k8s-github-auth","owner":"pepabo","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-14T02:00:10.000Z","size":30,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T03:04:07.285Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pepabo.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":"2019-02-21T00:22:34.000Z","updated_at":"2023-03-05T13:20:17.000Z","dependencies_parsed_at":"2024-06-19T05:29:40.101Z","dependency_job_id":"15d3ebd7-f580-45eb-9122-ce1685204aad","html_url":"https://github.com/pepabo/k8s-github-auth","commit_stats":{"total_commits":39,"total_committers":5,"mean_commits":7.8,"dds":"0.46153846153846156","last_synced_commit":"c6a1219cccdb738146d07e3cff0769cd56553645"},"previous_names":["takaishi/k8s-github-auth"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fk8s-github-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fk8s-github-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fk8s-github-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fk8s-github-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepabo","download_url":"https://codeload.github.com/pepabo/k8s-github-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248997083,"owners_count":21195798,"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":[],"created_at":"2024-11-28T08:12:14.071Z","updated_at":"2025-04-15T03:04:21.770Z","avatar_url":"https://github.com/pepabo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# k8s-github-auth\n\nwebhook srever for kubernetes authentication\n\n## Usage\n\nRunning k8s-github-auth with deployment:\n\n```\n---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: k8s-github-auth\n  labels:\n    app: k8s-github-auth\nspec:\n  replicas: 1\n  selector:\n    matchLabels:\n      app: k8s-github-auth\n  template:\n    metadata:\n      labels:\n        app: k8s-github-auth\n    spec:\n      containers:\n      - name: k8s-github-auth\n        image: rtakaishi/k8s-github-auth\n        ports:\n        - containerPort: 8443\n---\napiVersion: v1\nkind: Service\nmetadata:\n  name: k8s-github-auth-dev\n  namespace: kube-system\n  labels:\n    k8s-app: k8s-github-auth\nspec:\n  selector:\n    app: k8s-github-auth\n  clusterIP: 10.96.0.20\n  ports:\n  - name: tcp\n    port: 8443\n    targetPort: 8443\n    protocol: TCP\n\n```\n\nadd option to kube-apiserver:\n\n```\n--authentication-token-webhook-config-file=/path/to/webhook_config.yaml\n```\n\nwebhook_config.yaml:\n\n```yaml\n---\napiVersion: v1\nkind: Config\npreferences: {}\nclusters:\n  - cluster:\n      insecure-skip-tls-verify: true\n      server: http://10.69.0.20:8443/webhook\n    name: webhook\nusers:\n  - name: webhook\ncontexts:\n  - context:\n      cluster: webhook\n      user: webhook\n    name: webhook\ncurrent-context: webhook\n```\n\nset credential:\n\n```\n$ kubectl config set-credentials test --token=tokentokentoken\n```\n\n## Update Image\n\n```\n$ docker build -t rtakaishi/k8s-github-auth .\n```\n\n```\n$ docker push rtakaishi/k8s-github-auth\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fk8s-github-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepabo%2Fk8s-github-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fk8s-github-auth/lists"}