Skip to content

Document empty env var semantics in password resolution #12

Description

@f3rdy

Description

In password.py line 29, if value: treats an empty string "" the same as "not set". This means VAULT_PASS="" falls through to the next source — potentially surprising behavior.

Proposed Solution

  • Document this behavior in README.md and/or config reference
  • Consider using if value is not None: to distinguish between "not set" and "empty"
  • Or keep current behavior but add a code comment explaining the choice

Files

  • src/vaultctl/password.py (line 29)

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