omni-onepassword

module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2026 License: MIT

README

Omni-OnePassword

Go CI Go Lint Go SAST Go Report Card Docs License

1Password provider packages for PlexusOne libraries.

Modules

This repository contains Go modules for 1Password integrations:

Module Description Install
omnivault 1Password provider for omnivault go get github.com/plexusone/omni-onepassword/omnivault

Quick Start

OmniVault - 1Password Provider
import (
    op "github.com/plexusone/omni-onepassword/omnivault"
)

// Create provider (uses OP_SERVICE_ACCOUNT_TOKEN env var)
provider, err := op.NewFromEnv()
if err != nil {
    log.Fatal(err)
}
defer provider.Close()

// Get a secret
secret, err := provider.Get(ctx, "Private/API Keys/github-token")
fmt.Println("Token:", secret.Value)

// Get multi-field item
creds, err := provider.Get(ctx, "Private/Database/prod")
fmt.Println("Username:", creds.Fields["username"])
fmt.Println("Password:", creds.Fields["password"])

See omnivault/README.md for full documentation including path formats, batch operations, and OmniVault resolver integration.

Authentication

Set the OP_SERVICE_ACCOUNT_TOKEN environment variable with your 1Password service account token:

export OP_SERVICE_ACCOUNT_TOKEN="ops_..."

Create a service account at: https://my.1password.com/developer-tools/infrastructure-secrets/serviceaccount/

License

MIT

Directories

Path Synopsis
Package onepassword provides an OmniVault provider for 1Password.
Package onepassword provides an OmniVault provider for 1Password.
examples/basic command
Example: Basic usage of omni-onepassword/omnivault
Example: Basic usage of omni-onepassword/omnivault
examples/resolver command
Example: Using omni-onepassword/omnivault with OmniVault resolver
Example: Using omni-onepassword/omnivault with OmniVault resolver
register
Package register provides automatic registration of the 1Password provider with omnivault's provider registry.
Package register provides automatic registration of the 1Password provider with omnivault's provider registry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL