-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[RFC] Show voter information in the security profiler panel #17856
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
About what would you display the votes ? There can be many decisions being taken during a page load. |
@stof all of them then. |
Sorry for the short answer. I just wonder if there is a reliable way to show what's going on regarding the security voters during a page load? (even for cases like the one you commented). Security is the most critical thing in an app and I feel that the profiler doesn't help users as much as it could. |
@javiereguiluz displaying votes being done would require building a custom AccessDecisionManager to log decisions being made. This is quite easy to do (build a decorating implementation and wrap the service in debug mode) |
What about a voter handling N attributes? Something else that could be interesting, would be to display which attributes have been voted on and what the result was:
Can easily be achieved via a backtrace in a decorator around the In theory you can also automatically decorate voters and map their result and class. I think this feature would be more useful as the presented doesn't give me any useful information. Sure, I know which voter gave me a certain result, but that doesn't tell me where it happened and for what it happened. |
@iltar 👍 very nice! I like your idea. |
@javiereguiluz this is a bit more complicated. In case of Sadly my experience ends here. A generic solution could be to decorate the |
+1. I do not know how much is complicated, but it would be very useful. |
👍 Very nice |
Related, and touching on a few ideas that would be helpful for the purpose of this issue: #17892. |
…eguiluz) This PR was squashed before being merged into the 3.1-dev branch (closes #17887). Discussion ---------- Show more information in the security profiler | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #17856 | License | MIT | Doc PR | - This is an early prototype to explore the feature of displaying more information in the security panel. Example:  Commits ------- b12152d Show more information in the security profiler
👍 Very useful when debugging voters, was wondering myself why it wasn't already here last week. |
…(javiereguiluz) This PR was squashed before being merged into the 3.1-dev branch (closes symfony#17887). Discussion ---------- Show more information in the security profiler | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#17856 | License | MIT | Doc PR | - This is an early prototype to explore the feature of displaying more information in the security panel. Example:  Commits ------- b12152d Show more information in the security profiler
Problem
The security panel is not very useful because it provides little information:
Solution
Could we show at least the information about the voters that granted/rejected access? A quick-and-dirty mockup of the idea:
Questions:
Thanks!
The text was updated successfully, but these errors were encountered: