bitwarden

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package bitwarden resolves KindBitwarden secrets by fetching encrypted vault data from Vaultwarden/Bitwarden and decrypting client-side.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseURL            string
	Email              string
	MasterPassword     string
	ClientID           string
	ClientSecret       string
	SyncInterval       time.Duration
	InsecureSkipVerify bool
	DeviceID           string
}

Config holds Vaultwarden/Bitwarden connection settings. Secret fields (MasterPassword, ClientSecret) must be supplied by the composition layer from env — never hard-coded.

type Resolver

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

Resolver syncs and decrypts vault items into an in-memory cache.

func New

func New(cfg Config) *Resolver

New constructs a Bitwarden resolver and starts a background sync loop.

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, ref secret.Ref) ([]byte, error)

Resolve returns the plaintext value for ref.Path = "<itemNameOrID>[/<field>]".

Jump to

Keyboard shortcuts

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