Merge pull request #8294 from influxdata/cjl-cli-redact-password-history

Cherry Pick sanitize passwords in CLI history
pull/8297/head^2
Cory LaNou 2017-04-14 13:38:10 -05:00 committed by GitHub
commit e6e5968c3a
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
### Bugfixes
- [#8190](https://github.com/influxdata/influxdb/issues/8190): History file should redact passwords before saving to history.
- [#8187](https://github.com/influxdata/influxdb/pull/8187): Several statements were missing the DefaultDatabase method
- [#8022](https://github.com/influxdata/influxdb/issues/8022): Segment violation in models.Tags.Get
- [#8155](https://github.com/influxdata/influxdb/pull/8155): Simplify admin user check.

View File

@ -221,6 +221,7 @@ func (c *CommandLine) mainLoop() error {
return e
}
if err := c.ParseCommand(l); err != ErrBlankCommand && !strings.HasPrefix(strings.TrimSpace(l), "auth") {
l = influxql.Sanitize(l)
c.Line.AppendHistory(l)
c.saveHistory()
}