Skip to content

Commit

Permalink
feat(entities-plugins): support redirect plugin (#1823)
Browse files Browse the repository at this point in the history
* feat(entities-plugins): support `redirect` plugin

* feat(entities-plugins): add icon
  • Loading branch information
Leopoldthecoder authored Dec 3, 2024
1 parent c550fc8 commit d0d3a2e
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 @@ -769,6 +769,13 @@ export const PLUGIN_METADATA: Record<string, Omit<PluginMetaData<I18nMessageSour
nameKey: 'plugins.meta.injection-protection.name',
scope: [PluginScope.GLOBAL, PluginScope.SERVICE, PluginScope.ROUTE],
},
redirect: {
descriptionKey: 'plugins.meta.redirect.description',
group: PluginGroup.TRAFFIC_CONTROL,
isEnterprise: false,
nameKey: 'plugins.meta.redirect.name',
scope: [PluginScope.GLOBAL, PluginScope.SERVICE, PluginScope.ROUTE, PluginScope.CONSUMER, PluginScope.CONSUMER_GROUP],
},
}

/**
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 @@ -489,6 +489,10 @@
"injection-protection": {
"name": "Injection Protection",
"description": "Protect against injection attacks by rejecting requests that match common injections patterns."
},
"redirect": {
"name": "Redirect",
"description": "Redirect incoming requests to a new URL"
}
},
"fields": {
Expand Down

0 comments on commit d0d3a2e

Please sign in to comment.