configcore

package
v0.0.0-...-043add5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package configcore is the platform composition module for the configcore Cell. It implements composition.CellModule and wires all configcore-specific dependencies from composition.SharedDeps.

This is a composition-root-layer package: it may import cells/, adapters/, and cellmodules/cellsecrets/. It must NOT be imported by cells/, runtime/, or adapters/.

Key provider routing

The configcore key provider is self-built from env + SharedDeps.MetricsProvider (post-#885 vault is client_golang-free in non-test code, so cellmodules/configcore can own adapters/vault.TransitMetrics construction directly). The key provider and stale-cipher / eventbus-cache collectors are all built from the kernel MetricsProvider via runtime/observability/metrics without importing client_golang. cmd/corebundle no longer supplies ConfigKeyProvider; SharedDeps is now fully cell-agnostic. Use WithKeyProviderOverride in tests to inject a fake KeyProvider.

ref: uber-go/fx fx.Module("configcore", ...) — self-contained module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module(opts ...ModuleOption) composition.CellModule

Module returns a composition.CellModule that wires the configcore Cell.

Pass WithKeyProviderOverride in tests that inject a fake KeyProvider. In production the key provider is self-built from env + SharedDeps.MetricsProvider.

Types

type ModuleOption

type ModuleOption func(*module)

ModuleOption configures a configcore module.

func WithKeyProviderOverride

func WithKeyProviderOverride(kp kcrypto.KeyProvider) ModuleOption

WithKeyProviderOverride injects a pre-built KeyProvider, bypassing env-based construction. Used by tests to inject a fake KeyProvider.

Jump to

Keyboard shortcuts

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