channable / channable/vaultenv

`vaultenv` secrets file parsing issues

Open
#148 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
466
Forks
29
Avg merge
26m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the supplied secrets file and the vaultenv command, then trace the secret-file parser and its existing error handling. Done means a standalone invalid line such as `VERSION 2` or another lowercase string no longer silently stops parsing: vaultenv should report a parse error with a useful correction suggestion.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.