sealkey

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: AGPL-3.0 Imports: 3 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 sealkey makes each of the store's keys from its master key: HKDF-SHA256 with no salt and one label per use. Every key comes from the master key alone, never from another key, so whoever holds one of them (the row key, say) can make none of the others.

The package holds no key and reads no file or environment.

Index

Constants

View Source
const Len = 32

Len is the size of the master key and of every key made from it.

Variables

This section is empty.

Functions

func Derive

func Derive(master []byte, l Label) ([]byte, error)

Derive makes the key for l from master.

Types

type Label

type Label string

Label names one key made from the master key.

const (
	// Rows seals the records and audit entries of a format-2 store.db;
	// only the migration to format 3 reads it.
	Rows Label = "komando local store v2"
	// RowsV3 seals the records and audit entries of store.db (format 3).
	RowsV3 Label = "komando local store v3"
	// Runtime seals runtime.json. It is the derivation a format-1 store
	// sealed its rows with, so it also opens such a store to upgrade it.
	Runtime Label = "komando local store v1"
	// Values seals each secret value inside its record.
	Values Label = "komando vault entries v1"
	// Tickets signs the tickets of komando's background commands.
	Tickets Label = "komando spawn tickets v1"
	// Policy signs the store's safety rows (sealdb's policy MAC).
	Policy Label = "komando policy v1"
)

Jump to

Keyboard shortcuts

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