Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path/Operation restriction plugin #1234

Closed
cvrabie opened this issue May 19, 2016 · 1 comment
Closed

Path/Operation restriction plugin #1234

cvrabie opened this issue May 19, 2016 · 1 comment
Labels
idea/new plugin [legacy] those issues belong to Kong Nation, since GitHub issues are reserved for bug reports.

Comments

@cvrabie
Copy link

cvrabie commented May 19, 2016

Idea: plugin that restricts access to a path and/or operation based on white and blacklists.
Ideally the path definitions should allow wildcards.

Example config that blocks

  • DELETE operations on all paths
  • all operations on paths starting with /admin/
  • POST, PUT and PATCH operations on exactly the path /users:
"config" : {
  "blacklist": [
    { "operations": ["DELETE"] },
    { "path": "/admin/*" },
    { "path": "/users", "operations": ["POST", "PUT", "PATCH"] }
  ]
}
@Tieske Tieske added area/resolver idea/new plugin [legacy] those issues belong to Kong Nation, since GitHub issues are reserved for bug reports. labels Jun 2, 2016
@Tieske
Copy link
Member

Tieske commented Feb 13, 2017

The logic of this plugin would very much duplicate the core Kong logic of matching paths etc.

Considering the new router in 0.10, apis can be configured for each of the requested configurations. All that is needed is a way to block access (or stated other wise to make the selection negative), this is currently in the works in #2051

closing this.

@Tieske Tieske closed this as completed Feb 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea/new plugin [legacy] those issues belong to Kong Nation, since GitHub issues are reserved for bug reports.
Projects
None yet
Development

No branches or pull requests

2 participants