You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Shawn McKinney (JIRA)" <ji...@apache.org> on 2017/11/16 01:40:00 UTC

[jira] [Resolved] (FC-229) don't ever write service account pws, even to debug log

     [ https://issues.apache.org/jira/browse/FC-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shawn McKinney resolved FC-229.
-------------------------------
    Resolution: Fixed

added new method to Config:
    public String getProperty( String name, boolean nologvalue )

which will mask the value:
            LOG.debug( "getProperty name [{}] value [{}]", name, nologvalue ? "****" : value );

and then used when callers retrieve password values:
                logPw = Config.getInstance().getProperty( LDAP_LOG_POOL_PW, true );


> don't ever write service account pws, even to debug log
> -------------------------------------------------------
>
>                 Key: FC-229
>                 URL: https://issues.apache.org/jira/browse/FC-229
>             Project: FORTRESS
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Shawn McKinney
>            Assignee: Shawn McKinney
>             Fix For: 2.0.1
>
>
> Systems should never write any password value to any log, regardless of whether it is debug mode.  Add boolean option to config.getProperty to mask value written to debug log. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)