Skip to content

Parse error on empty secrets file #144

@isomorpheme

Description

@isomorpheme

In a project, I already added some placeholder secrets files that are empty, just to already add a call to vaultenv in automation but without requesting any secrets yet. But the parser chokes on that:

$ touch nothing-to-hide.secrets
$ vaultenv --secrets-file nothing-to-hide.secrets -- echo 'i am an open book'
[ERROR] nothing-to-hide.secrets:1:1:
  |
1 | <empty line>
  | ^
unexpected end of input
expecting "VERSION", newline, or path component

This might be a silly use case, but I think "actually, I don't need any secrets" should still be a valid input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions