fix: trim comments that are not modifers #371
No reviewers
Labels
No Label
bug
build
ci/cd
contributing
design
documentation
duplicate
enhancement
help wanted
invalid
meta
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/abra#371
Loading…
Reference in New Issue
No description provided.
Delete Branch "trim-env-var-comments"
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?
See coop-cloud/organising#505. @cas i was thinking of just removing it altogether? As long as it isn't
# length=...
(or any future modifiers, which the code can adapt to). Does that seem OK?As long as the modifiers don't get into the values coming from the app config (.env) I'm good with them being non-stripped. I should've specified that this has been biting from the app config although I'm sure it has bitten from the compose.yml also.
Oh yeh, indeed, endless footguns on this one 😆 Will try to cover those edge cases.
Gonna close off coop-cloud/organising#496 with tihs as well.
Thanks for the heads up @cas!
OK, this turned into a bit of a whack-a-mole but it seems like the simplest code change is just strip all comments when reading in the environment. Then, when we need comments, e.g. secret length modifiers, we re-read and don't strip. This is an easier mental model to follow in the code. Otherwise, I feel like comments will kinda just be popping up in unwanted places like in coop-cloud/organising#496.
7ad2e347ae
toc249c6ae9c