Environment
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Managed controller
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Operations Center
-
CloudBees CI (CloudBees Core) on traditional platforms - Client controller
-
CloudBees CI (CloudBees Core) on traditional platforms - Operations Center
-
CloudBees Jenkins Enterprise - Managed controller
-
CloudBees Jenkins Enterprise - Operations center
Resolution
Go to Manage Jenkins -> Configure System
Scroll down to Request Filtering and click on the "ADD" button.
From there, the built in help will guide you through the rest of the process. Rules are based of regular expressions.
Filtered Requests Response
When a user tries to access a blocked API endpoint, the server responds with an error 503
and the message This kind of request is currently being blocked by an administrator