Skip to content

Commit

Permalink
feat(entities-plugins): support injection-protection plugin (#1803)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder authored Nov 21, 2024
1 parent 1c7f4e4 commit 08d9e93
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,13 @@ export const PLUGIN_METADATA: Record<string, Omit<PluginMetaData<I18nMessageSour
nameKey: 'plugins.meta.service-protection.name',
scope: [PluginScope.GLOBAL, PluginScope.SERVICE],
},
'injection-protection': {
descriptionKey: 'plugins.meta.injection-protection.description',
group: PluginGroup.SECURITY,
isEnterprise: true,
nameKey: 'plugins.meta.injection-protection.name',
scope: [PluginScope.GLOBAL, PluginScope.SERVICE, PluginScope.ROUTE],
},
}

/**
Expand Down
4 changes: 4 additions & 0 deletions packages/entities/entities-plugins/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,10 @@
"service-protection": {
"name": "Service Protection",
"description": "Prevent abuse and protect services with absolute limits on the number of requests reaching the service."
},
"injection-protection": {
"name": "Injection Protection",
"description": "Protect against injection attacks by rejecting requests that match common injections patterns."
}
},
"fields": {
Expand Down

0 comments on commit 08d9e93

Please sign in to comment.