Skip to main content
Quick navigation

Limit join group policy

Introduction

Limit join group policy limits joinGroup attempts on the same groupId within a minute.

If joinGroups attempts hit more than limitation in specific duration, it will respond PolicyViolationException.

Configuration

keytypedefaultdescription
groupIdString.*groupId regex, groupId that match this regex will have the interceptor applied
maximumJoinsPerMinuteintMaximum joinGroup attempts on the same groupId within a minute.
actionActionAction to take if the value is outside the specified range.

Action

  • BLOCK → when fail, save in audit and return error.
  • INFO → execute API with wrong value, save in audit.

Example

{
"name": "limit-join-group-policy",
"pluginClass": "io.conduktor.gateway.interceptor.safeguard.LimitJoinGroupPolicyPlugin",
"priority": 100,
"config": {
"groupId": "myGroupId.*",
"maximumJoinsPerMinute": 5,
"action": "BLOCK"
}
}