fix(rate-limiting): Add support for Scope-StoragePolicy actions

This commit is contained in:
Louis Ruch committed 2024-01-16 13:53:44 -08:00
1 parent 20897640cd
commit 360dd616ff
4 files changed
+159 -3

No files matched your search

@@ -2578,6 +2578,58 @@
"resource": "scope",
"unlimited": false
}
],
"attach-storage-policy": [
{
"action": "attach-storage-policy",
"limit": 30000,
"per": "total",
"period": "30s",
"resource": "scope",
"unlimited": false
},
{
"action": "attach-storage-policy",
"limit": 30000,
"per": "ip-address",
"period": "30s",
"resource": "scope",
"unlimited": false
},
{
"action": "attach-storage-policy",
"limit": 3000,
"per": "auth-token",
"period": "30s",
"resource": "scope",
"unlimited": false
}
],
"detach-storage-policy": [
{
"action": "detach-storage-policy",
"limit": 30000,
"per": "total",
"period": "30s",
"resource": "scope",
"unlimited": false
},
{
"action": "detach-storage-policy",
"limit": 30000,
"per": "ip-address",
"period": "30s",
"resource": "scope",
"unlimited": false
},
{
"action": "detach-storage-policy",
"limit": 3000,
"per": "auth-token",
"period": "30s",
"resource": "scope",
"unlimited": false
}
]
},
"session": {
@@ -3893,7 +3945,7 @@
]
}
},
"max_size": 308154,
"max_size": 312156,
"msg": "controller api rate limiter"
},
"op": "controller.(rateLimiterConfig).writeSysEvent",