{"id":17703250,"url":"https://github.com/nagyesta/lowkey-vault-example-go","last_synced_at":"2026-01-21T08:39:27.202Z","repository":{"id":48380781,"uuid":"516878105","full_name":"nagyesta/lowkey-vault-example-go","owner":"nagyesta","description":"POC example for using Lowkey Vault in your Go project.","archived":false,"fork":false,"pushed_at":"2024-09-10T16:58:39.000Z","size":195,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-10T18:58:51.808Z","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/nagyesta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-22T20:25:53.000Z","updated_at":"2024-09-10T16:58:42.000Z","dependencies_parsed_at":"2023-10-01T19:00:04.902Z","dependency_job_id":"720fbd97-41c5-4667-ab03-c386831373a0","html_url":"https://github.com/nagyesta/lowkey-vault-example-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nagyesta%2Flowkey-vault-example-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nagyesta%2Flowkey-vault-example-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nagyesta%2Flowkey-vault-example-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nagyesta%2Flowkey-vault-example-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nagyesta","download_url":"https://codeload.github.com/nagyesta/lowkey-vault-example-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243357609,"owners_count":20277988,"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-10-24T20:06:37.587Z","updated_at":"2026-01-21T08:39:27.164Z","avatar_url":"https://github.com/nagyesta.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![LowkeyVault](https://raw.githubusercontent.com/nagyesta/lowkey-vault/main/.github/assets/LowkeyVault-logo-full.png)\n\n[![GitHub license](https://img.shields.io/github/license/nagyesta/lowkey-vault-example-go?color=informational)](https://raw.githubusercontent.com/nagyesta/lowkey-vault-example-go/main/LICENSE)\n[![Go package](https://img.shields.io/github/actions/workflow/status/nagyesta/lowkey-vault-example-go/go.yml?logo=github\u0026branch=main)](https://github.com/nagyesta/lowkey-vault-example-go/actions/workflows/go.yml)\n[![Lowkey secure](https://img.shields.io/badge/lowkey-secure-0066CC)](https://github.com/nagyesta/lowkey-vault)\n\n# Lowkey Vault - Example Go\n\nThis is an example for [Lowkey Vault](https://github.com/nagyesta/lowkey-vault). It demonstrates a basic scenario where\na key is used for encrypt/decrypt operations and database connection specific credentials as well as getting a PKCS12 \nstore with a certificate and matching private key inside.\n\n### Points of interest\n\n* [Client](src/lowkey-vault-example.go)\n* Tests\n  * [Using FakeCredential](src/lowkey-vault-example_test.go)\n  * [Using Managed Identity with DefaultAzureCredential](src/lowkey-vault-example_mi_test.go) (requires Assumed Identity to run)\n\n\u003e [!NOTE]\n\u003e In order to better understand what is needed in general to make similar examples work, please find a generic overview\n[here](https://github.com/nagyesta/lowkey-vault/wiki/Example:-How-can-you-use-Lowkey-Vault-in-your-tests).\n\n### Usage\n\n1. Start [Lowkey Vault](https://github.com/nagyesta/lowkey-vault) and [Assumed Identity](https://github.com/nagyesta/assumed-identity)\n   1. Either by following the steps [here](https://github.com/nagyesta/lowkey-vault#quick-start-guide) and [here](https://github.com/nagyesta/assumed-identity#usage).\n   2. Or running ```docker-compose up -d```\n2. If you are not using the default `169.254.169.254:80` address for Assumed Identity (because for example you are running it in the cloud)\n   1. Set ```IDENTITY_ENDPOINT``` environment variable to point to the `/metadata/identity/oauth2/token` path of Assumed Identity e.g., http://localhost:8080/metadata/identity/oauth2/token\n   2. Set ```IDENTITY_HEADER``` environment variable to anything (just needs to exist) e.g., `header`\n3. Run the tests\n\n\u003e [!TIP]\n\u003e Since v2.4.2, Lowkey Vault is providing the same token endpoint on the `8080` port by default. Therefore, you don't need to start another container.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnagyesta%2Flowkey-vault-example-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnagyesta%2Flowkey-vault-example-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnagyesta%2Flowkey-vault-example-go/lists"}