-
Notifications
You must be signed in to change notification settings - Fork 530
Open
Labels
Component: ContainersAnything related to cloudy Dataverse, shipped in containers.Anything related to cloudy Dataverse, shipped in containers.Feature: APISize: 30A percentage of a sprint. 21 hours. (formerly size:33)A percentage of a sprint. 21 hours. (formerly size:33)Type: Featurea feature requesta feature requestUser Role: SysadminInstalls, upgrades, and configures the system, connects via sshInstalls, upgrades, and configures the system, connects via ssh
Description
The configuration for blocked API endpoint basically allows any value.
In case of typos or misconfiguration (like a /api prefix due to copy+paste from Apache/NGINX rules), the rules are essentially rendered useless.
We must check during deployment if the setting is making any sense to us.
- Make sure there's no
/, or/apior/api/v\d+/at the beginning of each - Make sure the list is actually a list (so no invalid characters like
;or, etc) - Ideally check if the referred resource actually exists. (This might be hard to do!)
Also, the whole class of API filtering should be refactored:
- Extract the matching logic and have unit/integration/API tests
- Look into using UriInfo instead of or in addition to ResourceInfo to make the code potentially less complex
- Remove Jetty
StringUtil(also add a check in Maven to flag or fail PRs introducing these imports!) - Potentially make the class more restrictive in it's choices what are acceptable configuration combinations
In addition: the setup scripts are still applying database options for the blocking configuration. This should be cleaned up.
Metadata
Metadata
Assignees
Labels
Component: ContainersAnything related to cloudy Dataverse, shipped in containers.Anything related to cloudy Dataverse, shipped in containers.Feature: APISize: 30A percentage of a sprint. 21 hours. (formerly size:33)A percentage of a sprint. 21 hours. (formerly size:33)Type: Featurea feature requesta feature requestUser Role: SysadminInstalls, upgrades, and configures the system, connects via sshInstalls, upgrades, and configures the system, connects via ssh
Type
Projects
Status
No status
Status
No status