-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Remove full DSNs from exception messages #49072
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
Conversation
8258695
to
8afc181
Compare
/cc @NicolasCARPi also FYI since we discussed about that privately. |
8afc181
to
1cbd95e
Compare
Thanks everyone 👍 :) |
} | ||
|
||
if ($params['redis_cluster'] && isset($params['redis_sentinel'])) { | ||
throw new InvalidArgumentException(sprintf('Cannot use both "redis_cluster" and "redis_sentinel" at the same time: "%s".', $dsn)); | ||
throw new InvalidArgumentException('Cannot use both "redis_cluster" and "redis_sentinel" at the same time.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:
has been changed to .
, it looks like it breaks some tests: https://github.com/symfony/symfony/actions/runs/3988999209/jobs/6840883282#step:11:78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fix this in GH-49080
I agree |
This PR was merged into the 5.4 branch. Discussion ---------- Remove full DSNs from exception messages | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Backporting #49072 to 5.4 as a security-hardening measure. Commits ------- 14e2f67 Remove full DSNs from exception messages
Follow up of #49065
We should be careful when reviewing notifier bridges, to ensure that transports'
__toString()
don't embed any secrets. /cc @OskarStark