pvarki / pvarki/python-rasenmaeher-api
Add better proxy protection
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1
- Forks
- 1
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 5
Description
User story
As a service developer for the deploy app ecosystem,
I want to not have all my paths exposed via proxy,
to avoid sensitive paths being callable without explicit knowledge
Acceptance Criteria
Outline what you think are requirements for this story to be considered Completed.
Note: a lot of this work will be in https://github.com/pvarki/opendefence-platform.
- X-Proxy-Callsign header is stripped in traefik (https://github.com/pvarki/opendefence-platform)
- Add new logic in https://github.com/pvarki/opendefence-platform to publish per-integration manifests of proxy routes, roughly in the following format
{"proxy_routes": [
{"path": "/api/v1/clientinfo", "methods": ["GET"], "roles": []},
{"path": "/api/v1/admin/*", "methods": ["*"], "roles": ["admin"]}
]}
- Check allowed list of proxy routes through manifest. Implicit deny if not listed.
Linked things
Link epics, features and other user stories here, if applicable.
https://pvarki.getoutline.com/doc/rasenmaeher-api-trustidentity-audit-OpE3XR3jBm
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.
Research direction
Start by reviewing the proxy integration in the linked opendefence-platform repository and the Traefik configuration referenced by the issue. Determine where per-integration proxy-route manifests and the X-Proxy-Callsign handling belong; done means the header is stripped, unlisted routes are implicitly denied, and the manifest format covers paths, methods, and roles.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100