-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[HttpKernel] Add ControllerResolver::allowControllers()
to define whi…
#19119
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
Comments
It could be added here: https://symfony.com/doc/current/components/http_kernel.html#2-resolve-the-controller. But it seems really internal. That's why, I'm not 100% sure it has its place in the documentation. Moreover, PR's first sentence is "when one doesn't configure properly their APP_SECRET" and I don't know if it is worth documenting a feature useful when somebody misconfigured its app? 🤔 |
Misconfiguring the app is a fact of life, not some Neverland, it does and will happen. Explaining what happens and how to fix common mistakes doesn't seem like it would be out of place in the docs. |
I agree, but we cannot document everything that may go wrong. But it's a new feature so it could be worth mentioning it. Where would you add this, and how if you have an idea? Because I have no clue here on how to add this 😕 |
The purpose of this feature is to create a sort of "allow list" of what Symfony considers to be a "controller". Up until now, any callable is a controller which is not a good default, this feature allows you to sort of "double opt-in" to say
Any controller marked with the So, I'd say this belongs to wherever Symfony Docs is defining what "a controller" is and how do add one. |
@javiereguiluz that may belong to your addition here 🙂 |
Thank you for this issue. |
Hello? This issue is about to be closed if nobody replies. |
Hey, I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen! |
Let's reopen because this was never documented. |
I think this could be nicely documented in http_cache/esi.rst, section _http_cache-fragments, since FramentListener is the only place where _check_controller_is_allowed is turned on. Next to where we tell about signing I'd say since all this is related to security hardening. |
We created this issue to not forget to document this new feature. We would really appreciate if you can help us with this task. If you are not sure how to do it, please ask us and we will help you.
To fix this issue, please create a PR against the 6.4 branch in the symfony-docs repository.
Thank you! 😃
The text was updated successfully, but these errors were encountered: