{"id":13620089,"url":"https://github.com/1Password/connect-sdk-go","last_synced_at":"2025-04-14T19:30:51.676Z","repository":{"id":37429461,"uuid":"317332626","full_name":"1Password/connect-sdk-go","owner":"1Password","description":"Go SDK for 1Password Connect","archived":false,"fork":false,"pushed_at":"2024-12-12T17:14:30.000Z","size":262,"stargazers_count":162,"open_issues_count":11,"forks_count":21,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-04-14T02:58:41.228Z","etag":null,"topics":["1password","1password-connect","connect-sdk","go","golang","secrets-management"],"latest_commit_sha":null,"homepage":"https://developer.1password.com/docs/connect","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/1Password.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2020-11-30T20:03:37.000Z","updated_at":"2025-04-04T02:26:52.000Z","dependencies_parsed_at":"2024-05-28T20:03:03.989Z","dependency_job_id":"c3956577-6925-4a28-8995-c04e8f41c807","html_url":"https://github.com/1Password/connect-sdk-go","commit_stats":{"total_commits":146,"total_committers":20,"mean_commits":7.3,"dds":0.7054794520547945,"last_synced_commit":"336b23f33782b19e6ca811ed7c61906272c8440d"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fconnect-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fconnect-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fconnect-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fconnect-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1Password","download_url":"https://codeload.github.com/1Password/connect-sdk-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813789,"owners_count":21165633,"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":["1password","1password-connect","connect-sdk","go","golang","secrets-management"],"created_at":"2024-08-01T21:00:52.080Z","updated_at":"2025-04-14T19:30:51.657Z","avatar_url":"https://github.com/1Password.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"\u003c!-- Image sourced from https://blog.1password.com/introducing-secrets-automation/ --\u003e\n\u003cimg alt=\"\" role=\"img\" src=\"https://blog.1password.com/posts/2021/secrets-automation-launch/header.svg\"/\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e1Password Connect SDK for Go\u003c/h1\u003e\n  \u003cp\u003eAccess your 1Password items in your Go applications through your self-hosted \u003ca href=\"https://developer.1password.com/docs/connect\"\u003e1Password Connect server\u003c/a\u003e.\u003c/p\u003e\n  \u003ca href=\"#-quickstart\"\u003e\n    \u003cimg alt=\"Get started\" src=\"https://user-images.githubusercontent.com/45081667/226940040-16d3684b-60f4-4d95-adb2-5757a8f1bc15.png\" height=\"37\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\nThe 1Password Connect Go SDK provides access to the [1Password Connect](https://developer.1password.com/docs/connect) API, to facilitate communication with the Connect server hosted on your infrastructure and 1Password. The library is intended to be used by your applications, pipelines, and other automations to simplify accessing items stored in your 1Password vaults.\n\n## ✨ Quickstart\n\n1. Download and install the 1Password Connect Go SDK:\n\n   ```sh\n   go get github.com/1Password/connect-sdk-go\n   ```\n\n2. Export the `OP_CONNECT_HOST` and `OP_CONNECT_TOKEN` environment variables:\n\n   ```sh\n   export OP_CONNECT_HOST=\u003cyour-connect-host\u003e \u0026\u0026 \\\n       export OP_CONNECT_TOKEN=\u003cyour-connect-token\u003e\n   ```\n\n3. Use it in your code\n\n   - Read a secret:\n\n     ```go\n     import \"github.com/1Password/connect-sdk-go/connect\"\n\n     func main () {\n         client := connect.NewClientFromEnvironment()\n         item, err := client.GetItem(\"\u003citem-uuid\u003e\", \"\u003cvault-uuid\u003e\")\n         if err != nil {\n             log.Fatal(err)\n         }\n     }\n     ```\n\n   - Write a secret:\n\n     ```go\n     import (\n         \"github.com/1Password/connect-sdk-go/connect\"\n         \"github.com/1Password/connect-sdk-go/onepassword\"\n     )\n\n     func main () {\n         client := connect.NewClientFromEnvironment()\n         item := \u0026onepassword.Item{\n             Title:    \"Secret String\",\n             Category: onepassword.Login,\n             Fields: []*onepassword.ItemField{{\n                 Value: \"mysecret\",\n                 Type:  \"STRING\",\n             }},\n         }\n\n         postedItem, err := client.CreateItem(item, \"\u003cvault-uuid\u003e\")\n         if err != nil {\n             log.Fatal(err)\n         }\n     }\n     ```\n\nFor more examples, check out [USAGE.md](USAGE.md).\n\n## 💙 Community \u0026 Support\n\n- File an [issue](https://github.com/1Password/connect-sdk-go/issues) for bugs and feature requests.\n- Join the [Developer Slack workspace](https://join.slack.com/t/1password-devs/shared_invite/zt-1halo11ps-6o9pEv96xZ3LtX_VE0fJQA).\n- Subscribe to the [Developer Newsletter](https://1password.com/dev-subscribe/).\n\n## 🔐 Security\n\n1Password requests you practice responsible disclosure if you discover a vulnerability.\n\nPlease file requests by sending an email to bugbounty@agilebits.com.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1Password%2Fconnect-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1Password%2Fconnect-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1Password%2Fconnect-sdk-go/lists"}