Skip to content

root - chore: defense - bootstrap Aikido Safe Chain in cloud agents - #478

Merged
jaredwray merged 3 commits into
mainfrom
cursor/defense-safe-chain-cloud-9ffa
Aug 17, 2026
Merged

root - chore: defense - bootstrap Aikido Safe Chain in cloud agents#478
jaredwray merged 3 commits into
mainfrom
cursor/defense-safe-chain-cloud-9ffa

Conversation

@jaredwray

@jaredwray jaredwray commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Summary

Bootstrap Aikido Safe Chain for Codespaces and Cursor Cloud Agents so package installs in those environments go through pinned --ci shims and a frozen lockfile.

Status update

DEFENSE_IN_DEPTH.md: Codespaces and Cursor Cloud Agents bootstrap Aikido Safe Chain → (PR #478 pending)
Dropped leftover catalog line: Dev/release VM network egress filtered by a firewall (e.g. PMG)

Changes

  • Add scripts/setup-cloud-environment.sh (Safe Chain 1.5.15, installer SHA-256 verified)
  • Add .devcontainer/devcontainer.json and .cursor/environment.json that run the script
  • Append the Safe Chain section to AGENTS.md
  • List the live control in SECURITY.md

Verification

  • bash ./scripts/setup-cloud-environment.sh (installer checksum OK; pnpm safe-chain-verify; frozen lockfile install)
  • pnpm test (831 tests, 100% coverage)

Reference

defense-in-depth-nodejs § 2 (Safe Chain on Codespaces and Cursor Cloud Agents)

Open in Web Open in Cursor 

cursoragent and others added 2 commits August 17, 2026 00:17
Install pinned Safe Chain with --ci shims and a frozen lockfile for
Codespaces and Cursor Cloud Agents. Drop the leftover PMG/VM-egress
catalog line.

Co-authored-by: Jared Wray <me@jaredwray.com>
Point the § 2 Safe Chain checkbox at PR #478.

Co-authored-by: Jared Wray <me@jaredwray.com>
@jaredwray
jaredwray marked this pull request as ready for review August 17, 2026 00:19
@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f139ce3) to head (d06a46d).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #478   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines         2760      2760           
  Branches       845       845           
=========================================
  Hits          2760      2760           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@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: 88c482db2b

ℹ️ 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 scripts/setup-cloud-environment.sh

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Codespaces pnpm bootstrap fragile
    • corepack enable now falls back to sudo so Codespaces postCreateCommand can create pnpm shims when the Node bin dir is root-owned.

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit 88c482d. Configure here.

Comment thread scripts/setup-cloud-environment.sh
javascript-node owns Node's bin dir as root, so unprivileged
corepack enable can EACCES and abort postCreateCommand.

Co-authored-by: Jared Wray <me@jaredwray.com>
@jaredwray
jaredwray merged commit c0fe7c7 into main Aug 17, 2026
14 checks passed
@jaredwray
jaredwray deleted the cursor/defense-safe-chain-cloud-9ffa branch August 17, 2026 00:45
@jaredwray jaredwray mentioned this pull request Aug 17, 2026
4 tasks
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