Merge pull request #8294 from influxdata/cjl-cli-redact-password-history
Cherry Pick sanitize passwords in CLI historypull/8297/head^2
commit
e6e5968c3a
|
@ -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.
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue