Skip to content

vaultenv secrets file parsing issues #148

@Riscky

Description

@Riscky

If one creates a secrets file like this:

VERSION 2

mount secret
example#secret

and run vaultenv with this secret file, it will not load any of the secrets defined beyond the mount statement.
This is unexpected behavior, I would expect a parse error (preferably with a suggestion on how to fix the file).
If VERSION is written with lowercase letters, we do get a parse error:

[ERROR] example.secrets:1:8:
  |
1 | version 2
  |        ^
unexpected space
expecting '#' or path component

If any other lowercase string is put on a single line (without # or /), we get the same behavior: any secrets below it are secretly ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions