Replies: 1 comment 7 replies
-
Hi @kjorand! Thanks for posting this here This sounds like a sensible feature to add, and I appreciate the thought you've put into possible implementations :) I totally agree about the need to explicitly mark some variables as safe, rather than the other way around. I can see a clear path forward using your suggestion, but I'm also interested in exploring some alternative ways we could achieve the same results. Personally, I feel a bit uncomfortable about marking safe/unsafe variables with comments (mostly because the way that people use comments varies a lot from user-to-user, project-to-project, and I don't want to mandate the style that people follow within their files any more than I am already!). I'd feel more comfortable separating safe/unsafe variables into totally separate For example, that might look something like:
the
and
If the tool knows that it should look for a What do you think? Would an approach like this work for you? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First of ... love your work @harrisonpim !
Thanks a lot !
It was exactly what I was looking into, planning to write jsut a simple script ... but then that whole package makes it simpler to use / reuse !
Then ... In a project we have quiet a few variables that are non-secret (more like defining how it should behave/almost config variables). I'd like those to still be pushed ... I was thinking of a specific syntax where preceding a line with
#SAFE
(could be#public
) on the previous line would stop stripping it. We have already some comments describing function and working of them ... so adding that specific comment shouldn't be a big hassle ...Also, taking the approach where you have to mark the ones that are safe to push ... seems pretty reasonable to me security wise (unlike having to prefix the secret ones where ... you ... could forget to mark a secret) ... But I get it that ... then it's a more "lightenend" filtering ...
Also it's so easy anyway to comment out a variable and it's actually a secret ... [not really sure how handle that security risk however since ... we usually definitely want the comments in the stripped out version ... ]
I'm planning to do it anyway on our repo ... but wanted to check on you if that'd be of any interest to you (in which case I'd follow the "CONTRIBUTING" guide ... else not necessarily).
I'm also thinking it could be possible to have the two different filters in one "package" and having the ability to install any of the two and so on ... (could be of interest to you / the community) ... but that I don't have the knowledge (yet) nor am willing to do...
So yeah in any case ... let me know !
Beta Was this translation helpful? Give feedback.
All reactions