Allow restricting this to certain HTTP verbs
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Review the plugin's configuration and HTTP middleware request handling to see how regex block entries are parsed and matched. Add support for optional HTTP methods, preserving all-method blocking when methods are omitted, and verify that configured verbs are blocked only for their matching paths.
Written by the indexing model from the issue text.
Description
A helpful addition to this is the ability to configure a list of HTTP verbs for each regex path which allows to configure which verbs to block for specific paths. There are use cases where only certain verbs need to be blocked.
Are you willing to take a PR implementing this?
A sample config for this might look like:
testData:
blockentries:
- regex:
- "^/foo(.*)"
methods:
- POST
- GET
- regex:
- "^/foo-blockallmethods(.*)"
- Dominant language
- Go
- Stars
- 28
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from traefik/plugin-blockpath
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
traefik/plugin-blockpath#9 · 1 reaction ·
All issues in traefik/plugin-blockpath
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
crossplane/crossplane#7859 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bazel-contrib/rules_go#4721 · 2 comments ·
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
bug carvel-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
carvel-dev/kapp-controller#1861 ·
-
area/logging kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100