Closed amboz closed 7 months ago
Looks like previously, there are two places where we don't checkThrottling
ThrottlingConnectorPartitionService getPartitionNames and ThrottlingConnectorTableService.java getTableNames
Do we know why these two calls can be exempted from throttling check?
Looks like previously, there are two places where we don't checkThrottling
ThrottlingConnectorPartitionService getPartitionNames and ThrottlingConnectorTableService.java getTableNames
Do we know why these two calls can be exempted from throttling check?
@stevie9868 my undersanding these methods dont have a qualified resource associated with them, just prefix searches, and rate limiting is currently only on a per-resource basis
This PR introduces the following:
MetacatRequestContext
and return an AuthorizationStatus. DefaultAuthorization can be overridden as needed with custom auth logicValidatingConnector{Catalog/Database/Partition/Table}Service
classes (e.g. ValidatingConnectorTableService) which subsume the existing throttling functionality and also include the new auth functionalityconnector.authorization-exempted
config (ref).