MCPcopy Index your code
hub / github.com/scality/cloudserver / isRateLimitServiceUser

Function isRateLimitServiceUser

lib/api/apiUtils/authorization/serviceUser.js:5–11  ·  view source on GitHub ↗
(authInfo)

Source from the content-addressed store, hash-verified

3const { config } = require('../../../Config');
4
5function isRateLimitServiceUser(authInfo) {
6 try {
7 return timingSafeEqual(Buffer.from(authInfo.getArn()), Buffer.from(config.rateLimiting.serviceUserArn));
8 } catch {
9 return false;
10 }
11}
12
13module.exports = {
14 isRateLimitServiceUser

Callers 4

validateBucketFunction · 0.85
bucketDeleteRateLimitFunction · 0.85
bucketPutRateLimitFunction · 0.85
bucketGetRateLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected