Releases: 1Password/onepassword-sdk-go
Release 0.1.1
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:
- Securely load secrets from 1Password into your code with secret references.
- Read, write, and update secrets stored in 1Password, including passwords, API keys, and one-time passwords.
- List items and vaults in a 1Password account.
Release 0.1.0-beta.14
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
Release 0.1.0-beta.12
This release includes:
- Support for reading and writing OTP field information such as the TOTP code and seed, through the Item API.
- The
Update
operation is renamed toPut
to create more realistic expectation with regard to the effect of the operation. - The item creation operation now takes as input
ItemCreateParams
. - Support for a few more field types: Phone, Url, CreditCardType.
NOTE This release contains breaking changes:
Wherever you were using
updatedItem, err := client.Items.Update(context.Background(), newItem)
you must now use
updatedItem, err := client.Items.Put(context.Background(), newItem)
and wherever you were using
item := onepassword.Item{
ID: "",
Title: "",
Category: "",
VaultID: "",
Fields: nil,
Sections: nil,
}
createdItem, err := client.Items.Create(context.Background(), item)
you must now use
params := onepassword.ItemCreateParams {
Title: "",
Category: "",
VaultID: "",
Fields: nil,
Sections: nil,
}
createdItem, err := client.Items.Create(context.Background(), params)
Public beta 0.1.0-beta.11
This release fixes a bug where the Secrets.Resolve
function was not be able to resolve secret references containing periods.
Public beta 0.1.0-beta.10
This release removes some misguiding code comments.
Public Beta v0.1.0-beta.9
This release fixes two bugs.
- [FIXED] The Go SDK no longer errors out for function calls that are executed after an unsuccessful operation.
- [IMPROVED] Item editing now contains additional validation to ensure item icons are not removed upon updating.
Public Beta v0.1.0-beta.7
The 1Password Go SDK offers programmatic read access to your secrets in 1Password in an interface native to Go. This version includes the following features:
-
[NEW] Resolving secret references
-
[NEW] Reading, creating, updating and deleting items
-
[FIXED] This release of the Go SDK fixes a bug that caused unsupported item fields to be removed from an item (but still recoverable via item history) when editing an item via the SDKs. The SDK will now error instead of causing the fields to be deleted.