Fix debug package cleanup findings#1010
Merged
Merged
Conversation
c67a07b to
00f7bb4
Compare
00f7bb4 to
0fd2250
Compare
|
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.



Summary
enable --now) so the DOCKER-USER rule is applied after Docker restart instead of only enabled for later boots.Agent Preflight
Classification
External References
N/A: no external API behavior or third-party contract changed. This work used local debug packages, production Cloudflare observability already queried in this task, and repo-local postmortems.
Codebase Impact Analysis
Touches apps/api/src/routes/projects/node-acp-heartbeat.ts, packages/vm-agent/internal/bootstrap, packages/vm-agent/internal/server/acp_heartbeat.go, packages/vm-agent/internal/provision/provision.go, and packages/cloud-init/src/template.ts. The behavior changes are limited to bootstrap credential helper retry safety, cloud-init boot warning cleanup, metadata-block enforcement after Docker restart, and ACP heartbeat diagnostics.
Documentation & Specs
N/A: no public API, user docs, env vars, or config surface changed. The task file tasks/active/2026-05-14-debug-package-cleanups.md records the findings, validation notes, and acceptance criteria.
Constitution & Risk Check
Checked no hardcoded secrets, no plaintext credential embedding in cloud-init, bounded heartbeat response logging, suspicious non-regular credential-helper paths, and metadata API isolation timing. Staging VM verification is required before merge because cloud-init and VM-agent bootstrap/provisioning behavior changed.
Validation
sam-firewall: Metadata API blocked for containers (DOCKER-USER chain)/etc/iptables/rules.v4and/etc/iptables/rules.v6written by cloud-init before persistencessh_authorized_keysschema warning, no missing iptables persistence warning, noDOCKER-USER chain not available after 30s, and no credential-helperfile existsfailureLocal Go validation note: this workspace image does not include go or gofmt, so VM-agent Go tests/formatting could not run locally. CI should cover the Go toolchain path.
Specialist Review Evidence
Co-Authored-By: Claude noreply@anthropic.com