configuration - Typesafe config secure rendeing -


i have following code

log(config.render()) 

however if have passwords in config they'll appear in log. there easy way eliminate this? looking that

log(config.map { if ("password" in it.key.tolowercase()) "***" else it.value }     .render()) 

for clear solution this

val contenthiddenvalue = configvaluefactory.fromanyref("***", "content hidden") log.info(config.root()         .withoutkey("security")         .withvalue("security", contenthiddenvalue)         .render()) 

the obvious disadvantage hides exact config subtree


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -