Skip to content

Tighten Lambda release, install and secret checks, and rank free offers as priced - #49

Merged
lydakis merged 2 commits into
mainfrom
claude/errand-fix-lambda
Oct 6, 2026
Merged

lydakis merged 2 commits into
mainfrom
claude/errand-fix-lambda

Conversation

@lydakis

@lydakis lydakis commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Before: A lease released in its first ten minutes could stay "releasing" until the launch window passed, even though Lambda had already terminated its machine. A Lambda user other than ubuntu rented a machine errand couldn't log in to. errand_binary was checked, then reopened for upload, so different bytes could reach the machine. An unknown instance architecture skipped the architecture check. On Windows, a secret file that other users could read through its ACL was accepted. A free offer (price_per_hour = 0) ranked after an unpriced one.

After: Release finishes as soon as an instance Lambda has shown is no longer listed, also after a cloud peer restart. The Lambda user setting is gone, and the login is always ubuntu. The binary that was checked is the one installed. An unknown architecture fails before launch. Windows secret files must be readable only by their owner, SYSTEM and Administrators. price_per_hour = 0 counts as a price and sorts first.

How: the lease's saved Lambda state records seen the first time Lambda answers for the instance. A lease has at most one instance, so a seen instance that is no longer listed has been terminated, and the ten-minute settle window applies only to an instance that was never seen. Acquire copies errand_binary to a private file, checks the copy and uploads it. fsowner.Private checks the mode on Unix and the DACL on Windows. Prices are optional values, with nil meaning unpriced.

Closes items in #33: release soon after launch, Lambda user, errand_binary check-to-upload, unknown Lambda architecture, Windows secret ACL, price_per_hour = 0.

🤖 Generated with Claude Code

https://claude.ai/code/session_013BQxiCNDXMnjv5pvmgo5E6


Generated by Claude Code

…rs as priced

- The lease's Lambda state records Seen once Lambda first shows the
  instance while acquire waits for it. A lease has at most one instance, so
  release treats a seen instance that Lambda no longer lists as terminated,
  inside the ten-minute launch window and after a restart alike. Only an
  instance never seen still waits out the window.
- The Lambda provider always logs in as ubuntu; the user setting is gone,
  and a config that still sets it fails as an unknown key.
- Acquire checks a private copy of errand_binary and uploads that same copy.
- An instance type whose architecture errand does not know fails before
  launch instead of skipping the check.
- On Windows, a secret file whose DACL lets anyone but the owner, SYSTEM or
  Administrators read it is refused (fsowner.Private).
- price_per_hour is kept as set or unset, so a free offer sorts before an
  unpriced one.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013BQxiCNDXMnjv5pvmgo5E6
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T02:04:43.899744Z 942f6db New commits
🔒 Security Review ✅ Completed 2026-10-06T02:08:31.111308Z 942f6db New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

lydakis commented Oct 6, 2026

Copy link
Copy Markdown
Owner Author

github-advanced-security fails on GitHub's side (Copilot autofind quota/model error), as on every PR in this repo; it isn't this change, and a re-run returns 403 from here. CodeQL itself runs as a separate check.


Generated by Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9d37a2e1db

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/cloud/lambda.go Resolved
@lydakis
lydakis merged commit cb979a7 into main Oct 6, 2026
8 of 9 checks passed
@lydakis
lydakis deleted the claude/errand-fix-lambda branch October 6, 2026 02:21
lydakis pushed a commit that referenced this pull request Oct 6, 2026
Keeps #49's changes: no Lambda user setting, optional prices, the Seen
check on release, and installing the copy of errand that was checked,
which now covers downloaded and self builds too.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01QRtura6rhpHQz6RRGcL3uk
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