pulp / pulp/pulpcore

content app should issue 404 if content guard denied access

Open
#3,180 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue
Dominant language
Python
Stars
598
Forks
168
Avg merge
1d 4h
Merged PRs (30d)
86

Description

(One could argue that should be a 404 rather than a 403.)

For obscuration purposes I presume? (If you were spraying requests you could theoretically uncover which protected directories exist based on getting not-found or access-denied).

Originally posted by @dralley in https://github.com/pulp/pulpcore/issues/3061#issuecomment-1228812641

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the content app's content guard and the request handling path for denied access; no specific files or tests are named in the issue. Reproduce a request to protected content and verify that a denied request returns HTTP 404 rather than HTTP 403, with tests covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.