keymanager

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveEncryptionKey

func ResolveEncryptionKey(envKey string, logger log.Logger) (string, error)

ResolveEncryptionKey determines the encryption key to use.

Resolution logic:

  1. No env var + no stored key → generate, store, and return
  2. No env var + stored key → load and return
  3. Env var + no stored key → store env value and return
  4. Env var matches stored → return
  5. Env var mismatches stored → return error with instructions

Types

This section is empty.

Jump to

Keyboard shortcuts

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