Commit Graph
4 Commits
Author SHA1 Message Date
aiongg f5bdb64c5e Runner hardening: per-repository installation tokens, a github.com-only credential helper, an allow-listed jev environment, pinned git attribute source and explicit repositories, absolute deny rules, a wider output scrub, and a deploy of the pushed commit
- Installation tokens for a write are minted for the write's repository (a transfer's also for its target); reads across repos and pushes to a contributor's fork keep the installation-wide token. Reading the app's keys checks the secrets file's mode like every other reader.
- The app's git credential helper is set for https://github.com only, after every configured helper is dropped.
- jev children get only the search path, home, locale, temp, cache, TLS and proxy variables and Jev's own.
- Git on the cached clones names the repository with GIT_DIR, runs with safe.bareRepository=explicit and reads attributes from the empty tree.
- The sandbox denies /proc and the credential directory in the absolute (//path) form as well.
- The scrub hides hex keys that are not digests, URL user:password, three-part dotted tokens and credentials inside hex or base64.
- The dashboard unit sees the settings file, releases, the bare repo and .local read-only.
- post-receive resolves the pushed commit once and the hook deploys that commit; the image build runs pnpm installs without install scripts.
2026-11-14 23:23:21 +00:00
aiongg 16e1356e8a Deploy into releases with an atomic symlink switch; snapshot and pause sync first; units load the settings as the app user; checks after restart; commit from .source-commit; pin pnpm 2026-11-03 03:01:39 +00:00
aiongg ba4677d406 Runner unit: drop NoNewPrivileges so bwrap can create user namespaces 2026-11-03 02:51:00 +00:00
aiongg 3f0fad8b0c Production install: post-receive bootstrap, deploy hook, push helper, backup script, system units and settings template 2026-11-03 02:46:20 +00:00