Draft: Partition ddp change
Modified the partition-service core-package to configure permission check for CRUD operations explicitly. A new overridden method is added for implementation to fulfill the requirements. The default flow for non-azure implementations remains the same logic wise.
There is a new configuration variable {enable.crud.based.authorization} added to enable the check before accepting any rest API call within preauthorize annotation.
If the above flag is enabled by ISP, the Create/Patch/Delete calls will be forbidden on security-token generated using all the non-customer apps. Only the tokens with customer appid's are allowed to perform CRUD operations.
Testing for partition changes
Before Changes:
Using non MSI token: GET allowed: LIST allowed: CREATE allowed: DELETE allowed: PATCH allowed:
After Changes:
- For Non MSI Token:
GET allowed: LIST allowed: CREATE not allowed: PATCH not allowed: DELETE not allowed
- For MSI Token:
GET allowed. CREATE allowed. LIST allowed. DELETE allowed. PATCH allowed.