Skip to content

Add config validation for .vaultctl.yml #7

Description

@f3rdy

Description

load_config() in config.py does not validate the configuration file. Unknown keys are silently ignored, and typos (e.g. pasword: instead of password:) are not detected.

Proposed Solution

  • Warn on unknown top-level keys
  • Validate that vault_file and keys_file are strings
  • Validate password sub-keys (env, file, cmd)
  • Provide clear error message for invalid config

Files

  • src/vaultctl/config.py (function load_config)

Priority

P2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions