Repository navigation
fix(daveahr2172/governed-agents-nitro): disk limits, valid GitHub probes, gate wording - #1268
Merged
DevelopmentCats merged 6 commits intoNov 23, 2026
Conversation
…bes, gate wording - Ephemeral-storage limits on the workspace (8 GiB) and proxy (256 MiB), and a 2 GiB size limit on /tmp. In a Nitro Sandbox the disk is sized from the limit and writes past it fail with ENOSPC. - Firewall demo: an unauthenticated 401 reads "no credential sent; the network allowed it". With github_external_auth_id set, new rows use the owner's GitHub credential with well-formed writes that cannot succeed, so 403 and 422 mean refused and permitted and nothing is created. Empty bodies were not a valid test. - The policy gate is described as a readiness check, not a boundary. - README: recommend DefaultDeny on the Auto Mode NodeClass, add a stop procedure and a quarantine option, and note that network stops leave open connections up. - Pin providers to the tested versions. Tests for both. Generated with Coder Agents.
Collaborator
Author
bpmct
previously approved these changes
Nov 18, 2026
A well-formed request that cannot succeed is still invalid, so a 422
does not show that the credential may write. The firewall demo now
reports a 422 as unclear, and a 403 as denied with GitHub's message,
since 403 has causes other than credential scope. The README says the
same. Verified on EKS 1.37 Auto Mode with the same probe code: all
three writes denied ("Resource not accessible by integration"), nothing
created.
Generated with Coder Agents.
The template schedules workspace and proxy Pods onto the node_pool nodes and the workspace into the sandbox, but the cluster does not require it, so anyone who can change what the provisioner deploys can run a Pod outside the firewalled nodes. Add an example ValidatingAdmissionPolicy that requires the agent node affinity, forbids spec.nodeName, and requires the sandbox RuntimeClass except for the proxy, with a Warn/Audit rollout and the label-based gap. Checked with a server-side dry run on EKS 1.37 (compiles; nothing created) and with cel-go against 11 Pod shapes: the template's Pods pass and the bypasses fail, except the documented proxy-label gap. Generated with Coder Agents.
…s meet the README placement policy Generated with Coder Agents.
… coder stop deletes the proxy log Generated with Coder Agents.
bpmct
approved these changes
Nov 20, 2026
DevelopmentCats
approved these changes
Nov 20, 2026
DevelopmentCats
enabled auto-merge (squash)
November 20, 2026 21:08
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.
Description
Brings
registry/daveahr2172/templates/governed-agents-nitroup to date with the Nov 18 changes from the live Nitro Sandbox deployment (EKS 1.37, Auto Mode), after review of #1253./tmp. In a Nitro Sandbox the kubelet cannot measure disk use; the sandbox gets a disk the size of the limit and writes past it fail withENOSPC(measured live;/tmpsizeLimitis not enforced there, so the README says so).github_external_auth_idset, new rows use the owner's linked GitHub credential with writes that are well formed but cannot succeed (a branch at an all-zero commit, a gist with an empty file), so nothing is created. A 403 or 404 is reported as denied, with GitHub's reason. A 422 is reported as unclear: the request is invalid, so it does not show that the credential may write, and no permitted write was tested. Empty request bodies were not a valid test: GitHub answered a branch creation incoder/coderwith 422 although the token has no push access there.networkPolicy: DefaultDenyon the Auto Mode NodeClass, adds a stop procedure with an optional quarantine ClusterNetworkPolicy, and notes that network stops leave established connections open.ValidatingAdmissionPolicythat does (node affinity required, nospec.nodeName, sandbox RuntimeClass except for the proxy), rolled out with Warn/Audit first. Checked with a server-side dry run on EKS 1.37 (compiles, nothing created) and with cel-go against 11 Pod shapes; not yet enforced on a live cluster. A new test run,pods_meet_the_readme_placement_policy, fails if the template's Pods stop matching the policy's node affinity, RuntimeClass, or proxy label rules.coder stopdeletes it. The README now says to ship proxy container logs to a log store first, for example with a platform-owned log DaemonSet on the agent nodes. Tested on EKS with Fluent Bit: a request made just beforecoder stopwas in CloudWatch Logs after the Pod was gone.~>to the tested versions.Type of Change
Template Information
Path:
registry/daveahr2172/templates/governed-agents-nitroTesting & Validation
terraform validateandterraform test(15 passing, 2 new runs and 4 new assertions)57d0300) was checked with stubbed responses and live on labs with the same probe codebun run fmt, ShellCheck (--severity=warning, including the rendered demo script),cmd/readmevalidation, and typos/user200; branch in an org repo, branch in a personal repo, and gist all denied with 403 "Resource not accessible by integration"; nothing created).Related Issues
Follow-up to #1253.
Generated with Coder Agents on behalf of @daveahr2172.