Skip to content

Releases: 1Password/onepassword-sdk-go

Release 0.2.0

04 Mar 12:49
v0.2.0
28e9f2b
Compare
Choose a tag to compare

1Password Go SDK v0.2.0

NEW

  • File Support: You can now create Document items, attach files to items, delete files from items, and read file contents using the SDK.

IMPROVED

  • Read files using secret references: You can now resolve secret references that point to files attached to 1Password items.
  • Read SSH keys in Open SSH format: You can now use a secret reference to fetch a private key in OpenSSH format. For example: op://vault/<SSH item>/private key?ssh-format=openssh
  • Support for more item field types: You can now create, retrieve, and edit items containing SSH keys, Month-Year and Menu-type fields using the SDK.
  • Read more field types using secret references: You can now resolve secret references that point to information stored in Date, Month/Year, Address, and Reference field types.
  • Improved error messages: The error messages returned by the SDK were improved to be more clear and actionable.

⚠️ BREAKING CHANGE ⚠️

This release contains a breaking change for the Go SDK, where the attributes of client (Vaults, Items, Secrets), as well as the Shares attribute of client.Items should now be accessed through getter methods instead of directly.

This does not affect any code already deployed, and will not take effect in your code-base before explicitly updating to the latest version of the 1Password Go SDK (0.2.0).

To migrate your code which uses prior versions of the 1Password Go SDK to the latest, replace in your application code all occurrences of:

  • client.Items.Shares. with client.Items().Shares().
  • client.Items. with client.Items().
  • client.Vaults. with client.Vaults().
  • client.Secrets. with client.Secrets().

in the SDK function calls.

Release 0.1.7

04 Feb 15:49
v0.1.7
2caa183
Compare
Choose a tag to compare

1Password Go SDK v0.1.7

IMPROVED:

  • The SDK now returns an error with a custom type when it hits the rate limit of the 1Password servers.

FIXED:

  • Using an SDK client in a long-running process no longer causes 401 server responses.

Release 0.1.7-beta.3

16 Jan 13:51
v0.1.7-beta.3
a3db740
Compare
Choose a tag to compare

1Password Go SDK v0.1.7-beta.3

NEW:

  • Support for resolving multiple references: You can now retrieve multiple secrets in batch.

Release 0.1.6

09 Jan 17:09
v0.1.6
ca85122
Compare
Choose a tag to compare

NEW

  • Support for item sharing: You can now create an item sharing link via the 1Password SDKs using the new client.Items.Shares API.
  • Support for item archiving: You can now move items to the archive with the SDKs, using the new client.Items.Archive(vault_uuid, item_uuid) function.

IMPROVED

  • Support for item notes: You can now read, create and edit items with a notes field, accessing it via item.Notes.
  • Support for SSH key attributes in secret references: You can now retrieve an SSH key's public key, key type and fingerprint with client.Secrets.Resolve.
  • Support for additional field types: You can now read, create and edit items with Email (email addresses) and Reference (ID references to other 1Password items) type fields.

FIXED

  • Fix item CRUD flow for the Password item category: Creating or editing a Password item no longer leads to a panic in the Go SDK.
  • Improved field matching logic for secret references: Retrieving a field from the item's default field section is now possible even if there is an identically named field in one of the item's named sections.

Release 0.1.5

03 Dec 15:46
v0.1.5
3bd8390
Compare
Choose a tag to compare

Version 0.1.5 of the 1Password Go SDK brings:

  • Support for generating passwords. You can now generate random, PIN, and memorable passwords using the onepassword.Secrets.GeneratePassword function.
  • Support for item subtitles. Creating and editing an item now sets the subtitle correctly, which is visible in the item preview in all client apps.
  • Support for the Credit Card Number field type. You can now retrieve, create, and edit items containing credit card numbers.

Release 0.1.4

20 Nov 17:10
v0.1.4
45bcf1b
Compare
Choose a tag to compare

The v0.1.4 release of the Go SDK brings:

  • Support for validating secret references. You can now check that a secret reference is formatted correctly without having to resolve it or even authenticate, using the 'ValidateSecretReference' function.

Release 0.1.3

14 Oct 15:04
v0.1.3
1756091
Compare
Choose a tag to compare

The v0.1.3 release of the Go SDK brings:

  • Support for item websites. You can now create, get, and edit websites for autofill within your 1Password items using item CRUD functions.

Release 0.1.2

09 Oct 12:39
v0.1.2
7de60a7
Compare
Choose a tag to compare

The v0.1.2 release of the Go SDK brings:

  • Support for item tags. You can now create, get, and edit tags within your 1Password items using item CRUD functions.
  • Support for fetching one-time password codes using secret references. You can now fetch your TOTP code with the Secrets.Resolve function, using a secret reference for the TOTP field in your item. For example: op://vault/item/field?=attribute=totp

Release 0.1.1

08 Aug 12:19
v0.1.1
55b3e2e
Compare
Choose a tag to compare

This is the v0 release of the 1Password Go SDK.

The 1Password Go SDK allows you to build secrets management integrations that can programmatically access secrets stored in 1Password. With this SDK, you can:

Release 0.1.0-beta.14

06 Aug 13:44
v0.1.0-beta.14
551ef2c
Compare
Choose a tag to compare
Release 0.1.0-beta.14 Pre-release
Pre-release

This release:

  • introduces support for listing items and vaults
  • fixes a bug where concurrent item updates could lead to unexpected overwrites
  • fixes a bug where the SDK was priorly not working with service account tokens generated by the 1Password CLI
  • fixes a bug where the items created by the SDK priorly did not have the password strength set correctly