Skip to content

Conversation

mashhurs
Copy link
Contributor

@mashhurs mashhurs commented May 23, 2023

When using config debug option, tls_certificate_password value can be seen in the logs.
This PR intends to change tls_certificate_password type to password to protect from leaks in the logs.

After investigation, it was clear that tls_certificate_password and tls_certificate_password are not used at all, absolote. Thus, decided to remove them.

@mashhurs mashhurs self-assigned this May 23, 2023
@mashhurs mashhurs added the bug Something isn't working label May 23, 2023

# TLS certificate password
config :tls_certificate_password, :validate => :string, :obsolete => "This setting is obsolete. Use ssl_certificate_password instead"
config :tls_certificate_password, :validate => :password, :obsolete => "This setting is obsolete. Use ssl_certificate_password instead"
Copy link
Contributor Author

@mashhurs mashhurs May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we even remove tls_certificate_path and tls_certificate_password? They are not used in the source at all, replaced by ssl_certificate_path and ssl_certificate_password.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, lets remove them since they are obsolete now.

@mashhurs mashhurs changed the title Change TLS certificate password type to to protect leaking in logs. Remove unused absolete TLS params. May 27, 2023
@mashhurs mashhurs requested a review from roaksoax May 30, 2023 00:28
@roaksoax
Copy link

lgtm!

@mashhurs mashhurs merged commit 1a2bb10 into logstash-plugins:main May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

2 participants