You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a configuration that users the .env provider with a configuration containing any
variable that mapss to the empty string
FOO=""
Redaction should ignore the variable.
Current Behavior
$ cat test.txt
This is a test
$ cat test.txt| teller redact
**REDACTED**T**REDACTED**h**REDACTED**i**REDACTED**s**REDACTED****REDACTED**i**REDACTED**s**REDACTED****REDACTED**a**REDACTED****REDACTED**t**REDACTED**e**REDACTED**s**REDACTED**t**REDACTED**
Possible Solution
Preprocess and remove variables that expand to the empty string.
Steps to Reproduce
Create a .teller.yml with an env provider as above
Create a non empty test.txt file as above
Redact the file with teller
Every character will contain an unwanted **REDACTED**
Context
Ideally, environment variables should not expand to the empty string - but this will not always be practicable or possible
uname -a | teller redact
Darwin **REDACTED** 22.6.0 Darwin Kernel Version 22.6.0: Wed Oct 4 21:25:26 PDT 2023; root:xnu-8796.141.3.701.17~4/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered:
Expected Behavior
Given a configuration that users the .env provider with a configuration containing any
variable that mapss to the empty string
FOO=""
Redaction should ignore the variable.
Current Behavior
Possible Solution
Preprocess and remove variables that expand to the empty string.
Steps to Reproduce
.teller.yml
with an env provider as abovetest.txt
file as above**REDACTED**
Context
Ideally, environment variables should not expand to the empty string - but this will not always be practicable or possible
Specifications
$ teller version
The text was updated successfully, but these errors were encountered: