Skip to content

Commit

Permalink
Merge pull request #9448 from r-vasquez/bundle-redact-scram
Browse files Browse the repository at this point in the history
rpk: redact SCRAM credentials in debug bundle
  • Loading branch information
twmb authored Mar 15, 2023
2 parents cec0fcd + 726ed2c commit f88655c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/go/rpk/pkg/cli/cmd/debug/bundle/bundle_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,13 @@ func saveConfig(ps *stepParams, conf *config.Config) step {
}
if conf.PandaproxyClient != nil {
redactOtherMap(conf.PandaproxyClient.Other)
conf.PandaproxyClient.SCRAMPassword = &redacted
conf.PandaproxyClient.SCRAMUsername = &redacted
}
if conf.SchemaRegistryClient != nil {
redactOtherMap(conf.SchemaRegistryClient.Other)
conf.SchemaRegistryClient.SCRAMPassword = &redacted
conf.SchemaRegistryClient.SCRAMUsername = &redacted
}

bs, err := yaml.Marshal(conf)
Expand Down

0 comments on commit f88655c

Please sign in to comment.