[ 
https://issues.apache.org/jira/browse/GEODE-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16805303#comment-16805303
 ] 

ASF subversion and git services commented on GEODE-4318:
--------------------------------------------------------

Commit 23345c58346ae2c4ef4df157f3f7bc57078894bb in geode's branch 
refs/heads/feature/GEODE-6574-cms-list-members from Jens Deppe
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=23345c5 ]

GEODE-4318: Ensure that passwords are correctly redacted in the gfsh history 
file (#3372)

- Remove redact method in GfshHistory in favor of
  ArgumentRedactor.redact

Co-authored-by: Jens Deppe <[email protected]>
Co-authored-by: Donal Evans <[email protected]>


> gfsh does not redact passwords from history if given without =
> --------------------------------------------------------------
>
>                 Key: GEODE-4318
>                 URL: https://issues.apache.org/jira/browse/GEODE-4318
>             Project: Geode
>          Issue Type: Bug
>          Components: gfsh, security
>            Reporter: Patrick Rhomberg
>            Priority: Major
>             Fix For: 1.10.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The {{ArgumentRedactor}} expects arguments in the form {{--option=value}} and 
> detects what should be redacted based on {{option}}.  However, when given as 
> {{--option value}}, the terms {{option}} and {{value}} will be parsed 
> separately and {{value}} will not be redacted.
> As a consequence, any {{gfsh}} command executed with {{[command] --user 
> username --password myPassword}} will be visible in plaintext in command 
> history.
> ----
> Update: Upon a quick investigation, it appears that this and GEODE-3452 both 
> can be addressed by creating / overriding and redacting in {{GfshHistory}}'s 
> implementation of {{jline.console.history.History::add}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to