Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlite

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package sqlite implements filament.Secrets over the secrets table in the shared Filament SQLite schema, mirroring secret/postgres.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider encrypts secret values with AES-GCM before persisting them.

func New

func New(db *sql.DB, keyID string, key []byte) (*Provider, error)

New constructs a provider over the handle shared with datastore/sqlite.Store (see its DB method). key must be 16, 24, or 32 bytes.

func NewFromEnv

func NewFromEnv(db *sql.DB) (*Provider, error)

NewFromEnv constructs a provider from ENCRYPTION_KEY (base64-encoded AES key) and ENCRYPTION_KEY_ID (defaults to "default").

func (*Provider) Delete

func (p *Provider) Delete(ctx context.Context, ref string) error

Delete removes the secret at ref; deleting a missing ref is a no-op.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the provider identifier.

func (*Provider) Read

func (p *Provider) Read(ctx context.Context, ref string) (filament.Secret, error)

func (*Provider) RotateSecret added in v0.26.0

func (p *Provider) RotateSecret(ctx context.Context, ref string, secret filament.Secret) error

RotateSecret updates an existing tenant-owned secret without inserting a row.

func (*Provider) Write

func (p *Provider) Write(ctx context.Context, ref string, secret filament.Secret) error

Jump to

Keyboard shortcuts

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