{"id":19391085,"url":"https://github.com/spiffe/vsecm-sdk-go","last_synced_at":"2026-06-20T05:04:07.352Z","repository":{"id":259578025,"uuid":"878244698","full_name":"spiffe/vsecm-sdk-go","owner":"spiffe","description":"VMware Secrets Manager Go SDK","archived":false,"fork":false,"pushed_at":"2024-10-26T22:25:16.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-03T21:41:28.340Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spiffe.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-25T03:07:11.000Z","updated_at":"2024-10-26T22:23:27.000Z","dependencies_parsed_at":"2024-11-10T10:26:55.981Z","dependency_job_id":"f3e1bf3b-6b63-4347-81e0-1a6d6186a84d","html_url":"https://github.com/spiffe/vsecm-sdk-go","commit_stats":null,"previous_names":["spiffe/vsecm-sdk-go"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/spiffe/vsecm-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiffe%2Fvsecm-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiffe%2Fvsecm-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiffe%2Fvsecm-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiffe%2Fvsecm-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spiffe","download_url":"https://codeload.github.com/spiffe/vsecm-sdk-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spiffe%2Fvsecm-sdk-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34557553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T10:24:38.887Z","updated_at":"2026-06-20T05:04:07.338Z","avatar_url":"https://github.com/spiffe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![VSecM Logo](https://vsecm.com/vsecm.png)\n\n## VMware Secrets Manager Go SDK\n\nVMware Secrets Manager Go SDK is a Go client library for accessing the\nVMware Secrets Manager API. It is a part of the \n[VMware Secrets Manager](https://vsecm.com/) project.\n\n## Quick Start\n\nYou can use the SDK to interact with the VMware Secrets Manager API.\n\nHere is a simple example to get started:\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"time\"\n  \n  \"github.com/spiffe/vsecm-sdk-go/sentry\"\n)\n\nfunc main() {\n  for {\n    // Fetch the secret bound to this workload\n    // using VMware Secrets Manager Go SDK:\n    data, err := sentry.Fetch()\n\n    if err != nil {\n      fmt.Println(\"Failed. Will retry...\")\n    } else {\n      fmt.Println(\"secret: '\", data, \"'\")\n    }\n\n    time.Sleep(5 * time.Second)\n  }\n}\n```\n\nIf your application is configured to consume secrets from VMware Secrets Manager,\nthen the above code will fetch the secret bound to the workload every 5 seconds.\n\nHere is a sample `Deployment` manifest for the above code:\n\n```yaml\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: example\n  namespace: default\n  labels:\n    app.kubernetes.io/name: example\nspec:\n  replicas: 1\n  selector:\n    matchLabels:\n      app.kubernetes.io/name: example\n  template:\n    metadata:\n      labels:\n        app.kubernetes.io/name: example\n    spec:\n      serviceAccountName: example\n      containers:\n      - name: main\n        image: vsecm/example-using-sdk-go:latest\n        volumeMounts:\n        - name: spire-agent-socket\n          mountPath: /spire-agent-socket\n          readOnly: true\n        env:\n        - name: SPIFFE_ENDPOINT_SOCKET\n          value: unix:///spire-agent-socket/spire-agent.sock\n      volumes:\n      - name: spire-agent-socket\n        csi:\n          driver: \"csi.spiffe.io\"\n          readOnly: true\n```\n\n## Documentation\n\nFor more information about **VMware Secrets Manager** Go SDK,\nsee the [official documentation][ducks].\n\n[ducks]: https://vsecm.com/documentation/usage/sdk/\n\n## Project Structure\n\nThis project uses a slimmed down versions of the parent project's codebase.\n\n* `./sdk/core/*` is a slimmed-down copy of the parent project's `./core/*`.\n* `./sdk/lib/*` is a slimmed-down copy of the parent project's `./lib/*`.\n\n* `./sentry` and `/.startup` are the main entry points for the SDK.\n\n## Why Copy the Codebase?\n\nAs the Go experts say: \"*A little copying is better than a little dependency.*\"\n\nThe reason we copied the codebase is to keep the SDK self-contained and \nisolated.\n\n## Contributing\n\nFollow the main project's [contribution guidelines][contributing].\n\n[contributing]: CONTRIBUTING.md\n\n## Code of Conduct\n\nVMware Go SDK follows [SPIFFE Code of Conduct][coc]\n\n[coc]: https://github.com/spiffe/spiffe/blob/main/CODE-OF-CONDUCT.md\n\n## License\n\n[Apache 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspiffe%2Fvsecm-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspiffe%2Fvsecm-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspiffe%2Fvsecm-sdk-go/lists"}