mway08 / owasp-esapi-java

Automatically exported from code.google.com/p/owasp-esapi-java
Other
0 stars 0 forks source link

Allow for selective filtering for configuration startup logging #96

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
That code was designed to not disclose all configuration variables. It 
would filter out any parameter with "Master" in the name, so the MasterSalt 
has never (?) been printed during the parsing of the configuration.

That being said, I don't think that was a great solution either. I would 
love to see a boolean configuration variable indicating whether or not to 
dump the configuration to the console AND a globbing configuration variable 
indicating what to never print. Something like....

General.PrintConfiguration = true
General.NeverPrint = "Master*, General*"

Original issue reported on code.google.com by manico.james@gmail.com on 25 Jan 2010 at 1:11

GoogleCodeExporter commented 9 years ago
There is already a boolean property called "ESAPI.printProperties"
that does what the first cuggestd option (General.PrintConfiguration)
would do.  People may have never noticed it because I had it default
to 'true' for backward compatibility reasons.  However it is set to
'false' in src/test/resources/.esapi/ESAPI.properties so the ESAPI
properties don't print out over and over again while running the
ESAPI JUnit tests. I just found it too annoying to having to go through
that all that output over and over again. It made it difficult to find
find some specific console output that output that you *were* looking
for. I figured backward compatibility would not be an issue with the
JUnit tests which is why it is set to 'false' for the tests but 'true'
for the main source tree that is deployed with the ESAPI jar.

Original comment by kevin.w.wall@gmail.com on 25 Jan 2010 at 2:04

GoogleCodeExporter commented 9 years ago

Original comment by manico.james@gmail.com on 25 Jan 2010 at 10:19

GoogleCodeExporter commented 9 years ago

Original comment by manico.james@gmail.com on 1 Nov 2010 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by chrisisbeef on 20 Nov 2010 at 10:02

GoogleCodeExporter commented 9 years ago

Original comment by manico.james@gmail.com on 29 May 2012 at 3:24