Skip to content

feat(secrets): resolve ZEPH_GONKA_PRIVATE_KEY and ZEPH_GONKA_ADDRESS from vault #3608

@bug-ops

Description

@bug-ops

Part of epic #3602.

Scope

Wire the two new gonka vault keys through the secret resolver so they are available to the provider factory at startup.

Files to modify

  • crates/zeph-config/src/root.rs:143 — add to ResolvedSecrets:
    pub gonka_private_key: Option<Secret>,
    pub gonka_address: Option<Secret>,
  • crates/zeph-core/src/config.rs — after the existing ZEPH_GEMINI_API_KEY resolution block, read both keys from the vault and populate the fields. Log at INFO when both are present.

Acceptance

  • cargo nextest run -p zeph-core -E 'test(vault)' covers the new fields with a mock vault.
  • New unit test: when only ZEPH_GONKA_PRIVATE_KEY is set, address remains None (derivation happens in the provider factory, not the resolver).
  • cargo nextest run --workspace --features full --lib --bins green.
  • CHANGELOG.md [Unreleased] documents the new vault keys.

Depends on

#5.

Size

S (~1.5h)

Metadata

Metadata

Assignees

Labels

P2High value, medium complexityconfigConfiguration file changesenhancementNew feature or requestsecuritySecurity-related issuesize/SSmall PR (11-50 lines)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions