pytest-dev / pytest-dev/pytest

tempdir hardening prevents intentionaly world owned tmpdirs for container sharing

Open
#10,738 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin: tmpdir
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.