Repository navigation
chore: Add new docked layout and move inspector to the side - #91
Merged
Merged
Conversation
0xHericles
approved these changes
Apr 17, 2025
nicacioliveira
pushed a commit
that referenced
this pull request
Aug 7, 2026
Nothing publishes to the L2 store today, so it is permanently empty: a sandbox pod's mount is read-only by design. This adds the missing half — a DaemonSet that carries goldens from a node's L1 hostPath into the shared store. WHY NOT A SIDECAR IN THE SANDBOX POD. Writing a store shared across nodes needs write access, and a sandbox runs untrusted code: a package manager installs cached content as-is, so a tenant able to write it could poison another node's boot. The tenant's write path therefore stops at its own node's hostPath, which is already the accepted trust domain there. What that buys over a sidecar: - the sandbox PodSpec is untouched — no per-pod request, no effect on how many sandboxes pack onto a node (which #91 just tuned), and nothing new that can degrade the health probe Studio tears the pod down on. - the writable mount exists once per node in infrastructure, not inside every tenant's pod. - CPU is capped (50m/500m) without competing with a user's dev server. The compression is the expensive part and no boot waits on it. Asserted in the rendered output: the SandboxTemplate never references the writable claim, and the DaemonSet mounts the hostPath read-only. KEYED BY ORG, which is what makes fleet-wide publishing acceptable. A repo hash comes from the clone URL, so two orgs cloning the same public template collide on one key — node-locally that is a single trust domain, fleet-wide it would let one org's tree restore into another's sandbox. The daemon stamps the org beside each golden and a golden without one is SKIPPED rather than uploaded under an unscoped key, so an archive with an unknown owner cannot exist. WHAT IT UPLOADS is not configurable, and cannot be. Sandboxes are multi-tenant and run third-party code, so the set of (repo, lockfile) pairs is unknowable ahead of time — there is no list to curate and no image to pre-bake. It forwards what a real boot produced and the daemon already judged healthy enough to publish node-locally. Same binary as the daemon, via a `golden-uploader` subcommand: the archive format lives in internal/setup, which Go's internal rule keeps unimportable from outside the module, and reusing the sandbox image means no second artifact to build or keep in lockstep. It is not the daemon — no HTTP server, no lifecycle, no tenant. Cost, for the record: one PUT per (org, repo, lockfile) across the whole fleet, because an existing key is a HEAD and a skip. Everything after that is compression CPU, which is why the limit is low and the sweep is sequential. Tests use real files and real tar/zstd: upload keyed by org, skip without provenance, steady-state sweep that recompresses nothing, an archive that actually restores on a cold root, two orgs on one repo getting separate archives, in-flight publishes skipped, and both no-op paths. 26 tests pass in internal/setup. Chart 0.12.0, default off. Requires depsCache.enabled + depsCache.remote.enabled and a writable volume source; the dynamic storageClassName path must supply goldenUploader.pvcName, since a StorageClass cannot express the read-only/read-write split this relies on. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
nicacioliveira
pushed a commit
that referenced
this pull request
Aug 10, 2026
Nothing publishes to the L2 store today, so it is permanently empty: a sandbox pod's mount is read-only by design. This adds the missing half — a DaemonSet that carries goldens from a node's L1 hostPath into the shared store. WHY NOT A SIDECAR IN THE SANDBOX POD. Writing a store shared across nodes needs write access, and a sandbox runs untrusted code: a package manager installs cached content as-is, so a tenant able to write it could poison another node's boot. The tenant's write path therefore stops at its own node's hostPath, which is already the accepted trust domain there. What that buys over a sidecar: - the sandbox PodSpec is untouched — no per-pod request, no effect on how many sandboxes pack onto a node (which #91 just tuned), and nothing new that can degrade the health probe Studio tears the pod down on. - the writable mount exists once per node in infrastructure, not inside every tenant's pod. - CPU is capped (50m/500m) without competing with a user's dev server. The compression is the expensive part and no boot waits on it. Asserted in the rendered output: the SandboxTemplate never references the writable claim, and the DaemonSet mounts the hostPath read-only. KEYED BY ORG, which is what makes fleet-wide publishing acceptable. A repo hash comes from the clone URL, so two orgs cloning the same public template collide on one key — node-locally that is a single trust domain, fleet-wide it would let one org's tree restore into another's sandbox. The daemon stamps the org beside each golden and a golden without one is SKIPPED rather than uploaded under an unscoped key, so an archive with an unknown owner cannot exist. WHAT IT UPLOADS is not configurable, and cannot be. Sandboxes are multi-tenant and run third-party code, so the set of (repo, lockfile) pairs is unknowable ahead of time — there is no list to curate and no image to pre-bake. It forwards what a real boot produced and the daemon already judged healthy enough to publish node-locally. Same binary as the daemon, via a `golden-uploader` subcommand: the archive format lives in internal/setup, which Go's internal rule keeps unimportable from outside the module, and reusing the sandbox image means no second artifact to build or keep in lockstep. It is not the daemon — no HTTP server, no lifecycle, no tenant. Cost, for the record: one PUT per (org, repo, lockfile) across the whole fleet, because an existing key is a HEAD and a skip. Everything after that is compression CPU, which is why the limit is low and the sweep is sequential. Tests use real files and real tar/zstd: upload keyed by org, skip without provenance, steady-state sweep that recompresses nothing, an archive that actually restores on a cold root, two orgs on one repo getting separate archives, in-flight publishes skipped, and both no-op paths. 26 tests pass in internal/setup. Chart 0.12.0, default off. Requires depsCache.enabled + depsCache.remote.enabled and a writable volume source; the dynamic storageClassName path must supply goldenUploader.pvcName, since a StorageClass cannot express the read-only/read-write split this relies on. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
nicacioliveira
pushed a commit
that referenced
this pull request
Aug 10, 2026
…#5843) * feat(sandbox): carry orgId to the daemon and stamp it on the golden The golden's path carries only a repo hash, derived from the clone URL. That is enough node-locally, where the cache is one trust domain, but not for a store shared across nodes: two organizations cloning the same public template land on the same key, so an archive published by one would restore into the other's sandbox. The daemon is the only process holding both facts — the org from Studio's config push and the golden it writes — so it records them together. A golden with no readable org is ineligible for the shared tier, which is the safe default. orgId already reached buildConfigPayload via EnsureOptions.tenant; it was simply never put on the wire. Inverted the test that asserted the operator-only payload, since the org is now sent too. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * feat(sandbox): node-level uploader that fills the shared golden store Nothing publishes to the L2 store today, so it is permanently empty: a sandbox pod's mount is read-only by design. This adds the missing half — a DaemonSet that carries goldens from a node's L1 hostPath into the shared store. WHY NOT A SIDECAR IN THE SANDBOX POD. Writing a store shared across nodes needs write access, and a sandbox runs untrusted code: a package manager installs cached content as-is, so a tenant able to write it could poison another node's boot. The tenant's write path therefore stops at its own node's hostPath, which is already the accepted trust domain there. What that buys over a sidecar: - the sandbox PodSpec is untouched — no per-pod request, no effect on how many sandboxes pack onto a node (which #91 just tuned), and nothing new that can degrade the health probe Studio tears the pod down on. - the writable mount exists once per node in infrastructure, not inside every tenant's pod. - CPU is capped (50m/500m) without competing with a user's dev server. The compression is the expensive part and no boot waits on it. Asserted in the rendered output: the SandboxTemplate never references the writable claim, and the DaemonSet mounts the hostPath read-only. KEYED BY ORG, which is what makes fleet-wide publishing acceptable. A repo hash comes from the clone URL, so two orgs cloning the same public template collide on one key — node-locally that is a single trust domain, fleet-wide it would let one org's tree restore into another's sandbox. The daemon stamps the org beside each golden and a golden without one is SKIPPED rather than uploaded under an unscoped key, so an archive with an unknown owner cannot exist. WHAT IT UPLOADS is not configurable, and cannot be. Sandboxes are multi-tenant and run third-party code, so the set of (repo, lockfile) pairs is unknowable ahead of time — there is no list to curate and no image to pre-bake. It forwards what a real boot produced and the daemon already judged healthy enough to publish node-locally. Same binary as the daemon, via a `golden-uploader` subcommand: the archive format lives in internal/setup, which Go's internal rule keeps unimportable from outside the module, and reusing the sandbox image means no second artifact to build or keep in lockstep. It is not the daemon — no HTTP server, no lifecycle, no tenant. Cost, for the record: one PUT per (org, repo, lockfile) across the whole fleet, because an existing key is a HEAD and a skip. Everything after that is compression CPU, which is why the limit is low and the sweep is sequential. Tests use real files and real tar/zstd: upload keyed by org, skip without provenance, steady-state sweep that recompresses nothing, an archive that actually restores on a cold root, two orgs on one repo getting separate archives, in-flight publishes skipped, and both no-op paths. 26 tests pass in internal/setup. Chart 0.12.0, default off. Requires depsCache.enabled + depsCache.remote.enabled and a writable volume source; the dynamic storageClassName path must supply goldenUploader.pvcName, since a StorageClass cannot express the read-only/read-write split this relies on. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.
Integration Form Refactoring and UI Improvements
Overview
This PR introduces significant improvements to the integration management system, focusing on form handling, UI components, and error management. The changes streamline the integration creation and editing process while enhancing the user experience.
Key Changes
1. Integration Form Refactoring
DetailFormcomponent to use form context for better state management2. UI/UX Improvements
3. Error Handling
4. Code Structure
new.tsxcomponent5. Integration Creation Flow
Technical Details
Testing Notes
Breaking Changes
/integration/newroute in favor of direct creationDependencies
This PR significantly improves the integration management system's reliability, user experience, and maintainability while reducing code complexity and improving error handling.