Skip to content

add macos secrets support via a /tmp entry#207

Open
avsm wants to merge 3 commits into
ocurrent:masterfrom
avsm:macos-secrets
Open

add macos secrets support via a /tmp entry#207
avsm wants to merge 3 commits into
ocurrent:masterfrom
avsm:macos-secrets

Conversation

@avsm
Copy link
Copy Markdown
Member

@avsm avsm commented May 13, 2026

This departs from Docker conventions since /run isnt writeable on macOS, so we expose a dedicated environment variable to point the job to where the secrets are held.

Untested until @mtelvers gets access back to the obuilder hosts again :-)

@mtelvers
Copy link
Copy Markdown
Member

temp_dir is OCaml >= 5.1, but the workers run in 4.14. Perhaps Lwt_io.with_temp_dir which would also ensure clean up is always happens.

Filename.temp_dir is OCaml 5.1+, but workers run 4.14. Switch to
Lwt_io.with_temp_dir, matching the pattern in sandbox.runc/jail/hcs
and docker_sandbox. As a bonus the directory is now removed on
failure and cancellation as well as success, so cleanup_secrets
goes away.

Tighten the staging dir from 0o755 to 0o711 so other local users
can't enumerate secret filenames; the build user only needs traverse.
macos secrets: use Lwt_io.with_temp_dir for staging
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.

2 participants