Merge pull request #5665 from kwilczynski/remove-sts-token-from-logging

amazon: Remove Session Token (STS) from being shown in the log.
This commit is contained in:
Rickard von Essen 2017-12-10 06:50:42 +01:00 committed by GitHub
commit 63f791570a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -173,7 +173,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
return warns, errs return warns, errs
} }
log.Println(common.ScrubConfig(b.config, b.config.AccessKey, b.config.SecretKey)) log.Println(common.ScrubConfig(b.config, b.config.AccessKey, b.config.SecretKey, b.config.Token))
return warns, nil return warns, nil
} }

View File

@ -80,7 +80,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
return nil, errs return nil, errs
} }
log.Println(common.ScrubConfig(b.config, b.config.AccessKey, b.config.SecretKey)) log.Println(common.ScrubConfig(b.config, b.config.AccessKey, b.config.SecretKey, b.config.Token))
return nil, nil return nil, nil
} }

View File

@ -95,7 +95,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
return nil, errs return nil, errs
} }
log.Println(common.ScrubConfig(b.config, b.config.AccessKey, b.config.SecretKey)) log.Println(common.ScrubConfig(b.config, b.config.AccessKey, b.config.SecretKey, b.config.Token))
return nil, nil return nil, nil
} }

View File

@ -73,7 +73,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
return nil, errs return nil, errs
} }
log.Println(common.ScrubConfig(b.config, b.config.AccessKey, b.config.SecretKey)) log.Println(common.ScrubConfig(b.config, b.config.AccessKey, b.config.SecretKey, b.config.Token))
return nil, nil return nil, nil
} }

View File

@ -166,7 +166,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
return nil, errs return nil, errs
} }
log.Println(common.ScrubConfig(b.config, b.config.AccessKey, b.config.SecretKey)) log.Println(common.ScrubConfig(b.config, b.config.AccessKey, b.config.SecretKey, b.config.Token))
return nil, nil return nil, nil
} }

View File

@ -91,7 +91,7 @@ func (p *PostProcessor) Configure(raws ...interface{}) error {
return errs return errs
} }
log.Println(common.ScrubConfig(p.config, p.config.AccessKey, p.config.SecretKey)) log.Println(common.ScrubConfig(p.config, p.config.AccessKey, p.config.SecretKey, p.config.Token))
return nil return nil
} }