-
Notifications
You must be signed in to change notification settings - Fork 700
[5.x] Prevent using the reserved horizon Redis connection name
#1615
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
[5.x] Prevent using the reserved horizon Redis connection name
#1615
Conversation
horizon Redis connectionhorizon Redis connection name
|
Can you just check in the service provider only? |
|
Done @taylorotwell. |
|
Hello @amirhshokri this seems to be giving issues when using |
|
This PR should be reversed. There is no real way to fix this without busting or bypassing the cache. Perhaps the config:cache code can allow for such checks to be registered somewhere and then executed upon caching. |
|
Hi @amirhshokri. Thanks for this last commit, it was breaking my route:clear command. |
|
@donnyxray is totally right, this should be reverted. Even version 5.35.1 is not fixing the problem when you have the config cached in production. Still the error |
|
It was using a hidden env variable, it's fine now. Thank you for the fix! |

Summary
This PR adds the
checkIsReservedConnectionNamemethod to prevent accidental use of the reservedhorizonRedis connection. Ifhorizonis passed as a connection name, or if a conflicting configuration exists, the method throws anInvalidArgumentExceptionduring the Laravel app boot process.Why?
This change ensures safer configuration and prevents accidental misconfiguration.