Documentation
¶
Overview ¶
Package sqlite implements filament.Secrets over the secrets table in the shared Filament SQLite schema, mirroring secret/postgres.
Index ¶
- type Provider
- func (p *Provider) Delete(ctx context.Context, ref string) error
- func (p *Provider) Name() string
- func (p *Provider) Read(ctx context.Context, ref string) (filament.Secret, error)
- func (p *Provider) RotateSecret(ctx context.Context, ref string, secret filament.Secret) error
- func (p *Provider) Write(ctx context.Context, ref string, secret filament.Secret) error
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 ¶
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 ¶
NewFromEnv constructs a provider from ENCRYPTION_KEY (base64-encoded AES key) and ENCRYPTION_KEY_ID (defaults to "default").
func (*Provider) RotateSecret ¶ added in v0.26.0
RotateSecret updates an existing tenant-owned secret without inserting a row.
Click to show internal directories.
Click to hide internal directories.