Repository navigation
Conversation
…es (0.70.0) A caller whose public address changed mid-run lost its SSH session, could never reconnect because the security group admitted the old address only, and the lane ended interrupted with its machine deleted. Tailscale is now required. orly refuses to start unless the caller's `tailscale status` is running and online, then mints one single-use, ephemeral, preauthorized key tagged exactly tag:orly-burst per machine through the OAuth credential in TS_OAUTH_CLIENT_ID and TS_OAUTH_CLIENT_SECRET. The key reaches the machine only in its boot script, through EC2 user data or a TIR start script, and is deleted once the machine has joined or failed to. No security group opens port 22, and the caller-address check is gone. The job runs detached on the machine, writing its log and exit code under /run. orly follows the log by byte offset; a lost session is reconnected for up to 10 minutes since the log last grew, never past the deadline, and the lane's result is the exit code the machine wrote. Nodes log out before their machine is deleted, and a warm-up leaves the tailnet before it is imaged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A node counts only when it carries tag:orly-burst, and two tagged nodes of one name are refused, so no device can stand in by claiming a name. - burst.secrets may not name OP_SERVICE_ACCOUNT_TOKEN or a TS_OAUTH_, E2E_ or AWS_ variable, since a value already in the caller's environment is sent to the machine as it is. - A warm-up about to be imaged also runs cloud-init clean, stops tailscaled and removes its state file, so no snapshot carries its node or user data. - The launcher is told the job script's size and discards a short upload, so a session lost mid-upload never starts a truncated job. - A refused TIR start script is reported by status alone, since TIR's errors may quote the script, and its key, back. - A node that joined after the run stopped waiting is found and logged out at release. Start scripts are named by run, and teardown deletes this run's by name and any left by a run that began over 25 hours ago. - docs/BURST.md warns that tag:orly-burst must be in no rule's src and the default allow-all grant must go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
macOS answers EPERM to a signal for a process group whose members have all exited but are not yet reaped. A session that ended just as its deadline came threw that from the deadline timer; the reconnect loop's short sessions made the race likely. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- docs/BURST.md: a killed run's nodes leave once their machines are deleted or go offline; the two warnings merge into one, and the key's deletion is said once. llms.txt names 0.70.0. - stopOwnedGroup treats EPERM, a group of unreaped exits, as stopped for every caller, and burst's own wrapper goes. - One run-id helper set in types.ts builds a run id, its tail and when it began; node and start-script names use it. - A warm-up's machine is typed as joined, and is not imaged when it cannot be logged out. - The tailnet address check reuses the shared IPv4 pattern. - The boot script hands tailscale its key through a 0600 file in /run, removed on exit, instead of an argument, and asks `tailscale status` whether the node is up. - An orphaned start script is one older than the longest deadline plus an hour, and one a VM still uses is reported as such, not for hand deletion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
orly burstadmitted SSH only from the caller's public IPv4 and ran each lane inside one SSH session. When the caller's network changed mid-run (a Wi-Fi drop that brings a new public IP), the session died, reconnecting was refused, and the lane was markedinterruptedand its VM deleted. Seen live: a lane admitted from one address lost its session 17 minutes in after the caller's address changed.What changes (0.70.0)
tag:orly-burst, minted from an OAuth trust credential whose only tag istag:orly-burst. The key is deleted once the VM has joined, and on every failure. SSH goes to the VM's tailnet address. No security group opens port 22. The AWS group has no inbound rule; TIR's has UDP 41641 only, Tailscale's direct-connection port, because TIR refuses an empty group.setsid/nohup, writing its log and exit code to/run/orly-burst. orly follows the log by byte offset. When the session drops, it reconnects within the existing machine-wait window, never past the job deadline, and resumes where the log left off. The exit-code file decides the result.Security review (independent, then re-reviewed)
Fixed:
tag:orly-burst, and only one may match.burst.secretsrefusesTS_OAUTH_*,E2E_*andAWS_*.docs/BURST.mdwarns thattag:orly-burstmust appear in no rule'ssrc, and that a tailnet's default allow-all grant lets burst VMs reach every device.Open for the owner:
resolveSecretsstill sends any preset caller environment value a repository'sburst.secretsnames. That behaviour predates this change.Evidence
make audit: 615 pass, 0 fail (615 tests, 51 files).orly gate verify: repo.config, docs.language and typecheck all green.gitleaks gitover these 4 commits andgitleaks dirover the tree: no leaks found. Outgoing commits and messages were also checked against the real credential values and for vault paths: none present.tailscale up --auth-key=file:.Do not merge until the owner has reviewed it.
🤖 Generated with Claude Code