Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
fix: unblock git sync workspaces and pre-deploy hooks on permission edges (#3637)
Kyle Mendelld2d020d46b97
diff --git a/backend/go.mod b/backend/go.modindex e66c24483..5d414b15e 100644--- a/backend/go.mod+++ b/backend/go.mod@@ -56,7 +56,7 @@ require (github.com/stretchr/testify v1.11.1github.com/subosito/gotenv v1.6.0github.com/wneessen/go-mail v0.8.1- go.getarcane.app/acfs v0.4.0+ go.getarcane.app/acfs v0.4.1go.getarcane.app/builds v0.3.1go.getarcane.app/docker/convert v0.1.0go.getarcane.app/streams v0.4.0diff --git a/backend/go.sum b/backend/go.sumindex 291316170..4944fbe88 100644--- a/backend/go.sum+++ b/backend/go.sum@@ -758,8 +758,8 @@ github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ=github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0=github.com/zeebo/xxh3 v1.0.2 h1:xZmwmqxHZA8AI603jOQ0tMqmBr9lPeFwGg6d+xy9DC0=github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA=-go.getarcane.app/acfs v0.4.0 h1:vJo+NbVYGk2hJimejFRHhkHUdQ3ob0wzuPLXG4XXW+o=-go.getarcane.app/acfs v0.4.0/go.mod h1:sU3t21KctTsQM3OW10+RNB0Z6lR+YfaSr5Nxubq3cpI=+go.getarcane.app/acfs v0.4.1 h1:R1o9lBrAWLtqY74l4nmAyMMMitPt4ctJpCOop+cZqFs=+go.getarcane.app/acfs v0.4.1/go.mod h1:sU3t21KctTsQM3OW10+RNB0Z6lR+YfaSr5Nxubq3cpI=go.getarcane.app/builds v0.3.1 h1:jymgkbcJ98o+XM9P0Ympn7m3WowWhG3vbiVwxIhhwns=go.getarcane.app/builds v0.3.1/go.mod h1:MJXC3VNSspckX6NBu+l7kBaCckuNsXIw4B8WAuxXo94=go.getarcane.app/docker/convert v0.1.0 h1:prlIOs6dMx6CdnetsJFZ6ak0vcistM3DcH5lrZiFHBU=diff --git a/backend/internal/project/lifecycle.go b/backend/internal/project/lifecycle.goindex f1b4598f7..f978390df 100644--- a/backend/internal/project/lifecycle.go+++ b/backend/internal/project/lifecycle.go@@ -117,7 +117,7 @@ func (s *LifecycleService) RunPreDeploy(ctx context.Context, project *Project, areturn nil}- sync, err := s.loadGitOpsSyncForProjectInternal(ctx, project.ID)+ sync, err := loadGitOpsSyncForProjectInternal(ctx, s.db, project.ID)if err != nil {return errors.WrapIf(err, "failed to load gitops sync for lifecycle hook")}@@ -454,13 +454,13 @@ func (s *LifecycleService) emitLifecycleEventInternal(// loadGitOpsSyncForProjectInternal returns the GitOps sync linked to the// given project, or nil if the project is not GitOps-managed. A nil sync// with nil error is a normal outcome, not a failure.-func (s *LifecycleService) loadGitOpsSyncForProjectInternal(ctx context.Context, projectID string) (*GitOpsSync, error) {+func loadGitOpsSyncForProjectInternal(ctx context.Context, db *database.DB, projectID string) (*GitOpsSync, error) {if projectID == "" {return nil, nil}var sync GitOpsSync- err := s.db.WithContext(ctx).+ err := db.WithContext(ctx).Where("project_id = ?", projectID).First(&sync).Errorif errors.Is(err, gorm.ErrRecordNotFound) {@@ -499,7 +499,18 @@ func validateScriptPathInternal(ctx context.Context, projectPath, scriptPath strentry, err := acfs.Stat(ctx, absProject, "/"+filepath.ToSlash(scriptPath), false)if err != nil {- return describeScriptStatErrorInternal(err, projectPath, scriptPath, absScript)+ if errors.Is(err, os.ErrPermission) {+ // The stat runs as Arcane's own uid, but the script executes in the+ // runner container as that image's user — which may well be able to+ // read a path Arcane cannot traverse (#3373). Proceed and let the+ // container run surface any real problem.+ slog.WarnContext(ctx, "cannot inspect pre-deploy script as the Arcane user; proceeding, the runner container may still be able to read it",+ "scriptPath", scriptPath,+ "detail", describeLifecyclePathAccessInternal(projectPath, absScript),+ )+ return nil+ }+ return errors.WrapIff(err, "stat script %q", scriptPath)}if entry.IsSymlink {return errors.Errorf("script path %q is a symlink; symlinks are not allowed", scriptPath)@@ -510,19 +521,6 @@ func validateScriptPathInternal(ctx context.Context, projectPath, scriptPath strreturn nil}-func describeScriptStatErrorInternal(err error, projectPath, scriptPath, resolvedScriptPath string) error {- if errors.Is(err, os.ErrPermission) {- return errors.WrapIff(- err,- "Arcane pre-deploy validation could not inspect script %q. %s",- scriptPath,- describeLifecyclePathAccessInternal(projectPath, resolvedScriptPath),- )- }-- return errors.WrapIff(err, "stat script %q", scriptPath)-}-// ParseEnvText reads admin-configured env config as the// same KEY=VALUE text format used by .env files: one entry per line, blank// and "#"-prefixed lines ignored, keys must match POSIX identifier syntax.diff --git a/backend/internal/project/lifecycle_test.go b/backend/internal/project/lifecycle_test.goindex f74064707..7aaf2e6a7 100644--- a/backend/internal/project/lifecycle_test.go+++ b/backend/internal/project/lifecycle_test.go@@ -192,33 +192,19 @@ func TestValidateScriptPath_RejectsMissingFile(t *testing.T) {require.Error(t, err)}-func TestDescribeScriptStatError_PermissionDeniedIsActionable(t *testing.T) {- err := describeScriptStatErrorInternal(- os.ErrPermission,- "/app/data/projects/example",- "scripts/pre-deploy.sh",- "/app/data/projects/example/scripts/pre-deploy.sh",- )-- require.Error(t, err)- require.ErrorIs(t, err, os.ErrPermission)- assert.Contains(t, err.Error(), "Arcane pre-deploy validation")- assert.Contains(t, err.Error(), "permission denied")- assert.Contains(t, err.Error(), "scripts/pre-deploy.sh")-}--func TestDescribeScriptStatError_PreservesGenericStatFailure(t *testing.T) {- err := describeScriptStatErrorInternal(- os.ErrNotExist,- "/app/data/projects/example",- "missing.sh",- "/app/data/projects/example/missing.sh",- )+func TestValidateScriptPath_PermissionDeniedProceeds(t *testing.T) {+ if os.Geteuid() == 0 {+ t.Skip("running as root; directory permissions are not enforced")+ }+ dir := writeLifecycleProjectDirWithScript(t, "scripts/pre-deploy.sh", "#!/bin/sh\necho hi\n")+ scripts := filepath.Join(dir, "scripts")+ require.NoError(t, os.Chmod(scripts, 0o000))+ t.Cleanup(func() { require.NoError(t, os.Chmod(scripts, 0o755)) })- require.Error(t, err)- require.ErrorIs(t, err, os.ErrNotExist)- assert.Contains(t, err.Error(), `stat script "missing.sh"`)- assert.NotContains(t, err.Error(), "Arcane pre-deploy validation could not inspect")+ // The runner container may still be able to read the script even though+ // Arcane's uid cannot (#3373), so the stat failure must not block the run.+ err := validateScriptPathInternal(t.Context(), dir, "scripts/pre-deploy.sh")+ require.NoError(t, err)}func TestValidateScriptPath_RejectsDirectory(t *testing.T) {@@ -434,8 +420,7 @@ func TestRunPreDeploy_PathTraversalRejected(t *testing.T) {func TestLoadGitOpsSyncForProject_ReturnsNilWhenAbsent(t *testing.T) {db := setupLifecycleTestDB(t)- svc, _ := newLifecycleTestService(t, db)- sync, err := svc.loadGitOpsSyncForProjectInternal(context.Background(), "nonexistent")+ sync, err := loadGitOpsSyncForProjectInternal(context.Background(), db, "nonexistent")require.NoError(t, err)assert.Nil(t, sync)}diff --git a/backend/internal/project/path_diagnostics_unix_test.go b/backend/internal/project/path_diagnostics_unix_test.goindex c01a7a926..175ba2d5e 100644--- a/backend/internal/project/path_diagnostics_unix_test.go+++ b/backend/internal/project/path_diagnostics_unix_test.go@@ -68,31 +68,3 @@ func TestLifecycleDiagnosticPaths_RemainsInsideProject(t *testing.T) {assert.Equal(t, filepath.Join(dir, "scripts"), got[1])assert.Equal(t, scriptPath, got[2])}--func TestValidateScriptPath_PermissionDeniedIncludesDiagnostics(t *testing.T) {- if os.Geteuid() == 0 {- t.Skip("root bypasses ordinary filesystem permission checks")- }-- dir := t.TempDir()- blockedDir := filepath.Join(dir, "blocked")- scriptPath := filepath.Join(blockedDir, "pre-deploy.sh")-- require.NoError(t, os.MkdirAll(blockedDir, 0o700))- require.NoError(t, os.WriteFile(scriptPath, []byte("#!/bin/sh\n"), 0o755))- require.NoError(t, os.Chmod(blockedDir, 0o000))- t.Cleanup(func() {- _ = os.Chmod(blockedDir, 0o700)- })-- err := validateScriptPathInternal(t.Context(), dir, "blocked/pre-deploy.sh")-- require.Error(t, err)- require.ErrorIs(t, err, os.ErrPermission)- assert.Contains(t, err.Error(), "Arcane pre-deploy validation")- assert.Contains(t, err.Error(), "Arcane process identity: uid=")- assert.Contains(t, err.Error(), blockedDir)- assert.Contains(t, err.Error(), scriptPath)- assert.Contains(t, err.Error(), "permission denied")- assert.Contains(t, err.Error(), "A script mode of 0755 is not sufficient")-}diff --git a/backend/internal/project/service_test.go b/backend/internal/project/service_test.goindex 6172c940e..b258beefc 100644--- a/backend/internal/project/service_test.go+++ b/backend/internal/project/service_test.go@@ -88,6 +88,30 @@ func TestUpdateProjectWorkspaceRejectsInvalidManifestBeforeProjectLookup(t *testrequire.ErrorContains(t, err, "revision")}+func TestValidateWorkspaceChangesAgainstGitOps(t *testing.T) {+ owned := map[string]struct{}{"compose.yaml": {}, "conf/app.conf": {}}++ err := validateWorkspaceChangesAgainstGitOpsInternal([]projecttypes.WorkspaceFileChange{+ {Operation: projecttypes.FileOpUpdateFile, RelativePath: "conf/app.conf"},+ }, owned)+ require.ErrorIs(t, err, common.ErrProjectWorkspaceForbidden)+ require.ErrorContains(t, err, "conf/app.conf")++ // Recursively deleting a folder that still holds a sync-owned file must+ // also be rejected.+ err = validateWorkspaceChangesAgainstGitOpsInternal([]projecttypes.WorkspaceFileChange{+ {Operation: projecttypes.FileOpDelete, RelativePath: "conf", Recursive: true},+ }, owned)+ require.ErrorIs(t, err, common.ErrProjectWorkspaceForbidden)++ // The operator overlay (e.g. a secret env file the repo cannot carry)+ // stays editable.+ err = validateWorkspaceChangesAgainstGitOpsInternal([]projecttypes.WorkspaceFileChange{+ {Operation: projecttypes.FileOpCreateFile, RelativePath: "app.env"},+ }, owned)+ require.NoError(t, err)+}+func newSettingsServiceForTestInternal(t *testing.T, ctx context.Context, db *database.DB) (*settings.SettingsService, error) {t.Helper()lifecycle := fxtest.NewLifecycle(t)diff --git a/backend/internal/project/workspace.go b/backend/internal/project/workspace.goindex 871014b03..9714f87ff 100644--- a/backend/internal/project/workspace.go+++ b/backend/internal/project/workspace.go@@ -6,6 +6,7 @@ import ("github.com/getarcaneapp/arcane/backend/v2/internal/database""context"+ "encoding/json/v2""io""net/http""os"@@ -48,6 +49,14 @@ func (s *ProjectService) GetProjectWorkspace(ctx context.Context, projectID striif err != nil {return nil, errors.WrapIf(err, "read project workspace")}+ if ownedPaths, ownedErr := s.gitOpsOwnedWorkspacePathsInternal(ctx, proj); ownedErr == nil && len(ownedPaths) > 0 {+ for i := range files {+ if _, ok := ownedPaths[files[i].RelativePath]; ok {+ files[i].Editable = false+ files[i].ReadOnlyReason = workspacetypes.FileReadOnlyGitOpsManaged+ }+ }+ }return &workspacetypes.Workspace{Files: files, FileTreeRevision: revision, FileTreeTruncated: truncated}, nil}@@ -93,8 +102,16 @@ func (s *ProjectService) GetProjectWorkspaceFile(ctx context.Context, projectID,response.ReadOnlyReason = workspacetypes.FileReadOnlyBinaryreturn response, nil}- response.Editable = trueresponse.Content = string(content)+ if ownedPaths, ownedErr := s.gitOpsOwnedWorkspacePathsInternal(ctx, proj); ownedErr == nil {+ if _, ok := ownedPaths[rel]; ok {+ // Sync-owned files stay viewable but read-only: git is their+ // source of truth (#3634).+ response.ReadOnlyReason = workspacetypes.FileReadOnlyGitOpsManaged+ return response, nil+ }+ }+ response.Editable = truereturn response, nil}@@ -121,8 +138,15 @@ func (s *ProjectService) UpdateProjectWorkspace(ctx context.Context, projectID sif err != nil {return nil, err}- if isGitOpsManagedProjectInternal(proj) {- return nil, common.Classify(common.ErrProjectWorkspaceForbidden, errors.New("GitOps-managed project workspaces cannot be edited"))+ // Only the paths the GitOps sync owns are locked; the rest of the+ // directory is operator-owned overlay (e.g. secret env files a public+ // repo cannot carry) and stays editable (#3634).+ ownedPaths, err := s.gitOpsOwnedWorkspacePathsInternal(ctx, proj)+ if err != nil {+ return nil, err+ }+ if err := validateWorkspaceChangesAgainstGitOpsInternal(manifest.FileChanges, ownedPaths); err != nil {+ return nil, err}if err := s.EnsureProjectPathUnderRoot(ctx, proj, true); err != nil {return nil, err@@ -221,19 +245,7 @@ func (s *ProjectService) projectWorkspaceApplyOptionsInternal(ctx context.Contexfunc (s *ProjectService) prepareProjectWorkspaceBackupInternal(ctx context.Context, projectsDirectory, projectPath string, changes []projecttypes.WorkspaceFileChange) (*projects.ProjectUpdateBackup, func(), error) {scope := projects.ProjectUpdateBackupScope{}for _, change := range changes {- rel, err := utils.NormalizeRelativePath(change.RelativePath)- if err != nil {- continue- }- scope.Paths = append(scope.Paths, rel)- switch change.Operation {- case projecttypes.FileOpRename:- if newName, nameErr := utils.ValidateFileName(change.NewName); nameErr == nil {- scope.Paths = append(scope.Paths, filepath.ToSlash(filepath.Join(filepath.Dir(rel), newName)))- }- case projecttypes.FileOpMove:- scope.Paths = append(scope.Paths, filepath.ToSlash(filepath.Join(change.NewParentPath, filepath.Base(rel))))- }+ scope.Paths = append(scope.Paths, workspaceChangeTargetPathsInternal(change)...)}backup, err := backupProjectDirectoryInternal(ctx, projectsDirectory, projectPath, scope)if err != nil {@@ -250,6 +262,97 @@ func isGitOpsManagedProjectInternal(proj *Project) bool {return proj != nil && proj.GitOpsManagedBy != nil && strings.TrimSpace(*proj.GitOpsManagedBy) != ""}+// gitOpsOwnedWorkspacePathsInternal returns the workspace-relative paths owned+// by the project's GitOps sync — the files git writes on every sync. Only+// these are locked for workspace editing; anything else in the directory is+// operator-owned overlay (secret env files, bind-mounted configs) that the+// sync engine deliberately never prunes (#3634). Returns nil for projects+// without a live sync, including a stale gitops_managed_by marker.+func (s *ProjectService) gitOpsOwnedWorkspacePathsInternal(ctx context.Context, proj *Project) (map[string]struct{}, error) {+ if !isGitOpsManagedProjectInternal(proj) {+ return nil, nil+ }+ sync, err := loadGitOpsSyncForProjectInternal(ctx, s.db, proj.ID)+ if err != nil {+ return nil, errors.WrapIf(err, "load gitops sync for workspace")+ }+ if sync == nil {+ return nil, nil+ }++ owned := make(map[string]struct{})+ add := func(p string) {+ if rel, err := utils.NormalizeRelativePath(p); err == nil {+ owned[rel] = struct{}{}+ }+ }+ if sync.SyncedFiles != nil && *sync.SyncedFiles != "" {+ var files []string+ // Fail closed: an incomplete ownership set would expose synced files+ // as editable, and the next sync would silently overwrite the edits.+ if err := json.Unmarshal([]byte(*sync.SyncedFiles), &files); err != nil {+ return nil, errors.WrapIf(err, "parse gitops synced files for workspace")+ }+ for _, f := range files {+ add(f)+ }+ }+ if sync.ComposePath != "" {+ add(filepath.Base(sync.ComposePath))+ }+ return owned, nil+}++// workspaceChangeTargetPathsInternal lists every normalized project-relative+// path a workspace file change can create, overwrite or delete. Shared by the+// backup scope and the GitOps ownership check so the two cannot diverge.+func workspaceChangeTargetPathsInternal(change projecttypes.WorkspaceFileChange) []string {+ rel, err := utils.NormalizeRelativePath(change.RelativePath)+ if err != nil {+ return nil+ }+ paths := []string{rel}+ switch change.Operation {+ case projecttypes.FileOpRename:+ if newName, nameErr := utils.ValidateFileName(change.NewName); nameErr == nil {+ paths = append(paths, filepath.ToSlash(filepath.Join(filepath.Dir(rel), newName)))+ }+ case projecttypes.FileOpMove:+ paths = append(paths, filepath.ToSlash(filepath.Join(change.NewParentPath, filepath.Base(rel))))+ }+ return paths+}++// validateWorkspaceChangesAgainstGitOpsInternal rejects file changes that+// touch a sync-owned path, directly or by deleting/renaming a folder that+// still holds one.+func validateWorkspaceChangesAgainstGitOpsInternal(changes []projecttypes.WorkspaceFileChange, owned map[string]struct{}) error {+ if len(owned) == 0 {+ return nil+ }+ touchesOwned := func(target string) bool {+ if _, ok := owned[target]; ok {+ return true+ }+ prefix := target + "/"+ for ownedPath := range owned {+ if strings.HasPrefix(ownedPath, prefix) {+ return true+ }+ }+ return false+ }+ for _, change := range changes {+ for _, target := range workspaceChangeTargetPathsInternal(change) {+ if touchesOwned(target) {+ return common.Classify(common.ErrProjectWorkspaceForbidden,+ errors.Errorf("%q is managed by git sync and can only be changed in the git repository", target))+ }+ }+ }+ return nil+}+func wrapProjectWorkspaceErrorInternal(err error) error {switch {case errors.Is(err, projects.ErrProjectWorkspaceRevisionConflict):diff --git a/cli/go.mod b/cli/go.modindex 98bd11bff..efc6c54b2 100644--- a/cli/go.mod+++ b/cli/go.mod@@ -20,7 +20,7 @@ require (github.com/spf13/pflag v1.0.10github.com/spf13/viper v1.21.0github.com/stretchr/testify v1.11.1- go.getarcane.app/acfs v0.4.0+ go.getarcane.app/acfs v0.4.1go.getarcane.app/sys/bytes v0.1.0)diff --git a/cli/go.sum b/cli/go.sumindex 45df1b21d..9d69a8dc4 100644--- a/cli/go.sum+++ b/cli/go.sum@@ -170,8 +170,8 @@ github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=-go.getarcane.app/acfs v0.4.0 h1:vJo+NbVYGk2hJimejFRHhkHUdQ3ob0wzuPLXG4XXW+o=-go.getarcane.app/acfs v0.4.0/go.mod h1:sU3t21KctTsQM3OW10+RNB0Z6lR+YfaSr5Nxubq3cpI=+go.getarcane.app/acfs v0.4.1 h1:R1o9lBrAWLtqY74l4nmAyMMMitPt4ctJpCOop+cZqFs=+go.getarcane.app/acfs v0.4.1/go.mod h1:sU3t21KctTsQM3OW10+RNB0Z6lR+YfaSr5Nxubq3cpI=go.getarcane.app/sys/bytes v0.1.0 h1:snAEkCKzzd7PQ4bAI4gYx92YjZL4ZZK43Z/8y/P5uro=go.getarcane.app/sys/bytes v0.1.0/go.mod h1:R2mujqg+MmC2tr+97IPqaxzvBC8+ykng+5r+XNxwY+8=go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=diff --git a/frontend/messages/en.json b/frontend/messages/en.jsonindex eb7f8bf1b..a87db5246 100644--- a/frontend/messages/en.json+++ b/frontend/messages/en.json@@ -2675,12 +2675,13 @@"workspace_large_readonly": "Files larger than {maxFileSizeMb} MiB cannot be edited in the workspace.","workspace_symlink_readonly": "Symbolic links are read-only in the workspace.","workspace_special_readonly": "Special files are read-only in the workspace.",+ "workspace_gitops_readonly": "This file is managed by Git sync and can only be changed in the Git repository.","workspace_readonly": "This file is read-only.","workspace_restore": "Restore","workspace_file_expand_folder": "Expand {name}","workspace_file_collapse_folder": "Collapse {name}","projects_workspace_saved_configuration_failed": "Workspace changes were saved, but project configuration failed: {error}",- "projects_workspace_readonly_git": "Git-managed project workspace files are read-only.",+ "projects_workspace_readonly_git": "Files synced from the Git repository are read-only; other files can be edited here.","projects_workspace_not_loaded": "Project workspace is not loaded.","project_view_description": "Toggle workspace mode","environments_created_title": "Environment Created Successfully",diff --git a/frontend/src/lib/types/workspace.ts b/frontend/src/lib/types/workspace.tsindex f103bcbf9..e19ca4973 100644--- a/frontend/src/lib/types/workspace.ts+++ b/frontend/src/lib/types/workspace.ts@@ -1,4 +1,4 @@-export type WorkspaceReadOnlyReason = 'binary' | 'too_large' | 'symlink' | 'special';+export type WorkspaceReadOnlyReason = 'binary' | 'too_large' | 'symlink' | 'special' | 'gitops_managed';export interface WorkspaceFileEntry {path: string;diff --git a/frontend/src/lib/utils/workspace-files.ts b/frontend/src/lib/utils/workspace-files.tsindex e14e416b4..a16e2becc 100644--- a/frontend/src/lib/utils/workspace-files.ts+++ b/frontend/src/lib/utils/workspace-files.ts@@ -172,6 +172,7 @@ export function workspaceReadOnlyMessage(reason: WorkspaceReadOnlyReason | undefif (reason === 'too_large') return m.workspace_large_readonly({ maxFileSizeMb });if (reason === 'symlink') return m.workspace_symlink_readonly();if (reason === 'special') return m.workspace_special_readonly();+ if (reason === 'gitops_managed') return m.workspace_gitops_readonly();return m.workspace_readonly();}diff --git a/frontend/src/routes/(app)/projects/[projectId]/+page.svelte b/frontend/src/routes/(app)/projects/[projectId]/+page.svelteindex e10413b95..8f5b11e9e 100644--- a/frontend/src/routes/(app)/projects/[projectId]/+page.svelte+++ b/frontend/src/routes/(app)/projects/[projectId]/+page.svelte@@ -278,7 +278,10 @@// Override edits are blocked for GitOps-managed projects, mirroring canEditCompose.let canEditOverride = $derived(canUpdateProject && !project?.isArchived && !isGitOpsManaged);let canEditEnv = $derived(canUpdateProject && !project?.isArchived);- let canEditProjectWorkspace = $derived(canUpdateProject && !project?.isArchived && !isGitOpsManaged);+ // GitOps-managed projects keep workspace editing for operator-owned files+ // (secret env files, bind-mounted configs); the backend rejects and marks+ // read-only the paths the sync itself owns.+ let canEditProjectWorkspace = $derived(canUpdateProject && !project?.isArchived);let composeFileName = $derived(project?.composeFileName || 'compose.yaml');// Set when the user opts to add an override to a project that has none yet.let overrideEditorRequested = $state(false);diff --git a/go.work.sum b/go.work.sumindex d79acda96..8e08dba21 100644--- a/go.work.sum+++ b/go.work.sum@@ -2017,8 +2017,8 @@ go.etcd.io/raft/v3 v3.6.0 h1:5NtvbDVYpnfZWcIHgGRk9DyzkBIXOi8j+DDp1IcnUWQ=go.etcd.io/raft/v3 v3.6.0/go.mod h1:nLvLevg6+xrVtHUmVaTcTz603gQPHfh7kUAwV6YpfGo=go.getarcane.app/acfs v0.2.0 h1:m7yXsLIB4MfsAE/AFP54RgtMXUr+AFEVCNiF5784XYI=go.getarcane.app/acfs v0.2.0/go.mod h1:sU3t21KctTsQM3OW10+RNB0Z6lR+YfaSr5Nxubq3cpI=-go.getarcane.app/streams v0.4.0 h1:MtBX1SVgt3nrcRNr5SYAvckGp9a5qeSjMTw/LAGwlzk=-go.getarcane.app/streams v0.4.0/go.mod h1:LHMKblQvsL1nqKh/Y+KgQbwFSMI2I7bs9u8ZwZqzjnQ=+go.getarcane.app/acfs v0.4.1 h1:R1o9lBrAWLtqY74l4nmAyMMMitPt4ctJpCOop+cZqFs=+go.getarcane.app/acfs v0.4.1/go.mod h1:sU3t21KctTsQM3OW10+RNB0Z6lR+YfaSr5Nxubq3cpI=go.getarcane.app/updater v0.3.6 h1:+BqoycaRsHj+cLVSzcYQuqbHxUKbtmaozMNblz5bVSw=go.getarcane.app/updater v0.3.6/go.mod h1:2ENitZR/lA5MuBn60OZYR5wvU3ZCE+pAgfrebfOlRDA=go.getarcane.app/updater v0.3.7 h1:WqHsxudvt8gvCR7iSHdxdzwH0+hM0FAh64bSypBX9Mo=diff --git a/types/coverage.txt b/types/coverage.txtdeleted file mode 100644index d91eb3668..000000000--- a/types/coverage.txt+++ /dev/null@@ -1,342 +0,0 @@-mode: atomic-github.com/getarcaneapp/arcane/types/v2/base/json.go:18.51,19.14 1 0-github.com/getarcaneapp/arcane/types/v2/base/json.go:19.14,21.3 1 0-github.com/getarcaneapp/arcane/types/v2/base/json.go:22.2,22.24 1 0-github.com/getarcaneapp/arcane/types/v2/base/json.go:29.44,30.18 1 0-github.com/getarcaneapp/arcane/types/v2/base/json.go:30.18,33.3 2 0-github.com/getarcaneapp/arcane/types/v2/base/json.go:34.2,34.27 1 0-github.com/getarcaneapp/arcane/types/v2/base/json.go:35.14,36.30 1 0-github.com/getarcaneapp/arcane/types/v2/base/json.go:37.14,38.38 1 0-github.com/getarcaneapp/arcane/types/v2/base/json.go:39.10,40.32 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:938.46,940.31 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:940.31,942.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:944.2,945.28 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:945.28,952.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:954.2,955.29 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:955.29,966.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:968.2,969.67 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:969.67,970.51 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:970.51,972.4 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:975.2,993.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:997.55,1017.2 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1019.73,1021.60 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1021.60,1023.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1025.2,1025.49 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1025.49,1030.25 3 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1030.25,1035.12 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1038.3,1038.30 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1038.30,1046.4 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1049.2,1049.14 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1052.67,1054.32 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1054.32,1065.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1067.2,1067.15 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1070.96,1072.63 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1072.63,1074.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1076.2,1076.48 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1076.48,1078.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1080.2,1080.17 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1083.72,1084.23 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1084.23,1086.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1088.2,1094.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1097.85,1099.19 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1099.19,1101.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1103.2,1111.41 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1111.41,1120.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1122.2,1122.26 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1122.26,1124.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1126.2,1126.34 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1129.52,1130.18 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1130.18,1132.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1134.2,1142.25 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1142.25,1144.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1146.2,1146.20 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1149.57,1151.35 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1151.35,1152.19 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1152.19,1153.12 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1156.3,1161.5 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1164.2,1168.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1171.44,1172.16 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1172.16,1174.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1175.2,1175.56 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1178.60,1180.17 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1180.17,1182.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1184.2,1185.17 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1185.17,1187.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1189.2,1193.76 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1193.76,1195.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1196.2,1196.78 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1196.78,1198.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1200.2,1200.20 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1203.71,1204.14 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1204.14,1206.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1208.2,1209.25 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1209.25,1211.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1213.2,1214.25 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1214.25,1216.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1218.2,1219.27 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1219.27,1221.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1223.2,1224.29 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1224.29,1226.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1228.2,1229.35 2 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1229.35,1231.3 1 0-github.com/getarcaneapp/arcane/types/v2/container/container.go:1233.2,1249.3 1 0-github.com/getarcaneapp/arcane/types/v2/gitops/gitops.go:583.54,590.2 1 0-github.com/getarcaneapp/arcane/types/v2/gitops/gitops.go:594.54,601.2 1 0-github.com/getarcaneapp/arcane/types/v2/meta/job_metadata.go:198.55,201.2 2 0-github.com/getarcaneapp/arcane/types/v2/meta/job_metadata.go:203.49,205.2 1 0-github.com/getarcaneapp/arcane/types/v2/meta/job_metadata.go:207.155,222.2 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:236.56,239.48 2 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:239.48,241.3 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:241.8,243.3 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:245.2,249.38 2 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:249.38,250.22 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:250.22,252.4 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:252.9,252.30 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:252.30,254.4 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:256.2,256.12 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:417.48,418.38 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:418.38,420.3 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:421.2,421.62 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:421.62,423.3 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:424.2,424.20 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:428.70,429.28 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:429.28,431.3 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:432.2,432.19 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:432.19,434.3 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:435.2,435.12 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:442.65,444.16 2 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:444.16,446.3 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:448.2,455.23 7 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:455.23,456.39 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:456.39,458.43 2 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:458.43,460.5 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:462.3,462.30 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:462.30,464.4 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:465.3,465.30 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:465.30,467.4 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:468.3,468.34 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:468.34,470.38 2 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:470.38,472.5 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:474.3,475.50 2 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:478.2,482.28 4 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:482.28,484.34 2 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:484.34,486.4 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:489.2,490.32 2 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:490.32,492.3 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:494.2,494.40 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:494.40,496.3 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:499.2,501.30 3 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:501.30,503.22 2 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:503.22,505.4 1 0-github.com/getarcaneapp/arcane/types/v2/image/image.go:508.2,508.12 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:269.76,280.19 2 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:280.19,282.3 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:284.2,284.13 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:287.34,288.8 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:288.8,290.3 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:292.2,292.11 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:295.44,301.33 2 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:301.33,302.51 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:302.51,304.4 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:307.2,307.19 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:310.68,314.47 3 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:314.47,317.3 2 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:318.2,318.46 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:318.46,321.3 2 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:322.2,322.48 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:322.48,325.3 2 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:326.2,326.58 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:326.58,329.3 2 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:331.2,331.26 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:334.51,336.16 2 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:336.16,338.3 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:340.2,340.21 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:343.47,345.16 2 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:345.16,347.3 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:349.2,349.19 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:352.74,353.26 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:353.26,355.3 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:357.2,358.39 2 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:358.39,359.43 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:359.43,361.4 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:364.2,364.12 1 0-github.com/getarcaneapp/arcane/types/v2/network/network.go:385.44,400.2 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:369.122,388.45 2 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:388.45,389.50 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:389.50,394.25 3 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:395.26,396.30 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:397.22,398.26 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:399.24,400.28 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:401.21,402.25 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:403.25,404.29 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:405.12,406.29 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:408.4,408.26 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:412.2,412.15 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:415.70,428.22 2 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:428.22,430.36 2 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:430.36,431.28 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:431.28,434.5 2 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:435.4,435.28 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:435.28,438.5 2 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:440.3,440.43 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:440.43,442.4 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:446.2,446.28 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:446.28,447.71 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:447.71,449.4 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:451.2,451.31 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:451.31,452.74 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:452.74,454.4 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:457.2,457.13 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:460.39,461.11 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:462.18,463.26 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:464.14,465.22 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:466.16,467.24 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:468.13,469.21 1 0-github.com/getarcaneapp/arcane/types/v2/vulnerability/vulnerability.go:470.10,471.25 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:92.60,94.52 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:94.52,96.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:98.2,101.16 3 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:101.16,103.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:104.2,107.16 3 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:107.16,109.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:110.2,113.16 3 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:113.16,115.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:116.2,119.16 3 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:119.16,121.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:122.2,125.16 3 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:125.16,127.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:128.2,130.12 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:133.100,134.44 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:134.44,136.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:138.2,139.54 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:139.54,140.15 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:140.15,142.4 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:143.3,143.71 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:146.2,147.54 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:147.54,149.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:150.2,150.22 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:153.108,154.44 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:154.44,156.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:158.2,159.54 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:159.54,160.15 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:160.15,162.4 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:163.3,164.36 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:164.36,166.4 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:167.3,167.46 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:170.2,171.54 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:171.54,173.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:174.2,174.22 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:177.110,178.44 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:178.44,180.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:182.2,183.54 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:183.54,184.15 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:184.15,186.4 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:187.3,188.36 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:188.36,190.4 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:191.3,191.47 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:194.2,195.54 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:195.54,197.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:198.2,198.22 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:201.96,202.44 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:202.44,204.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:206.2,207.54 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:207.54,208.15 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:208.15,210.4 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:211.3,211.66 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:214.2,215.54 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:215.54,217.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:218.2,218.22 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:221.116,222.44 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:222.44,224.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:226.2,227.54 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:227.54,228.15 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:228.15,230.4 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:231.3,232.36 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:232.36,234.4 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:235.3,235.50 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:238.2,239.54 2 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:239.54,241.3 1 0-github.com/getarcaneapp/arcane/types/v2/system/prune.go:242.2,242.22 1 0-github.com/getarcaneapp/arcane/types/v2/volume/volume.go:136.41,138.62 2 0-github.com/getarcaneapp/arcane/types/v2/volume/volume.go:138.62,140.3 1 0-github.com/getarcaneapp/arcane/types/v2/volume/volume.go:142.2,154.24 2 0-github.com/getarcaneapp/arcane/types/v2/volume/volume.go:154.24,158.3 3 0-github.com/getarcaneapp/arcane/types/v2/volume/volume.go:160.2,160.12 1 0-github.com/getarcaneapp/arcane/types/v2/scheduler/job.go:86.36,86.56 1 0-github.com/getarcaneapp/arcane/types/v2/scheduler/job.go:88.59,88.87 1 0-github.com/getarcaneapp/arcane/types/v2/scheduler/job.go:90.47,90.63 1 0-github.com/getarcaneapp/arcane/types/v2/scheduler/job.go:95.63,96.26 1 0-github.com/getarcaneapp/arcane/types/v2/scheduler/job.go:96.26,98.3 1 0-github.com/getarcaneapp/arcane/types/v2/scheduler/job.go:99.2,99.27 1 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:14.121,16.16 2 2-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:16.16,18.3 1 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:20.2,20.22 1 2-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:21.25,22.13 1 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:23.27,25.17 2 1-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:25.17,27.4 1 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:28.3,29.13 2 1-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:30.27,33.17 3 1-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:33.17,35.23 2 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:35.23,37.5 1 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:38.4,39.37 2 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:39.37,41.5 1 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:43.3,44.13 2 1-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:47.50,48.79 1 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:51.2,51.78 1 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:56.59,58.2 1 0-github.com/getarcaneapp/arcane/types/v2/project/marshal_utils.go:62.52,64.2 1 2-github.com/getarcaneapp/arcane/types/v2/project/project.go:359.34,370.2 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/config_secret.go:42.55,50.2 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/config_secret.go:60.58,68.2 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/node.go:165.50,169.31 4 0-github.com/getarcaneapp/arcane/types/v2/swarm/node.go:169.31,170.32 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/node.go:170.32,172.4 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/node.go:172.9,174.4 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/node.go:175.3,176.43 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/node.go:179.2,180.88 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/node.go:180.88,182.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/node.go:184.2,203.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:314.117,320.9 5 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:321.35,323.43 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:323.43,325.4 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:326.31,328.35 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:328.35,330.4 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:331.38,333.10 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:334.56,335.56 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:336.53,337.53 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:338.11,339.16 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:341.34,343.35 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:343.35,345.4 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:348.2,348.34 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:348.34,350.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:352.2,353.44 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:353.44,355.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:357.2,358.25 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:358.25,360.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:361.2,362.33 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:362.33,369.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:371.2,372.24 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:372.24,374.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:377.2,379.35 3 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:379.35,380.48 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:380.48,382.4 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:382.9,382.32 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:382.32,384.4 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:384.9,386.4 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:390.2,391.44 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:391.44,392.60 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:392.60,399.4 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:402.2,402.22 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:402.22,404.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:406.2,421.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/service.go:433.62,443.2 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/swarm.go:48.44,56.2 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/task.go:92.80,94.21 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/task.go:94.21,96.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/task.go:98.2,99.36 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/task.go:99.36,101.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/task.go:103.2,104.40 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/task.go:104.40,106.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/task.go:108.2,109.24 2 0-github.com/getarcaneapp/arcane/types/v2/swarm/task.go:109.24,111.3 1 0-github.com/getarcaneapp/arcane/types/v2/swarm/task.go:113.2,130.3 2 0diff --git a/types/workspace/workspace.go b/types/workspace/workspace.goindex 7f0aa0679..07a3107cc 100644--- a/types/workspace/workspace.go+++ b/types/workspace/workspace.go@@ -12,10 +12,11 @@ const ()const (- FileReadOnlyBinary = "binary"- FileReadOnlyTooLarge = "too_large"- FileReadOnlySymlink = "symlink"- FileReadOnlySpecial = "special"+ FileReadOnlyBinary = "binary"+ FileReadOnlyTooLarge = "too_large"+ FileReadOnlySymlink = "symlink"+ FileReadOnlySpecial = "special"+ FileReadOnlyGitOpsManaged = "gitops_managed")type FileEntry struct {@@ -29,7 +30,7 @@ type FileEntry struct {IsDirectory bool `json:"isDirectory" doc:"Whether this entry is a directory"`IsSymlink bool `json:"isSymlink" doc:"Whether this entry is a symbolic link"`Editable bool `json:"editable" doc:"Whether this entry can be edited"`- ReadOnlyReason string `json:"readOnlyReason,omitempty" enum:"binary,too_large,symlink,special"`+ ReadOnlyReason string `json:"readOnlyReason,omitempty" enum:"binary,too_large,symlink,special,gitops_managed"`}type FileChange struct {@@ -63,5 +64,5 @@ type FileContent struct {MimeType string `json:"mimeType"`Size int64 `json:"size"`Editable bool `json:"editable"`- ReadOnlyReason string `json:"readOnlyReason,omitempty" enum:"binary,too_large,symlink,special"`+ ReadOnlyReason string `json:"readOnlyReason,omitempty" enum:"binary,too_large,symlink,special,gitops_managed"`}