pytest-dev / pytest-dev/pytest
tempdir hardening prevents intentionaly world owned tmpdirs for container sharing
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 14.5k
- Forks
- 3.4k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 35
Description
#8414 (fixed by #8516) ensured all temporary directories have 0o700 as mode
this seems to prevent sharing them into a docker image for selenium usage on files (affecting pytest-html tests)
as we also apply this to basetemp, there is now ay to get out of it
Contributor guide
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 reading the temporary-directory change in #8414 and its fix in #8516, then inspect how pytest applies the 0o700 mode to basetemp. Reproduce the pytest-html Selenium case involving a Docker-shared temporary directory; done means intentional world-owned temporary directories can be used for sharing without weakening the default hardening.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100