Skip to content

BUG: Missing PGPKeySource validation in config #620

@andrinoff

Description

@andrinoff

Describe the bug: PGPKeySource field accepts any string but no validation when loading config.

To reproduce:

  1. Edit config.json, set pgp_key_source: "invalid"
  2. Load config - no error
  3. Later code assumes valid value

Expected behavior: Validate on config load to ensure value is "file" or "yubikey" only.

Additional context:

  • File: config/config.go
  • Severity: Low
  • Fix: Add validation function

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions