Documentation
¶
Overview ¶
Package onepassword adds 1Password service account support to Scriptling's onepassword secret provider. Import it for its side effect:
import _ "github.com/paularlott/scriptling-onepassword"
A provider config with service_account_token then resolves through the 1Password Go SDK instead of 1Password Connect. It lives outside Scriptling because the SDK is large (about 14 MB); only binaries that import it link it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( IntegrationName = "Scriptling" IntegrationVersion = build.Version )
IntegrationName and IntegrationVersion identify the integration to 1Password. Embedding applications may set them before first use.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider resolves secrets with a 1Password service account through the 1Password Go SDK — no Connect server. Paths and fields follow the Connect provider (vault/item by name or id, the same field matching and default-field fallbacks), so switching a provider from Connect to a service account needs no script changes.
func New ¶
func New(cfg secretprovider.Config) (*Provider, error)
New creates a 1Password service account provider from cfg.