10000 [Messenger] [AMQP] Do not leak any credentials when connection fails by ruudk · Pull Request #42707 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Messenger] [AMQP] Do not leak any credentials when connection fails #42707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

ruudk
Copy link
Contributor
@ruudk ruudk commented Aug 24, 2021
Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
Doc PR

I noticed that when the connection to AMQP fails for whatever reason all the DSN credentials are leaked.

Aug 24 15:58:40 CRITICAL: Error thrown while running command "messenger:consume async". 
Message: "Could not connect to the AMQP server. Please verify the provided DSN. 
({"host":my-hostname-on-some-server","port":my-port,"vhost":"the-real-vhost",
"login":"the-real-username","password":"********"})

Yes, the password is masked. But it still leaks the server, port, username and vhost.

I think these things should be private and not be logged to a logger server or error capture service.

@ruudk ruudk requested a review from sroze as a code owner August 24, 2021 14:50
@carsonbot carsonbot changed the title [AMQP] [Messenger] Do not leak any credentials when connection fails [Messenger] [AMQP] Do not leak any credentials when connection fails Aug 24, 2021
I noticed that when the connection to AMQP fails for whatever reason all the DSK credentials are leaked.

Yes, the password is masked. But it still leaks the server, port and username.

I think these things should be private and not be logged to a logger server or error capture service.
@fabpot
Copy link
Member
fabpot commented Aug 25, 2021

Thank you @ruudk.

@fabpot fabpot merged commit d336926 into symfony:5.3 Aug 25, 2021
@fabpot fabpot mentioned this pull request Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0