MCPcopy
hub / github.com/scality/cloudserver / internalRouteRequest

Method internalRouteRequest

lib/server.js:116–120  ·  view source on GitHub ↗

* Route requests on 'internal s3' port * Same as routeRequest, but ignoring user's bucket policy. This should be used only for * backbeat and other internal/system processes that must not be affected by user's bucket * policy. * Note that this is not a temporary measure: eventual

(req, res)

Source from the content-addressed store, hash-verified

114 * @returns {undefined}
115 */
116 internalRouteRequest(req, res) {
117 req.isInternalServiceRequest = true; // eslint-disable-line no-param-reassign
118 req.bypassUserBucketPolicies = true; // eslint-disable-line no-param-reassign
119 return this.routeRequest(req, res);
120 }
121
122 /**
123 * Route requests on 's3' port

Callers 1

server.jsFile · 0.80

Calls 1

routeRequestMethod · 0.95

Tested by

no test coverage detected