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 constructed in cmd/corebundle (which may import adapters/vault and github.com/prometheus/client_golang) and passed via composition.SharedDeps.ConfigKeyProvider, so cellmodules/configcore never imports those adapter-specific packages. This is the last cmd-supplied configcore dependency; its removal is gated on #885 (vault TransitMetrics → kernel MetricsProvider). The stale-cipher and eventbus-cache collectors were moved here (#1413): they route through the kernel MetricsProvider, so this module self-builds them from SharedDeps.MetricsProvider via runtime/observability/metrics without importing client_golang.
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. The key provider and stale-cipher callback are read from composition.SharedDeps (populated by cmd/corebundle).
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.