Allow environment variable resolution in configuration file #548
No reviewers
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic!548
Loading…
Reference in a new issue
No description provided.
Delete branch ":configuration-env-resolve"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
be resolved
values if variable is not present in environment
by default
Resolves: #546
- all string fields containing an environment variable like ${FOO} will be resolved - supported format ${FOO}, ${FOO:-bar} and ${FOO-bar} to allow default values if variable is not present in environment - add --no-env argument for CLI to disable the feature which is enabled by default Resolves: #546This looks great. And tests too! Thank you so much for taking the time to do this when all you needed was the database password from the environment. Clever use of the negative look-ahead for an escaped
$.. I wouldn't have thought of that. Heads up that I may rename the--no-envflag for consistency with other borgmatic flags. And I can write up some documentation when I get a chance.