-
Notifications
You must be signed in to change notification settings - Fork 221
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
New list
permission to protect Summary pages
#5397
Comments
One issue is that our paths use the mode or page as a suffix:
Would that generally be better, or would that cause more problems? In fact, there is a use case to match on the app name (here
So possibly, switching paths around (optionally) might be an option, which would then allow more useful matches in |
If the We already have a mechanism for permissions, of course, at the form level, with a suggestion to extend that to per-app and global defaults (#1860). However, what permission would apply in the case of the Summary page? Right now, the Summary page will filter individual form data based on individual permissions. In the specific case of the Form Builder Summary page, we can also send a 403 for the whole page in some cases, but I don't think that the case for Form Runner in general? Now we should be able to either:
If we had a separate If so, #1860 would help. |
What would it take to add a new
It doesn't look very hard, but is it general enough to be worth it? |
I had forgotten that we had already considered the "List/search data" and even "Access PDF" permissions. We might want to do the |
For backward compatibility:
Distinct possibilities:
#2256 will rectify that and use a |
XML permissions look like this right now: <permissions>
<permission operations="read update delete">
<group-member/>
</permission>
<permission operations="read update delete">
<owner/>
</permission>
<permission operations="create"/>
</permissions> The backward compatibility Note that right now:
Listing implies showing some data and metadata, so we should have |
Implementing |
Form Builder is a little more difficult! Question: does it make sense for But from a UI perspective (haha), this then means there shouldn't be |
Implementation notes:
|
list
permission to protect Summary pages
This avoids dealing directly with XML and also avoid extra parsing of permissions/operations.
Backward compatibility issue: with 2021.1, Summary page also allows access IF:
But with current 2022.1 changes, user won't have RESOLUTION: RESOLUTION: any of |
RESOLUTION: It's ok to have Search API check for the |
|
Noticing we haven't closed this. There are a couple of tasks above:
|
A user has the following requirement:
/new
) and edit/view (only with "link provided")At the
web.xml
level, we can protect, for example:/fr/
: Home Page/fr/*
: all Form Runner paths/fr/myapp/myform/summary
: a specific Summary pageHowever, it's not possible to block all paths ending with
/summary
. This is just not a feature of the Servlet specification's<url-pattern>
.This issue is about finding a solution that enables the initial scenario above.
The text was updated successfully, but these errors were encountered: