{"id":21291506,"url":"https://github.com/postfinance/vaultk8s","last_synced_at":"2025-03-15T16:34:04.858Z","repository":{"id":44960580,"uuid":"306658219","full_name":"postfinance/vaultk8s","owner":"postfinance","description":"Package k8s provides authentication with Vault on Kubernetes","archived":false,"fork":false,"pushed_at":"2025-02-20T09:56:15.000Z","size":136,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-20T10:34:05.685Z","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/postfinance.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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-10-23T14:18:04.000Z","updated_at":"2022-01-17T08:55:43.000Z","dependencies_parsed_at":"2024-06-20T07:11:35.116Z","dependency_job_id":"9acbb7ec-4c9c-46d6-ab01-930704295200","html_url":"https://github.com/postfinance/vaultk8s","commit_stats":null,"previous_names":["postfinance/vault-k8s"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fvaultk8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fvaultk8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fvaultk8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postfinance%2Fvaultk8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postfinance","download_url":"https://codeload.github.com/postfinance/vaultk8s/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243760416,"owners_count":20343627,"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-21T13:34:02.226Z","updated_at":"2025-03-15T16:34:04.571Z","avatar_url":"https://github.com/postfinance.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/postfinance/vaultk8s)](https://goreportcard.com/report/github.com/postfinance/vaultk8s)\n[![GoDoc](https://godoc.org/github.com/postfinance/vaultk8s?status.svg)](https://godoc.org/github.com/postfinance/vaultk8s)\n[![Build Status](https://github.com/postfinance/vaultk8s/workflows/build/badge.svg)](https://github.com/postfinance/vaultk8s/actions)\n[![Coverage Status](https://coveralls.io/repos/github/postfinance/vaultk8s/badge.svg?branch=master)](https://coveralls.io/github/postfinance/vaultk8s?branch=master)\n\n\n# Package vaultk8s\n\nPackage vaultk8s provides authentication with Vault on Kubernetes\n\n\u003e Replaces package `github.com/postfinance/vault/k8s`\n\nAuthentication is done either with Vault's  *Kubernetes Auth Method* or *AppRole Auth Method*.\n\nCheckout the Vault documentation for details:\n- [Kubernetes Auth Method](https://www.vaultproject.io/docs/auth/kubernetes)\n- [AppRole Auth Method](https://www.vaultproject.io/docs/auth/approle)\n\nIf the environment variables `VAULT_ROLE_ID` and `VAULT_SECRET_ID` are set, *AppRole Auth Method* will be used, *Kubernetes Auth Method* otherwise.\n\nFor a successful Kubernetes authentication the environment variable `VAULT_ROLE` must be set.\n\n## Tests\n\nFor testing, HashiCorp's Vault and a Kubernetes cluster will be used.\n### HashiCorp Vault\n\n- [Install Vault](https://www.vaultproject.io/docs/install)\n- Start Vault:\n    ```\n    export VAULT_DEV_ROOT_TOKEN_ID=\"90b03685-e17b-7e5e-13a0-e14e45baeb2f\"\n    export VAULT_DEV_LISTEN_ADDRESS=\"127.0.0.1:8200\"\n    vault server -dev\n    ```\n\n\u003e **IMPORTANT: Start vault with the same root token and listen address as defined in `k8s_test.go`.**\n\n### Kubernetes\n- Install and start [kind](https://kind.sigs.k8s.io/docs/user/quick-start/).\n- `kubectl apply -f ci/rbac.yaml`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostfinance%2Fvaultk8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostfinance%2Fvaultk8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostfinance%2Fvaultk8s/lists"}