bitwarden

package
v0.9.21 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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