Repository navigation
fix(sandbox): discard obsolete migration preparation - #361
Merged
Merged
Conversation
Reuse the common executor for governed Custom creation, retained lifecycle, typed Gateway and network controls, private Chat and isolated terminal access. Preserve image entrypoints and non-root identities while retaining existing managed and non-Sandbox behavior.\n\nInclude generated policy schemas, Portal wiring, static probe packaging and offline regression coverage. Keep unsupported identity, mTLS and desktop combinations fail-closed and document the live qualification boundary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Retain Custom ingress and terminal contracts alongside native identity pinning and expectation validation. Update the Entra renderer tests for the shared validation signature and preserve fail-closed handling of unsupported Custom Entra projection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Yield to the Node scheduler within act before arming the window access trap. Preserve the stale-dispatch negative control and late Chat completion assertions without retries or a longer timeout. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Distinguish a known obsolete migration intent from a current dependency outage. Retry stale preparation without applying a dependency hold to the newer request's source, while retaining fail-closed authorization and recovery behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserve a new migration's ready source when a later preparation or Agent-source guard rejects an obsolete reconciliation. Keep current authorization and binding failures fail-closed, and retain read errors when currentness cannot be established. Cover the actual Custom Kata and container paths and current-binding negative controls. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Resolve PR #361 conflicts while preserving stale migration safeguards and current main changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The expanded controller suite reaches its 20-minute package limit while tests are still passing. Raise the full unit-test budget to 30 minutes and retain all test selections, the existing envtest budget, and the 60-minute CI job limit. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Distinguish obsolete migration/Sandbox intent from a current control-plane dependency failure. Preparation and observation errors from an older reconciliation now return for a fresh read without applying a dependency hold to the newer migration request's source. Other common failure paths reuse the existing authoritative Agent-revision check before holding; a read failure still follows the fail-closed hold and is reported.
The live failure occurred when a second healthy-source request arrived during an older steady-state reconciliation. The intent guard correctly rejected the old operation, but its generic error path stopped the still-ready source; the new request then could not capture that source. Keep all current authorization, source-stop, storage-release and deadline checks unchanged.
Further immediate round trips exposed a second timing window after the initial migration check. The follow-up covers the later Sandbox guard and Agent-source read as well. A recreated current policy binding remains a real source failure and still stops compute/blocks the retained key; it is not exempted as obsolete work.
Related issue
Focused validation follow-up to #354. This PR targets
feat/custom-sandbox-runtimebecause it wires the shared error handling through that branch's Custom path as well as managed harnesses. It does not merge its prerequisite.Validation
Offline checks used Go 1.27.3 and Helm 3.22, with
USE_EXISTING_CLUSTER=falseand an empty kubeconfig.Authorized live evidence: two distinct return requests, on the original and partially repaired compositions, hit the original 1200-second failure bound; both results were retained. In between, bounded successful migrations did not conceal the remaining race. The sources were recovered by correcting only each uncaptured Agent request back to its recorded completed intent through admission. No direct workload scaling, finalizer stripping or forced volume detachment was used. A separate target-capacity delay was recovered by ordinary owner suspension of a test co-tenant, without changing the migration clock or resource profile. No private diagnostic bundle is attached.
On the complete repair's pinned Operator/admission image, four immediately
consecutive runc migrations completed in 72.208s, 78.877s, 78.557s and 78.597s;
a Kata round trip completed in 106.079s and 92.719s. A retained runc suspension/
resume also passed. All retained identities matched, source/ordinary CSI
transitions were observed, and both original HOME files plus a fresh append
were independently verified through the normal owner terminals. The earlier
failures and a separate pre-adoption request rejection remain in the report.
Compatibility and operational impact
No CRD, dependency or timeout change. Only a specifically identified obsolete intent/checkpoint avoids the generic dependency hold. Other errors still fail closed. Existing migration ownership, generation, checkpoint, healthy-source, normal CSI and authorization requirements remain unchanged.
This does not add unavailable-node failover or physical fencing. Maintainer review and the new PR's CI/CLA checks are still required.
Checklist