Skip to content

#343 - Create the temporary files with a random name, exclusively and for their owner only - #344

Open
njoubert-cleverage wants to merge 2 commits into
mainfrom
343
Open

njoubert-cleverage wants to merge 2 commits into
mainfrom
343

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #343.

  • New internal Filesystem\TemporaryFile::create(): file in the system temporary directory, random name (random_bytes()), exclusive creation (fopen() mode x: fails on an existing path, symbolic links included), permissions 0600.
  • Used by FileSplitterTask (.tmp), CsvSplitterTask (.csv) and SubprocessInstance (JSON buffer of ProcessLauncherTask, created when the sub-process is built with json_buffering, before it writes into it).
  • Documentation of the outputs of file_splitter and csv_splitter.
  • Tests: new TemporaryFileTest, SubprocessInstanceTest (buffer created with 0600).

The temporary files are still not deleted by the bundle: they are the output of the tasks, read by the next ones.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None: only the name and the permissions of the temporary files change.

🤖 Generated with Claude Code

njoubert-cleverage and others added 2 commits October 22, 2026 17:29
…k and of the JSON buffer of ProcessLauncherTask with a random name, exclusively and readable by their owner only (new internal TemporaryFile). Update documentation, add tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Temporary files created with a predictable name and without exclusive creation

1 participant