Describe the enhancement:
The elastic-agent diagnostics collect command creates an archive that config files that have secret/sensitive data.
These fields should be redacted before being written to the archive.
api_key: "<REDACTED>"
key_passphrase: "<REDACTED>"
access_api_key: "<REDACTED>"
Additionally the private key of a cert should be redacted if it's inlined in the config and not a path to a file.
Describe the enhancement:
The
elastic-agent diagnostics collectcommand creates an archive that config files that have secret/sensitive data.These fields should be redacted before being written to the archive.
Additionally the private key of a cert should be redacted if it's inlined in the config and not a path to a file.