Repository navigation
feat(duckfleet): enforce dataset isolation (#1129) - #1136
Merged
Merged
Conversation
6 tasks
Contributor
terraform plan
|
athvin
marked this pull request as ready for review
November 21, 2026 01:19
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.
Closes #1129
What
Add dataset-scoped DuckFleet bindings, storage identities and a Helm namespace/network boundary. Missing, revoked, expired or generation-mismatched bindings refuse admission, and callers cannot supply resource locations.
Why
DuckFleet trusts principals within a deployment. The controlled pilot therefore needs a separate deployment and storage identity for each dataset, including datasets in the same org.
Proof
Eight Rust isolation tests, nine Python probe tests, eight Terraform mock-plan tests and rendered Helm boundary assertions pass. Three disposable deployments passed all six cross-dataset credential/write/session/history refusals and independent catalog/artifact checks.
make checkpassed locally. Corrected CI passed: Rust run 44849180403 and infra run 44849180413, including Helm lint/render/schema validation. All four Terraform plans reported no changes. All 15 required contexts and successful detect jobs were checked on exact head e6e3afd before squash merge.Risk & rollback
No dataset is enrolled or remote execution enabled by this PR. The HTTP adapter and executor integration consume this boundary in #1130/#1132; live AWS/EKS isolation is a qualification gate in #1134. Revert the merge commit to remove these unused integration foundations.
Post-merge ledger
Closed by: Codex · session
01a1fb62-5950-78d2-982c-5ecb2cd40d30onbrians-MacBook-Pro.local· 2026-11-21T01:51:45.838511+00:00mainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not: merge
b1c370e2350908da525885fb5a6439da8b4e286cconfirmed on origin/main; Rust 44849684899, infra 44849684848, frontend 44849684824 and devcontainer 44849685003 succeeded. The post-merge watch is complete below.images— 44849684777 built the API image successfully; web correctly skipped.deploy— 44850118084 logged deployment of this exact SHA and succeeded for dev and prod. Dev service selector is green;web-api-green-7bb8b75fcc-pjbpbemitteder-server listeningat 01:26:47.472294Z. Prodweb-api-blue-cd48798dc-vvzj9emitted the same startup line at 01:26:32.044523Z, verified in/er/prod/containersvia Logs Insights queryc9ba37df-a692-402b-9432-ceda431693a0. Prod cluster access is not granted to the read-only role; CloudWatch supplied the process evidence.references/duckfleet-isolation.mdand the synthetic evidence JSON: boundary choice, cost tradeoff, credential lifecycle, retention, upstream pin and evidence limits.Specific to this change
Context — plan, discoveries, measurements, files
Plan
Implementation, local validation and CI complete. Squash merged as b1c370e at 2026-11-21T01:21:19Z; main and both deployments verified; post-merge watch and ledger complete.
make check, and the relevant integration probe; land only when acceptance evidence is complete. Remote query execution and task integration remain in their dependent tickets.Discoveries
672b3e3e82b61122c9647dd5dc85d32a3cedf09d; this project supplies the missing dataset-scoped storage IAM and ER gateway admission boundary.make checkpassed on e6e3afd.Measurements
.claude/skills/security/references/duckfleet-isolation-evidence.json. It does not prove live AWS IAM or EKS NetworkPolicy enforcement.Files