@synopackageland/cli 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +124 -0
- package/README.md +26 -4
- package/dist/add.js +4 -17
- package/dist/authorization-sdk.d.ts +0 -1
- package/dist/authorization-sdk.js +0 -1
- package/dist/build-spk/gateway.js +2 -2
- package/dist/build-spk/notices.js +12 -8
- package/dist/capability-overlays.d.ts +15 -0
- package/dist/capability-overlays.js +18 -0
- package/dist/cli-version.d.ts +2 -0
- package/dist/cli-version.js +3 -0
- package/dist/cli.js +3 -1
- package/dist/error-registry.js +12 -4
- package/dist/info.js +2 -1
- package/dist/init.js +52 -58
- package/dist/reproducible.js +1 -1
- package/dist/runtime/delegate-contract.d.ts +15 -0
- package/dist/runtime/delegate-contract.js +2 -0
- package/dist/runtime/executor-build.d.ts +15 -1
- package/dist/runtime/executor-build.js +42 -11
- package/dist/runtime/executor-digests.json +13 -0
- package/dist/runtime/executor-inspect.d.ts +1 -0
- package/dist/runtime/executor-inspect.js +5 -2
- package/dist/runtime/executor-policy.d.ts +3 -1
- package/dist/runtime/executor-policy.js +7 -2
- package/dist/runtime/executor-source.d.ts +21 -0
- package/dist/runtime/executor-source.js +35 -0
- package/dist/runtime/executor-tasks.d.ts +5 -2
- package/dist/runtime/executor-tasks.js +6 -4
- package/dist/runtime/sdk-source.d.ts +31 -0
- package/dist/runtime/sdk-source.js +92 -0
- package/dist/standalone/api-permissions.d.ts +4 -1
- package/dist/standalone/api-permissions.js +10 -18
- package/dist/standalone/build.d.ts +1 -0
- package/dist/standalone/build.js +11 -4
- package/dist/standalone/daemon.js +2 -2
- package/dist/standalone/dsm-window.js +2 -2
- package/dist/standalone/manifest.d.ts +5 -2
- package/dist/standalone/manifest.js +9 -3
- package/dist/standalone/root-window.d.ts +1 -1
- package/dist/standalone/root-window.js +0 -1
- package/dist/standalone/sdk-check.d.ts +9 -0
- package/dist/standalone/sdk-check.js +43 -0
- package/dist/standalone/spk.js +1 -1
- package/dist/template-paths.d.ts +7 -2
- package/dist/template-paths.js +18 -6
- package/package.json +13 -3
- package/dist/templates/_executor/README.md +0 -318
- package/dist/templates/_executor/anchor.go +0 -156
- package/dist/templates/_executor/anchor_test.go +0 -161
- package/dist/templates/_executor/apppriv_review_test.go +0 -28
- package/dist/templates/_executor/auth_presence_review_test.go +0 -38
- package/dist/templates/_executor/cancel_contract_test.go +0 -236
- package/dist/templates/_executor/cmd/lifecycle/main.go +0 -42
- package/dist/templates/_executor/cookie_review_test.go +0 -27
- package/dist/templates/_executor/copy.go +0 -64
- package/dist/templates/_executor/copy_test.go +0 -88
- package/dist/templates/_executor/digest_review_test.go +0 -120
- package/dist/templates/_executor/directories.go +0 -40
- package/dist/templates/_executor/dsm.go +0 -369
- package/dist/templates/_executor/dsm_test.go +0 -290
- package/dist/templates/_executor/executor.go +0 -735
- package/dist/templates/_executor/executor_test.go +0 -314
- package/dist/templates/_executor/go.mod +0 -5
- package/dist/templates/_executor/identity.go +0 -74
- package/dist/templates/_executor/identity_kernel_linux_test.go +0 -60
- package/dist/templates/_executor/identity_linux.go +0 -82
- package/dist/templates/_executor/identity_security_test.go +0 -43
- package/dist/templates/_executor/internal/lifecycle/lifecycle.go +0 -95
- package/dist/templates/_executor/internal/lifecycle/lifecycle_test.go +0 -232
- package/dist/templates/_executor/internal/taskscript/boot.sh +0 -31
- package/dist/templates/_executor/internal/taskscript/cmd/main.go +0 -19
- package/dist/templates/_executor/internal/taskscript/control.sh +0 -31
- package/dist/templates/_executor/internal/taskscript/tasks.go +0 -44
- package/dist/templates/_executor/json_review_test.go +0 -40
- package/dist/templates/_executor/lifecycle_test.go +0 -97
- package/dist/templates/_executor/link_linux.go +0 -28
- package/dist/templates/_executor/long_running_test.go +0 -530
- package/dist/templates/_executor/main.go +0 -576
- package/dist/templates/_executor/managed.go +0 -117
- package/dist/templates/_executor/managed_test.go +0 -137
- package/dist/templates/_executor/move_linux.go +0 -490
- package/dist/templates/_executor/move_linux_test.go +0 -460
- package/dist/templates/_executor/move_validation.go +0 -46
- package/dist/templates/_executor/move_validation_test.go +0 -187
- package/dist/templates/_executor/operations.go +0 -926
- package/dist/templates/_executor/path_test.go +0 -35
- package/dist/templates/_executor/pid.go +0 -37
- package/dist/templates/_executor/pid_test.go +0 -113
- package/dist/templates/_executor/platform_linux.go +0 -187
- package/dist/templates/_executor/platform_linux_test.go +0 -191
- package/dist/templates/_executor/platform_other.go +0 -76
- package/dist/templates/_executor/process.go +0 -142
- package/dist/templates/_executor/purge_log.go +0 -18
- package/dist/templates/_executor/records.go +0 -242
- package/dist/templates/_executor/scope_cancel_contract_test.go +0 -91
- package/dist/templates/_executor/scope_client.go +0 -37
- package/dist/templates/_executor/scope_contract.go +0 -12
- package/dist/templates/_executor/selected_scope.go +0 -146
- package/dist/templates/_executor/selected_scope_test.go +0 -186
- package/dist/templates/_executor/socket_linux_test.go +0 -46
- package/dist/templates/_executor/status_disabled_test.go +0 -33
- package/dist/templates/_executor/store.go +0 -91
- package/dist/templates/_executor/supervise.go +0 -109
- package/dist/templates/_executor/supervise_test.go +0 -130
- package/dist/templates/_executor/task_race_review_test.go +0 -47
- package/dist/templates/_executor/tasks.go +0 -320
- package/dist/templates/_executor/tasks_dsm71_test.go +0 -114
- package/dist/templates/_executor/tasks_review_test.go +0 -43
- package/dist/templates/_executor/tasks_test.go +0 -223
- package/dist/templates/_executor/testdata/evidence/cleanup.json +0 -24
- package/dist/templates/_executor/testdata/evidence/final-smoke.jsonl +0 -9
- package/dist/templates/_executor/testdata/evidence/kernel-acl.json +0 -6
- package/dist/templates/_executor/testdata/evidence/linux-tests.log +0 -123
- package/dist/templates/_executor/testdata/evidence/live.jsonl +0 -23
- package/dist/templates/_executor/testdata/evidence/storage.json +0 -90
- package/dist/templates/_executor/testdata/evidence/validation.json +0 -55
- package/dist/templates/_executor/testdata/live_probe.py +0 -98
- package/dist/templates/_executor/upgrade_watch_test.go +0 -244
- package/dist/templates/_executor/watch.go +0 -164
- package/dist/templates/_executor/watch_test.go +0 -291
- package/dist/templates/_executor/write_review_linux_test.go +0 -87
- package/dist/templates/_shared/AGENTS.md +0 -146
- package/dist/templates/_shared/CLAUDE.md +0 -1
- package/dist/templates/_shared/third-party-notices.mjs +0 -51
- package/dist/templates/binary/LICENSES/GO-LICENSE +0 -27
- package/dist/templates/binary/LICENSES/GO-PATENTS +0 -22
- package/dist/templates/binary/dsm-package.yaml +0 -46
- package/dist/templates/binary/example/main.go +0 -16
- package/dist/templates/binary/gitignore +0 -2
- package/dist/templates/binary/i18n/messages/de.json +0 -4
- package/dist/templates/binary/i18n/messages/en.json +0 -4
- package/dist/templates/binary/i18n/messages/es.json +0 -4
- package/dist/templates/binary/i18n/messages/fr.json +0 -4
- package/dist/templates/binary/i18n/messages/it.json +0 -4
- package/dist/templates/binary/i18n/messages/ja.json +0 -4
- package/dist/templates/binary/i18n/messages/ko.json +0 -4
- package/dist/templates/binary/i18n/messages/zh-CN.json +0 -4
- package/dist/templates/binary/i18n/messages/zh-TW.json +0 -4
- package/dist/templates/binary/ui/app.css +0 -4
- package/dist/templates/binary/ui/app.js +0 -32
- package/dist/templates/compose/compose.yaml +0 -8
- package/dist/templates/compose/synology-app.yaml +0 -16
- package/dist/templates/native-authorization/AuthorizationGate.vue +0 -91
- package/dist/templates/native-authorization/i18n/de.json +0 -37
- package/dist/templates/native-authorization/i18n/en.json +0 -37
- package/dist/templates/native-authorization/i18n/es.json +0 -37
- package/dist/templates/native-authorization/i18n/fr.json +0 -37
- package/dist/templates/native-authorization/i18n/index.ts +0 -15
- package/dist/templates/native-authorization/i18n/it.json +0 -37
- package/dist/templates/native-authorization/i18n/ja.json +0 -37
- package/dist/templates/native-authorization/i18n/ko.json +0 -37
- package/dist/templates/native-authorization/i18n/zh-CN.json +0 -37
- package/dist/templates/native-authorization/i18n/zh-TW.json +0 -37
- package/dist/templates/native-go/README.md +0 -459
- package/dist/templates/native-go/backend/THIRD_PARTY_NOTICES.txt +0 -61
- package/dist/templates/native-go/backend/cmd/app/main.go +0 -95
- package/dist/templates/native-go/backend/cmd/background-worker/main.go +0 -38
- package/dist/templates/native-go/backend/go.mod +0 -9
- package/dist/templates/native-go/backend/go.sum +0 -4
- package/dist/templates/native-go/backend/internal/api/cgi_framing_test.go +0 -32
- package/dist/templates/native-go/backend/internal/api/cookie_review_test.go +0 -28
- package/dist/templates/native-go/backend/internal/api/deadline_test.go +0 -114
- package/dist/templates/native-go/backend/internal/api/dsm-session.go +0 -54
- package/dist/templates/native-go/backend/internal/api/dsm-session_test.go +0 -51
- package/dist/templates/native-go/backend/internal/api/entry_test.go +0 -47
- package/dist/templates/native-go/backend/internal/api/errors.go +0 -47
- package/dist/templates/native-go/backend/internal/api/permissions.go +0 -161
- package/dist/templates/native-go/backend/internal/api/permissions.json +0 -5
- package/dist/templates/native-go/backend/internal/api/permissions_test.go +0 -113
- package/dist/templates/native-go/backend/internal/api/policy_fixture_test.go +0 -8
- package/dist/templates/native-go/backend/internal/api/registry.go +0 -142
- package/dist/templates/native-go/backend/internal/api/registry_test.go +0 -344
- package/dist/templates/native-go/backend/internal/api/resource_limits_test.go +0 -87
- package/dist/templates/native-go/backend/internal/api/sdk-permissions.json +0 -59
- package/dist/templates/native-go/backend/internal/api/sdk_policy_test.go +0 -31
- package/dist/templates/native-go/backend/internal/api/server.go +0 -305
- package/dist/templates/native-go/backend/internal/api/testdata/permissions-cases.json +0 -172
- package/dist/templates/native-go/backend/internal/app/background.go +0 -249
- package/dist/templates/native-go/backend/internal/app/background_none.go +0 -8
- package/dist/templates/native-go/backend/internal/app/background_owner.go +0 -38
- package/dist/templates/native-go/backend/internal/app/background_owner_test.go +0 -163
- package/dist/templates/native-go/backend/internal/app/background_schedule.go +0 -69
- package/dist/templates/native-go/backend/internal/app/background_schedule_test.go +0 -62
- package/dist/templates/native-go/backend/internal/app/background_test.go +0 -320
- package/dist/templates/native-go/backend/internal/app/delegate_config.go +0 -57
- package/dist/templates/native-go/backend/internal/app/delegate_config_test.go +0 -28
- package/dist/templates/native-go/backend/internal/app/delegate_none.go +0 -5
- package/dist/templates/native-go/backend/internal/app/identity.go +0 -20
- package/dist/templates/native-go/backend/internal/app/identity_test.go +0 -15
- package/dist/templates/native-go/backend/internal/app/migrations.go +0 -41
- package/dist/templates/native-go/backend/internal/app/migrations_test.go +0 -41
- package/dist/templates/native-go/backend/internal/app/portal.go +0 -30
- package/dist/templates/native-go/backend/internal/app/portal_test.go +0 -55
- package/dist/templates/native-go/backend/internal/app/root_none.go +0 -9
- package/dist/templates/native-go/backend/internal/app/routes.go +0 -137
- package/dist/templates/native-go/backend/internal/app/routes_test.go +0 -165
- package/dist/templates/native-go/backend/internal/app/session_files.go +0 -9
- package/dist/templates/native-go/backend/internal/app/session_files_test.go +0 -14
- package/dist/templates/native-go/backend/internal/app/shared_folder.go +0 -144
- package/dist/templates/native-go/backend/internal/app/shared_folder_test.go +0 -158
- package/dist/templates/native-go/backend/internal/background/access.go +0 -57
- package/dist/templates/native-go/backend/internal/background/lock_test.go +0 -131
- package/dist/templates/native-go/backend/internal/background/owner_test.go +0 -118
- package/dist/templates/native-go/backend/internal/background/runner.go +0 -185
- package/dist/templates/native-go/backend/internal/background/runner_test.go +0 -209
- package/dist/templates/native-go/backend/internal/background/schedule.go +0 -336
- package/dist/templates/native-go/backend/internal/background/schedule_test.go +0 -368
- package/dist/templates/native-go/backend/internal/background/store.go +0 -825
- package/dist/templates/native-go/backend/internal/background/store_test.go +0 -365
- package/dist/templates/native-go/backend/internal/datamigrate/migrate.go +0 -191
- package/dist/templates/native-go/backend/internal/datamigrate/migrate_test.go +0 -177
- package/dist/templates/native-go/backend/internal/dsm/admin.go +0 -76
- package/dist/templates/native-go/backend/internal/dsm/admin_linux.go +0 -110
- package/dist/templates/native-go/backend/internal/dsm/admin_linux_test.go +0 -105
- package/dist/templates/native-go/backend/internal/dsm/admin_other.go +0 -15
- package/dist/templates/native-go/backend/internal/dsm/admin_test.go +0 -67
- package/dist/templates/native-go/backend/internal/dsm/apppriv.go +0 -30
- package/dist/templates/native-go/backend/internal/dsm/auth.go +0 -94
- package/dist/templates/native-go/backend/internal/dsm/auth_test.go +0 -159
- package/dist/templates/native-go/backend/internal/dsm/bridge_file.go +0 -75
- package/dist/templates/native-go/backend/internal/dsm/bridge_file_test.go +0 -57
- package/dist/templates/native-go/backend/internal/dsm/entry.go +0 -177
- package/dist/templates/native-go/backend/internal/dsm/entry_test.go +0 -315
- package/dist/templates/native-go/backend/internal/dsm/native/admin-aarch64.elf +0 -0
- package/dist/templates/native-go/backend/internal/dsm/native/admin-armv7.elf +0 -0
- package/dist/templates/native-go/backend/internal/dsm/native/admin-x86_64.elf +0 -0
- package/dist/templates/native-go/backend/internal/dsm/native/admin_check.c +0 -28
- package/dist/templates/native-go/backend/internal/dsm/native/apppriv-aarch64.elf +0 -0
- package/dist/templates/native-go/backend/internal/dsm/native/apppriv-armv7.elf +0 -0
- package/dist/templates/native-go/backend/internal/dsm/native/apppriv-x86_64.elf +0 -0
- package/dist/templates/native-go/backend/internal/dsm/native/apppriv_check.c +0 -33
- package/dist/templates/native-go/backend/internal/dsm/native/build.sh +0 -18
- package/dist/templates/native-go/backend/internal/dsm/native/licenses/GLIBC-NOTICES.txt +0 -400
- package/dist/templates/native-go/backend/internal/dsm/native/licenses/LGPL-2.1.txt +0 -501
- package/dist/templates/native-go/backend/internal/dsm/native/licenses/SOURCE.txt +0 -5
- package/dist/templates/native-go/backend/internal/dsm/native/licenses/ZIG-MIT.txt +0 -21
- package/dist/templates/native-go/backend/internal/dsm/native/provenance.json +0 -18
- package/dist/templates/native-go/backend/internal/filestation/browse_test.go +0 -67
- package/dist/templates/native-go/backend/internal/filestation/check_permission.go +0 -71
- package/dist/templates/native-go/backend/internal/filestation/check_permission_test.go +0 -77
- package/dist/templates/native-go/backend/internal/filestation/client.go +0 -337
- package/dist/templates/native-go/backend/internal/filestation/client_test.go +0 -155
- package/dist/templates/native-go/backend/internal/filestation/doc.go +0 -4
- package/dist/templates/native-go/backend/internal/filestation/download_dsm71_test.go +0 -82
- package/dist/templates/native-go/backend/internal/filestation/http.go +0 -70
- package/dist/templates/native-go/backend/internal/filestation/http_test.go +0 -188
- package/dist/templates/native-go/backend/internal/filestation/operations_test.go +0 -206
- package/dist/templates/native-go/backend/internal/filestation/read_file_test.go +0 -89
- package/dist/templates/native-go/backend/internal/filestation/sdk_policy_test.go +0 -39
- package/dist/templates/native-go/backend/internal/filestation/service.go +0 -254
- package/dist/templates/native-go/backend/internal/filestation/service_test.go +0 -74
- package/dist/templates/native-go/backend/internal/filestation/upload_stream.go +0 -76
- package/dist/templates/native-go/backend/internal/filestation/upload_stream_test.go +0 -77
- package/dist/templates/native-go/backend/internal/filestation/write.go +0 -32
- package/dist/templates/native-go/backend/internal/filestation/write_test.go +0 -124
- package/dist/templates/native-go/backend/internal/identity/README.md +0 -59
- package/dist/templates/native-go/backend/internal/identity/dsm.go +0 -115
- package/dist/templates/native-go/backend/internal/identity/http.go +0 -291
- package/dist/templates/native-go/backend/internal/identity/identity_test.go +0 -530
- package/dist/templates/native-go/backend/internal/identity/service.go +0 -159
- package/dist/templates/native-go/backend/internal/identity/store.go +0 -109
- package/dist/templates/native-go/backend/internal/jsonlimits/limits.go +0 -48
- package/dist/templates/native-go/backend/internal/jsonlimits/limits_test.go +0 -52
- package/dist/templates/native-go/backend/internal/portal/portal.go +0 -138
- package/dist/templates/native-go/backend/internal/portal/portal_test.go +0 -89
- package/dist/templates/native-go/dsm-package.yaml +0 -71
- package/dist/templates/native-go/gitignore +0 -1
- package/dist/templates/native-go/i18n/glossary.json +0 -663
- package/dist/templates/native-go/i18n/messages/de.json +0 -29
- package/dist/templates/native-go/i18n/messages/en.json +0 -29
- package/dist/templates/native-go/i18n/messages/es.json +0 -29
- package/dist/templates/native-go/i18n/messages/fr.json +0 -29
- package/dist/templates/native-go/i18n/messages/it.json +0 -29
- package/dist/templates/native-go/i18n/messages/ja.json +0 -29
- package/dist/templates/native-go/i18n/messages/ko.json +0 -29
- package/dist/templates/native-go/i18n/messages/zh-CN.json +0 -29
- package/dist/templates/native-go/i18n/messages/zh-TW.json +0 -29
- package/dist/templates/native-go/ui/app.css +0 -45
- package/dist/templates/native-go/ui/app.js +0 -111
- package/dist/templates/native-go-delegate/DELEGATE.md +0 -263
- package/dist/templates/native-go-delegate/backend/cmd/background-worker/main.go +0 -48
- package/dist/templates/native-go-delegate/backend/internal/app/delegate.go +0 -25
- package/dist/templates/native-go-delegate/backend/internal/app/delegate_on.go +0 -5
- package/dist/templates/native-go-delegate/backend/internal/app/delegate_routes_test.go +0 -31
- package/dist/templates/native-go-delegate/backend/internal/background/delegate_review_test.go +0 -174
- package/dist/templates/native-go-delegate/backend/internal/background/delegated.go +0 -277
- package/dist/templates/native-go-delegate/backend/internal/background/delegated_moves.go +0 -270
- package/dist/templates/native-go-delegate/backend/internal/background/delegated_test.go +0 -34
- package/dist/templates/native-go-delegate/backend/internal/delegate/admission_recovery_test.go +0 -410
- package/dist/templates/native-go-delegate/backend/internal/delegate/busy_review_test.go +0 -15
- package/dist/templates/native-go-delegate/backend/internal/delegate/cancel_contract_test.go +0 -95
- package/dist/templates/native-go-delegate/backend/internal/delegate/client.go +0 -151
- package/dist/templates/native-go-delegate/backend/internal/delegate/client_test.go +0 -214
- package/dist/templates/native-go-delegate/backend/internal/delegate/destination.go +0 -110
- package/dist/templates/native-go-delegate/backend/internal/delegate/destination_state.go +0 -117
- package/dist/templates/native-go-delegate/backend/internal/delegate/destination_state_test.go +0 -60
- package/dist/templates/native-go-delegate/backend/internal/delegate/destination_test.go +0 -116
- package/dist/templates/native-go-delegate/backend/internal/delegate/example.go +0 -81
- package/dist/templates/native-go-delegate/backend/internal/delegate/example_test.go +0 -91
- package/dist/templates/native-go-delegate/backend/internal/delegate/executor_contract_test.go +0 -511
- package/dist/templates/native-go-delegate/backend/internal/delegate/files.go +0 -132
- package/dist/templates/native-go-delegate/backend/internal/delegate/long_running_routes.go +0 -92
- package/dist/templates/native-go-delegate/backend/internal/delegate/long_running_routes_test.go +0 -99
- package/dist/templates/native-go-delegate/backend/internal/delegate/move.go +0 -348
- package/dist/templates/native-go-delegate/backend/internal/delegate/move_test.go +0 -351
- package/dist/templates/native-go-delegate/backend/internal/delegate/operations_list.go +0 -65
- package/dist/templates/native-go-delegate/backend/internal/delegate/operations_list_test.go +0 -114
- package/dist/templates/native-go-delegate/backend/internal/delegate/retry.go +0 -106
- package/dist/templates/native-go-delegate/backend/internal/delegate/retry_test.go +0 -143
- package/dist/templates/native-go-delegate/backend/internal/delegate/service.go +0 -364
- package/dist/templates/native-go-delegate/backend/internal/delegate/service_test.go +0 -318
- package/dist/templates/native-go-delegate/backend/internal/delegate/staging.go +0 -121
- package/dist/templates/native-go-delegate/backend/internal/delegate/status_disabled_test.go +0 -51
- package/dist/templates/native-go-delegate/backend/internal/delegate/testdata/executor_contract.txt +0 -112
- package/dist/templates/native-go-delegate/backend/internal/delegate/transient_contract_test.go +0 -137
- package/dist/templates/native-go-delegate/backend/internal/delegate/wait_cancel_test.go +0 -101
- package/dist/templates/native-go-delegate/backend/internal/delegate/worker.go +0 -225
- package/dist/templates/native-go-delegate/backend/internal/filestation/files.go +0 -43
- package/dist/templates/native-go-delegate/backend/internal/filestation/files_test.go +0 -59
- package/dist/templates/native-go-delegate/frontend/src/CapabilityPanels.vue +0 -37
- package/dist/templates/native-go-delegate/frontend/src/delegate/BackgroundSavePanel.vue +0 -113
- package/dist/templates/native-go-delegate/frontend/src/delegate/DelegatePanel.vue +0 -70
- package/dist/templates/native-go-delegate/frontend/src/delegate/copy.ts +0 -8
- package/dist/templates/native-go-delegate/frontend/src/delegate/i18n/waiting.json +0 -11
- package/dist/templates/native-go-delegate/frontend/test/background-save.test.ts +0 -121
- package/dist/templates/native-go-delegate/frontend/test/delegate.test.ts +0 -145
- package/dist/templates/native-go-delegate/frontend/test/scope-settings.test.ts +0 -49
- package/dist/templates/native-go-delegate/test-frontend.sh +0 -12
- package/dist/templates/native-go-delegate/test.sh +0 -18
- package/dist/templates/native-go-jobs/BACKGROUND.md +0 -108
- package/dist/templates/native-go-jobs/backend/internal/app/background_on.go +0 -7
- package/dist/templates/native-go-jobs/backend/internal/app/background_routes_test.go +0 -90
- package/dist/templates/native-go-jobs/frontend/src/background/BackgroundPanel.vue +0 -170
- package/dist/templates/native-go-jobs/frontend/src/background/i18n/de.json +0 -75
- package/dist/templates/native-go-jobs/frontend/src/background/i18n/en.json +0 -75
- package/dist/templates/native-go-jobs/frontend/src/background/i18n/es.json +0 -75
- package/dist/templates/native-go-jobs/frontend/src/background/i18n/fr.json +0 -75
- package/dist/templates/native-go-jobs/frontend/src/background/i18n/it.json +0 -75
- package/dist/templates/native-go-jobs/frontend/src/background/i18n/ja.json +0 -75
- package/dist/templates/native-go-jobs/frontend/src/background/i18n/ko.json +0 -75
- package/dist/templates/native-go-jobs/frontend/src/background/i18n/zh-CN.json +0 -75
- package/dist/templates/native-go-jobs/frontend/src/background/i18n/zh-TW.json +0 -75
- package/dist/templates/native-go-jobs/frontend/src/background/i18n.ts +0 -19
- package/dist/templates/native-go-jobs/frontend/src/background/picker-provider.ts +0 -12
- package/dist/templates/native-go-jobs/frontend/src/background/request-key.ts +0 -5
- package/dist/templates/native-go-jobs/frontend/test/background.test.ts +0 -205
- package/dist/templates/native-go-root-ops/backend/internal/app/executor.go +0 -140
- package/dist/templates/native-go-root-ops/backend/internal/app/executor_test.go +0 -117
- package/dist/templates/native-go-root-ops/root/whoami.sh +0 -3
- package/dist/templates/native-go-vue/README.md +0 -47
- package/dist/templates/native-go-vue/frontend/DESIGN.md +0 -61
- package/dist/templates/native-go-vue/frontend/package-lock.json +0 -2530
- package/dist/templates/native-go-vue/frontend/package.json +0 -6
- package/dist/templates/native-go-vue/frontend/src/App.vue +0 -96
- package/dist/templates/native-go-vue/frontend/src/CapabilityPanels.vue +0 -6
- package/dist/templates/native-go-vue/frontend/src/context.ts +0 -78
- package/dist/templates/native-go-vue/frontend/src/delegate/ExecutorSettings.vue +0 -70
- package/dist/templates/native-go-vue/frontend/src/delegate/catalogs.ts +0 -11
- package/dist/templates/native-go-vue/frontend/src/delegate/copy.test.ts +0 -12
- package/dist/templates/native-go-vue/frontend/src/delegate/copy.ts +0 -4
- package/dist/templates/native-go-vue/frontend/src/delegate/executor-settings.test.ts +0 -23
- package/dist/templates/native-go-vue/frontend/src/delegate/executor-setup.ts +0 -24
- package/dist/templates/native-go-vue/frontend/src/delegate/facade.test.ts +0 -100
- package/dist/templates/native-go-vue/frontend/src/delegate/facade.ts +0 -85
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/de.json +0 -47
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/en.json +0 -47
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/es.json +0 -47
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/fr.json +0 -47
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/it.json +0 -47
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/ja.json +0 -47
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/ko.json +0 -47
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/save/de.json +0 -42
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/save/en.json +0 -42
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/save/es.json +0 -42
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/save/fr.json +0 -42
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/save/it.json +0 -42
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/save/ja.json +0 -42
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/save/ko.json +0 -42
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/save/zh-CN.json +0 -42
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/save/zh-TW.json +0 -42
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/zh-CN.json +0 -47
- package/dist/templates/native-go-vue/frontend/src/delegate/i18n/zh-TW.json +0 -47
- package/dist/templates/native-go-vue/frontend/src/delegate/long-running.ts +0 -57
- package/dist/templates/native-go-vue/frontend/src/delegate/save-copy.test.ts +0 -12
- package/dist/templates/native-go-vue/frontend/src/delegate/save-copy.ts +0 -24
- package/dist/templates/native-go-vue/frontend/src/delegate/scoped-picker.test.ts +0 -12
- package/dist/templates/native-go-vue/frontend/src/delegate/scoped-picker.ts +0 -21
- package/dist/templates/native-go-vue/frontend/src/files/FileBrowser.vue +0 -131
- package/dist/templates/native-go-vue/frontend/src/files/FilesPage.vue +0 -35
- package/dist/templates/native-go-vue/frontend/src/files/files.test.ts +0 -100
- package/dist/templates/native-go-vue/frontend/src/files/provider.test.ts +0 -48
- package/dist/templates/native-go-vue/frontend/src/files/transfers.test.ts +0 -27
- package/dist/templates/native-go-vue/frontend/src/files/transfers.ts +0 -25
- package/dist/templates/native-go-vue/frontend/src/i18n/de.json +0 -20
- package/dist/templates/native-go-vue/frontend/src/i18n/en.json +0 -20
- package/dist/templates/native-go-vue/frontend/src/i18n/es.json +0 -20
- package/dist/templates/native-go-vue/frontend/src/i18n/fr.json +0 -20
- package/dist/templates/native-go-vue/frontend/src/i18n/it.json +0 -20
- package/dist/templates/native-go-vue/frontend/src/i18n/ja.json +0 -20
- package/dist/templates/native-go-vue/frontend/src/i18n/ko.json +0 -20
- package/dist/templates/native-go-vue/frontend/src/i18n/zh-CN.json +0 -20
- package/dist/templates/native-go-vue/frontend/src/i18n/zh-TW.json +0 -20
- package/dist/templates/native-go-vue/frontend/src/i18n.ts +0 -13
- package/dist/templates/native-go-vue/frontend/src/identity/DESIGN.md +0 -46
- package/dist/templates/native-go-vue/frontend/src/identity/LoginPage.vue +0 -78
- package/dist/templates/native-go-vue/frontend/src/identity/i18n/de.json +0 -27
- package/dist/templates/native-go-vue/frontend/src/identity/i18n/en.json +0 -27
- package/dist/templates/native-go-vue/frontend/src/identity/i18n/es.json +0 -27
- package/dist/templates/native-go-vue/frontend/src/identity/i18n/fr.json +0 -27
- package/dist/templates/native-go-vue/frontend/src/identity/i18n/it.json +0 -27
- package/dist/templates/native-go-vue/frontend/src/identity/i18n/ja.json +0 -27
- package/dist/templates/native-go-vue/frontend/src/identity/i18n/ko.json +0 -27
- package/dist/templates/native-go-vue/frontend/src/identity/i18n/zh-CN.json +0 -27
- package/dist/templates/native-go-vue/frontend/src/identity/i18n/zh-TW.json +0 -27
- package/dist/templates/native-go-vue/frontend/src/identity/i18n.ts +0 -14
- package/dist/templates/native-go-vue/frontend/src/identity/login.test.ts +0 -32
- package/dist/templates/native-go-vue/frontend/src/identity/session.test.ts +0 -33
- package/dist/templates/native-go-vue/frontend/src/identity/session.ts +0 -74
- package/dist/templates/native-go-vue/frontend/src/main.ts +0 -32
- package/dist/templates/native-go-vue/frontend/src/nas/NasPicker.vue +0 -42
- package/dist/templates/native-go-vue/frontend/src/nas/contract.ts +0 -12
- package/dist/templates/native-go-vue/frontend/src/nas/destination.test.ts +0 -48
- package/dist/templates/native-go-vue/frontend/src/nas/i18n/files/de.json +0 -41
- package/dist/templates/native-go-vue/frontend/src/nas/i18n/files/en.json +0 -41
- package/dist/templates/native-go-vue/frontend/src/nas/i18n/files/es.json +0 -41
- package/dist/templates/native-go-vue/frontend/src/nas/i18n/files/fr.json +0 -41
- package/dist/templates/native-go-vue/frontend/src/nas/i18n/files/it.json +0 -41
- package/dist/templates/native-go-vue/frontend/src/nas/i18n/files/ja.json +0 -41
- package/dist/templates/native-go-vue/frontend/src/nas/i18n/files/ko.json +0 -41
- package/dist/templates/native-go-vue/frontend/src/nas/i18n/files/zh-CN.json +0 -41
- package/dist/templates/native-go-vue/frontend/src/nas/i18n/files/zh-TW.json +0 -41
- package/dist/templates/native-go-vue/frontend/src/nas/i18n.ts +0 -2
- package/dist/templates/native-go-vue/frontend/src/nas/locale.ts +0 -24
- package/dist/templates/native-go-vue/frontend/src/nas/provider.ts +0 -50
- package/dist/templates/native-go-vue/frontend/src/nas/use-request.ts +0 -18
- package/dist/templates/native-go-vue/frontend/src/portal/PortalSettings.vue +0 -39
- package/dist/templates/native-go-vue/frontend/src/shell/AppShell.vue +0 -48
- package/dist/templates/native-go-vue/frontend/src/shell/i18n/de.json +0 -4
- package/dist/templates/native-go-vue/frontend/src/shell/i18n/en.json +0 -4
- package/dist/templates/native-go-vue/frontend/src/shell/i18n/es.json +0 -4
- package/dist/templates/native-go-vue/frontend/src/shell/i18n/fr.json +0 -4
- package/dist/templates/native-go-vue/frontend/src/shell/i18n/it.json +0 -4
- package/dist/templates/native-go-vue/frontend/src/shell/i18n/ja.json +0 -4
- package/dist/templates/native-go-vue/frontend/src/shell/i18n/ko.json +0 -4
- package/dist/templates/native-go-vue/frontend/src/shell/i18n/zh-CN.json +0 -4
- package/dist/templates/native-go-vue/frontend/src/shell/i18n/zh-TW.json +0 -4
- package/dist/templates/native-go-vue/frontend/src/shell/i18n.ts +0 -17
- package/dist/templates/native-go-vue/frontend/src/shell/pages.ts +0 -15
- package/dist/templates/native-go-vue/frontend/src/style.css +0 -27
- package/dist/templates/native-go-vue/frontend/test/apps.test.ts +0 -57
- package/dist/templates/native-go-vue/frontend/test/native-controls.test.ts +0 -27
- package/dist/templates/native-go-vue/frontend/test/portal-settings.test.ts +0 -71
- package/dist/templates/native-go-vue/frontend/test/shell-i18n.test.ts +0 -50
- package/dist/templates/native-go-vue/frontend/test/shell-ui.test.ts +0 -20
- package/dist/templates/native-go-vue/frontend/test/shell.test.ts +0 -30
- package/dist/templates/native-go-vue/frontend/tsconfig.json +0 -1
- package/dist/templates/native-go-vue/frontend/vite.config.ts +0 -10
- package/dist/templates/native-go-vue/gitignore +0 -2
- package/templates/_daemon/fixture_linux_test.go +0 -15
- package/templates/_daemon/fixture_other_test.go +0 -7
- package/templates/_daemon/go.mod +0 -5
- package/templates/_daemon/main.go +0 -611
- package/templates/_daemon/main_test.go +0 -315
- package/templates/_daemon/process_linux.go +0 -55
- package/templates/_daemon/process_linux_test.go +0 -161
- package/templates/_daemon/process_other.go +0 -14
- package/templates/_daemon/testdata/child.go +0 -44
- package/templates/_executor/README.md +0 -318
- package/templates/_executor/anchor.go +0 -156
- package/templates/_executor/anchor_test.go +0 -161
- package/templates/_executor/apppriv_review_test.go +0 -28
- package/templates/_executor/auth_presence_review_test.go +0 -38
- package/templates/_executor/cancel_contract_test.go +0 -236
- package/templates/_executor/cmd/lifecycle/main.go +0 -42
- package/templates/_executor/cookie_review_test.go +0 -27
- package/templates/_executor/copy.go +0 -64
- package/templates/_executor/copy_test.go +0 -88
- package/templates/_executor/digest_review_test.go +0 -120
- package/templates/_executor/directories.go +0 -40
- package/templates/_executor/dsm.go +0 -369
- package/templates/_executor/dsm_test.go +0 -290
- package/templates/_executor/executor.go +0 -735
- package/templates/_executor/executor_test.go +0 -314
- package/templates/_executor/go.mod +0 -5
- package/templates/_executor/identity.go +0 -74
- package/templates/_executor/identity_kernel_linux_test.go +0 -60
- package/templates/_executor/identity_linux.go +0 -82
- package/templates/_executor/identity_security_test.go +0 -43
- package/templates/_executor/internal/lifecycle/lifecycle.go +0 -95
- package/templates/_executor/internal/lifecycle/lifecycle_test.go +0 -232
- package/templates/_executor/internal/taskscript/boot.sh +0 -31
- package/templates/_executor/internal/taskscript/cmd/main.go +0 -19
- package/templates/_executor/internal/taskscript/control.sh +0 -31
- package/templates/_executor/internal/taskscript/tasks.go +0 -44
- package/templates/_executor/json_review_test.go +0 -40
- package/templates/_executor/lifecycle_test.go +0 -97
- package/templates/_executor/link_linux.go +0 -28
- package/templates/_executor/long_running_test.go +0 -530
- package/templates/_executor/main.go +0 -576
- package/templates/_executor/managed.go +0 -117
- package/templates/_executor/managed_test.go +0 -137
- package/templates/_executor/move_linux.go +0 -490
- package/templates/_executor/move_linux_test.go +0 -460
- package/templates/_executor/move_validation.go +0 -46
- package/templates/_executor/move_validation_test.go +0 -187
- package/templates/_executor/operations.go +0 -926
- package/templates/_executor/path_test.go +0 -35
- package/templates/_executor/pid.go +0 -37
- package/templates/_executor/pid_test.go +0 -113
- package/templates/_executor/platform_linux.go +0 -187
- package/templates/_executor/platform_linux_test.go +0 -191
- package/templates/_executor/platform_other.go +0 -76
- package/templates/_executor/process.go +0 -142
- package/templates/_executor/purge_log.go +0 -18
- package/templates/_executor/records.go +0 -242
- package/templates/_executor/scope_cancel_contract_test.go +0 -91
- package/templates/_executor/scope_client.go +0 -37
- package/templates/_executor/scope_contract.go +0 -12
- package/templates/_executor/selected_scope.go +0 -146
- package/templates/_executor/selected_scope_test.go +0 -186
- package/templates/_executor/socket_linux_test.go +0 -46
- package/templates/_executor/status_disabled_test.go +0 -33
- package/templates/_executor/store.go +0 -91
- package/templates/_executor/supervise.go +0 -109
- package/templates/_executor/supervise_test.go +0 -130
- package/templates/_executor/task_race_review_test.go +0 -47
- package/templates/_executor/tasks.go +0 -320
- package/templates/_executor/tasks_dsm71_test.go +0 -114
- package/templates/_executor/tasks_review_test.go +0 -43
- package/templates/_executor/tasks_test.go +0 -223
- package/templates/_executor/testdata/evidence/cleanup.json +0 -24
- package/templates/_executor/testdata/evidence/final-smoke.jsonl +0 -9
- package/templates/_executor/testdata/evidence/kernel-acl.json +0 -6
- package/templates/_executor/testdata/evidence/linux-tests.log +0 -123
- package/templates/_executor/testdata/evidence/live.jsonl +0 -23
- package/templates/_executor/testdata/evidence/storage.json +0 -90
- package/templates/_executor/testdata/evidence/validation.json +0 -55
- package/templates/_executor/testdata/live_probe.py +0 -98
- package/templates/_executor/upgrade_watch_test.go +0 -244
- package/templates/_executor/watch.go +0 -164
- package/templates/_executor/watch_test.go +0 -291
- package/templates/_executor/write_review_linux_test.go +0 -87
- package/templates/_gateway/auth.go +0 -101
- package/templates/_gateway/auth_test.go +0 -216
- package/templates/_gateway/cgi.go +0 -133
- package/templates/_gateway/cgi_test.go +0 -156
- package/templates/_gateway/csrf.go +0 -73
- package/templates/_gateway/csrf_test.go +0 -155
- package/templates/_gateway/directory.go +0 -108
- package/templates/_gateway/directory_test.go +0 -202
- package/templates/_gateway/gateway.go +0 -412
- package/templates/_gateway/gateway_test.go +0 -676
- package/templates/_gateway/go.mod +0 -5
- package/templates/_gateway/groups.go +0 -66
- package/templates/_gateway/main.go +0 -45
- package/templates/_shared/AGENTS.md +0 -146
- package/templates/_shared/CLAUDE.md +0 -1
- package/templates/_shared/GO-LICENSE +0 -27
- package/templates/_shared/GO-PATENTS +0 -22
- package/templates/_shared/LICENSES/TEMPLATE.txt +0 -21
- package/templates/_shared/third-party-notices.mjs +0 -51
- package/templates/binary/LICENSES/GO-LICENSE +0 -27
- package/templates/binary/LICENSES/GO-PATENTS +0 -22
- package/templates/binary/dsm-package.yaml +0 -46
- package/templates/binary/example/main.go +0 -16
- package/templates/binary/gitignore +0 -2
- package/templates/binary/i18n/messages/de.json +0 -4
- package/templates/binary/i18n/messages/en.json +0 -4
- package/templates/binary/i18n/messages/es.json +0 -4
- package/templates/binary/i18n/messages/fr.json +0 -4
- package/templates/binary/i18n/messages/it.json +0 -4
- package/templates/binary/i18n/messages/ja.json +0 -4
- package/templates/binary/i18n/messages/ko.json +0 -4
- package/templates/binary/i18n/messages/zh-CN.json +0 -4
- package/templates/binary/i18n/messages/zh-TW.json +0 -4
- package/templates/binary/ui/app.css +0 -4
- package/templates/binary/ui/app.js +0 -32
- package/templates/compose/compose.yaml +0 -8
- package/templates/compose/synology-app.yaml +0 -16
- package/templates/native-authorization/AuthorizationGate.vue +0 -91
- package/templates/native-authorization/i18n/de.json +0 -37
- package/templates/native-authorization/i18n/en.json +0 -37
- package/templates/native-authorization/i18n/es.json +0 -37
- package/templates/native-authorization/i18n/fr.json +0 -37
- package/templates/native-authorization/i18n/index.ts +0 -15
- package/templates/native-authorization/i18n/it.json +0 -37
- package/templates/native-authorization/i18n/ja.json +0 -37
- package/templates/native-authorization/i18n/ko.json +0 -37
- package/templates/native-authorization/i18n/zh-CN.json +0 -37
- package/templates/native-authorization/i18n/zh-TW.json +0 -37
- package/templates/native-go/README.md +0 -459
- package/templates/native-go/backend/THIRD_PARTY_NOTICES.txt +0 -61
- package/templates/native-go/backend/cmd/app/main.go +0 -95
- package/templates/native-go/backend/cmd/background-worker/main.go +0 -38
- package/templates/native-go/backend/go.mod +0 -9
- package/templates/native-go/backend/go.sum +0 -4
- package/templates/native-go/backend/internal/api/cgi_framing_test.go +0 -32
- package/templates/native-go/backend/internal/api/cookie_review_test.go +0 -28
- package/templates/native-go/backend/internal/api/deadline_test.go +0 -114
- package/templates/native-go/backend/internal/api/dsm-session.go +0 -54
- package/templates/native-go/backend/internal/api/dsm-session_test.go +0 -51
- package/templates/native-go/backend/internal/api/entry_test.go +0 -47
- package/templates/native-go/backend/internal/api/errors.go +0 -47
- package/templates/native-go/backend/internal/api/permissions.go +0 -161
- package/templates/native-go/backend/internal/api/permissions.json +0 -5
- package/templates/native-go/backend/internal/api/permissions_test.go +0 -113
- package/templates/native-go/backend/internal/api/policy_fixture_test.go +0 -8
- package/templates/native-go/backend/internal/api/registry.go +0 -142
- package/templates/native-go/backend/internal/api/registry_test.go +0 -344
- package/templates/native-go/backend/internal/api/resource_limits_test.go +0 -87
- package/templates/native-go/backend/internal/api/sdk-permissions.json +0 -59
- package/templates/native-go/backend/internal/api/sdk_policy_test.go +0 -31
- package/templates/native-go/backend/internal/api/server.go +0 -305
- package/templates/native-go/backend/internal/api/testdata/permissions-cases.json +0 -172
- package/templates/native-go/backend/internal/app/background.go +0 -249
- package/templates/native-go/backend/internal/app/background_none.go +0 -8
- package/templates/native-go/backend/internal/app/background_owner.go +0 -38
- package/templates/native-go/backend/internal/app/background_owner_test.go +0 -163
- package/templates/native-go/backend/internal/app/background_schedule.go +0 -69
- package/templates/native-go/backend/internal/app/background_schedule_test.go +0 -62
- package/templates/native-go/backend/internal/app/background_test.go +0 -320
- package/templates/native-go/backend/internal/app/delegate_config.go +0 -57
- package/templates/native-go/backend/internal/app/delegate_config_test.go +0 -28
- package/templates/native-go/backend/internal/app/delegate_none.go +0 -5
- package/templates/native-go/backend/internal/app/identity.go +0 -20
- package/templates/native-go/backend/internal/app/identity_test.go +0 -15
- package/templates/native-go/backend/internal/app/migrations.go +0 -41
- package/templates/native-go/backend/internal/app/migrations_test.go +0 -41
- package/templates/native-go/backend/internal/app/portal.go +0 -30
- package/templates/native-go/backend/internal/app/portal_test.go +0 -55
- package/templates/native-go/backend/internal/app/root_none.go +0 -9
- package/templates/native-go/backend/internal/app/routes.go +0 -137
- package/templates/native-go/backend/internal/app/routes_test.go +0 -165
- package/templates/native-go/backend/internal/app/session_files.go +0 -9
- package/templates/native-go/backend/internal/app/session_files_test.go +0 -14
- package/templates/native-go/backend/internal/app/shared_folder.go +0 -144
- package/templates/native-go/backend/internal/app/shared_folder_test.go +0 -158
- package/templates/native-go/backend/internal/background/access.go +0 -57
- package/templates/native-go/backend/internal/background/lock_test.go +0 -131
- package/templates/native-go/backend/internal/background/owner_test.go +0 -118
- package/templates/native-go/backend/internal/background/runner.go +0 -185
- package/templates/native-go/backend/internal/background/runner_test.go +0 -209
- package/templates/native-go/backend/internal/background/schedule.go +0 -336
- package/templates/native-go/backend/internal/background/schedule_test.go +0 -368
- package/templates/native-go/backend/internal/background/store.go +0 -825
- package/templates/native-go/backend/internal/background/store_test.go +0 -365
- package/templates/native-go/backend/internal/datamigrate/migrate.go +0 -191
- package/templates/native-go/backend/internal/datamigrate/migrate_test.go +0 -177
- package/templates/native-go/backend/internal/dsm/admin.go +0 -76
- package/templates/native-go/backend/internal/dsm/admin_linux.go +0 -110
- package/templates/native-go/backend/internal/dsm/admin_linux_test.go +0 -105
- package/templates/native-go/backend/internal/dsm/admin_other.go +0 -15
- package/templates/native-go/backend/internal/dsm/admin_test.go +0 -67
- package/templates/native-go/backend/internal/dsm/apppriv.go +0 -30
- package/templates/native-go/backend/internal/dsm/auth.go +0 -94
- package/templates/native-go/backend/internal/dsm/auth_test.go +0 -159
- package/templates/native-go/backend/internal/dsm/bridge_file.go +0 -75
- package/templates/native-go/backend/internal/dsm/bridge_file_test.go +0 -57
- package/templates/native-go/backend/internal/dsm/entry.go +0 -177
- package/templates/native-go/backend/internal/dsm/entry_test.go +0 -315
- package/templates/native-go/backend/internal/dsm/native/admin-aarch64.elf +0 -0
- package/templates/native-go/backend/internal/dsm/native/admin-armv7.elf +0 -0
- package/templates/native-go/backend/internal/dsm/native/admin-x86_64.elf +0 -0
- package/templates/native-go/backend/internal/dsm/native/admin_check.c +0 -28
- package/templates/native-go/backend/internal/dsm/native/apppriv-aarch64.elf +0 -0
- package/templates/native-go/backend/internal/dsm/native/apppriv-armv7.elf +0 -0
- package/templates/native-go/backend/internal/dsm/native/apppriv-x86_64.elf +0 -0
- package/templates/native-go/backend/internal/dsm/native/apppriv_check.c +0 -33
- package/templates/native-go/backend/internal/dsm/native/build.sh +0 -18
- package/templates/native-go/backend/internal/dsm/native/licenses/GLIBC-NOTICES.txt +0 -400
- package/templates/native-go/backend/internal/dsm/native/licenses/LGPL-2.1.txt +0 -501
- package/templates/native-go/backend/internal/dsm/native/licenses/SOURCE.txt +0 -5
- package/templates/native-go/backend/internal/dsm/native/licenses/ZIG-MIT.txt +0 -21
- package/templates/native-go/backend/internal/dsm/native/provenance.json +0 -18
- package/templates/native-go/backend/internal/filestation/browse_test.go +0 -67
- package/templates/native-go/backend/internal/filestation/check_permission.go +0 -71
- package/templates/native-go/backend/internal/filestation/check_permission_test.go +0 -77
- package/templates/native-go/backend/internal/filestation/client.go +0 -337
- package/templates/native-go/backend/internal/filestation/client_test.go +0 -155
- package/templates/native-go/backend/internal/filestation/doc.go +0 -4
- package/templates/native-go/backend/internal/filestation/download_dsm71_test.go +0 -82
- package/templates/native-go/backend/internal/filestation/http.go +0 -70
- package/templates/native-go/backend/internal/filestation/http_test.go +0 -188
- package/templates/native-go/backend/internal/filestation/operations_test.go +0 -206
- package/templates/native-go/backend/internal/filestation/read_file_test.go +0 -89
- package/templates/native-go/backend/internal/filestation/sdk_policy_test.go +0 -39
- package/templates/native-go/backend/internal/filestation/service.go +0 -254
- package/templates/native-go/backend/internal/filestation/service_test.go +0 -74
- package/templates/native-go/backend/internal/filestation/upload_stream.go +0 -76
- package/templates/native-go/backend/internal/filestation/upload_stream_test.go +0 -77
- package/templates/native-go/backend/internal/filestation/write.go +0 -32
- package/templates/native-go/backend/internal/filestation/write_test.go +0 -124
- package/templates/native-go/backend/internal/identity/README.md +0 -59
- package/templates/native-go/backend/internal/identity/dsm.go +0 -115
- package/templates/native-go/backend/internal/identity/http.go +0 -291
- package/templates/native-go/backend/internal/identity/identity_test.go +0 -530
- package/templates/native-go/backend/internal/identity/service.go +0 -159
- package/templates/native-go/backend/internal/identity/store.go +0 -109
- package/templates/native-go/backend/internal/jsonlimits/limits.go +0 -48
- package/templates/native-go/backend/internal/jsonlimits/limits_test.go +0 -52
- package/templates/native-go/backend/internal/portal/portal.go +0 -138
- package/templates/native-go/backend/internal/portal/portal_test.go +0 -89
- package/templates/native-go/dsm-package.yaml +0 -71
- package/templates/native-go/gitignore +0 -1
- package/templates/native-go/i18n/glossary.json +0 -663
- package/templates/native-go/i18n/messages/de.json +0 -29
- package/templates/native-go/i18n/messages/en.json +0 -29
- package/templates/native-go/i18n/messages/es.json +0 -29
- package/templates/native-go/i18n/messages/fr.json +0 -29
- package/templates/native-go/i18n/messages/it.json +0 -29
- package/templates/native-go/i18n/messages/ja.json +0 -29
- package/templates/native-go/i18n/messages/ko.json +0 -29
- package/templates/native-go/i18n/messages/zh-CN.json +0 -29
- package/templates/native-go/i18n/messages/zh-TW.json +0 -29
- package/templates/native-go/ui/app.css +0 -45
- package/templates/native-go/ui/app.js +0 -111
- package/templates/native-go-delegate/DELEGATE.md +0 -263
- package/templates/native-go-delegate/backend/cmd/background-worker/main.go +0 -48
- package/templates/native-go-delegate/backend/internal/app/delegate.go +0 -25
- package/templates/native-go-delegate/backend/internal/app/delegate_on.go +0 -5
- package/templates/native-go-delegate/backend/internal/app/delegate_routes_test.go +0 -31
- package/templates/native-go-delegate/backend/internal/background/delegate_review_test.go +0 -174
- package/templates/native-go-delegate/backend/internal/background/delegated.go +0 -277
- package/templates/native-go-delegate/backend/internal/background/delegated_moves.go +0 -270
- package/templates/native-go-delegate/backend/internal/background/delegated_test.go +0 -34
- package/templates/native-go-delegate/backend/internal/delegate/admission_recovery_test.go +0 -410
- package/templates/native-go-delegate/backend/internal/delegate/busy_review_test.go +0 -15
- package/templates/native-go-delegate/backend/internal/delegate/cancel_contract_test.go +0 -95
- package/templates/native-go-delegate/backend/internal/delegate/client.go +0 -151
- package/templates/native-go-delegate/backend/internal/delegate/client_test.go +0 -214
- package/templates/native-go-delegate/backend/internal/delegate/destination.go +0 -110
- package/templates/native-go-delegate/backend/internal/delegate/destination_state.go +0 -117
- package/templates/native-go-delegate/backend/internal/delegate/destination_state_test.go +0 -60
- package/templates/native-go-delegate/backend/internal/delegate/destination_test.go +0 -116
- package/templates/native-go-delegate/backend/internal/delegate/example.go +0 -81
- package/templates/native-go-delegate/backend/internal/delegate/example_test.go +0 -91
- package/templates/native-go-delegate/backend/internal/delegate/executor_contract_test.go +0 -511
- package/templates/native-go-delegate/backend/internal/delegate/files.go +0 -132
- package/templates/native-go-delegate/backend/internal/delegate/long_running_routes.go +0 -92
- package/templates/native-go-delegate/backend/internal/delegate/long_running_routes_test.go +0 -99
- package/templates/native-go-delegate/backend/internal/delegate/move.go +0 -348
- package/templates/native-go-delegate/backend/internal/delegate/move_test.go +0 -351
- package/templates/native-go-delegate/backend/internal/delegate/operations_list.go +0 -65
- package/templates/native-go-delegate/backend/internal/delegate/operations_list_test.go +0 -114
- package/templates/native-go-delegate/backend/internal/delegate/retry.go +0 -106
- package/templates/native-go-delegate/backend/internal/delegate/retry_test.go +0 -143
- package/templates/native-go-delegate/backend/internal/delegate/service.go +0 -364
- package/templates/native-go-delegate/backend/internal/delegate/service_test.go +0 -318
- package/templates/native-go-delegate/backend/internal/delegate/staging.go +0 -121
- package/templates/native-go-delegate/backend/internal/delegate/status_disabled_test.go +0 -51
- package/templates/native-go-delegate/backend/internal/delegate/testdata/executor_contract.txt +0 -112
- package/templates/native-go-delegate/backend/internal/delegate/transient_contract_test.go +0 -137
- package/templates/native-go-delegate/backend/internal/delegate/wait_cancel_test.go +0 -101
- package/templates/native-go-delegate/backend/internal/delegate/worker.go +0 -225
- package/templates/native-go-delegate/backend/internal/filestation/files.go +0 -43
- package/templates/native-go-delegate/backend/internal/filestation/files_test.go +0 -59
- package/templates/native-go-delegate/frontend/src/CapabilityPanels.vue +0 -37
- package/templates/native-go-delegate/frontend/src/delegate/BackgroundSavePanel.vue +0 -113
- package/templates/native-go-delegate/frontend/src/delegate/DelegatePanel.vue +0 -70
- package/templates/native-go-delegate/frontend/src/delegate/copy.ts +0 -8
- package/templates/native-go-delegate/frontend/src/delegate/i18n/waiting.json +0 -11
- package/templates/native-go-delegate/frontend/test/background-save.test.ts +0 -121
- package/templates/native-go-delegate/frontend/test/delegate.test.ts +0 -145
- package/templates/native-go-delegate/frontend/test/scope-settings.test.ts +0 -49
- package/templates/native-go-delegate/test-frontend.sh +0 -12
- package/templates/native-go-delegate/test.sh +0 -18
- package/templates/native-go-jobs/BACKGROUND.md +0 -108
- package/templates/native-go-jobs/backend/internal/app/background_on.go +0 -7
- package/templates/native-go-jobs/backend/internal/app/background_routes_test.go +0 -90
- package/templates/native-go-jobs/frontend/src/background/BackgroundPanel.vue +0 -170
- package/templates/native-go-jobs/frontend/src/background/i18n/de.json +0 -75
- package/templates/native-go-jobs/frontend/src/background/i18n/en.json +0 -75
- package/templates/native-go-jobs/frontend/src/background/i18n/es.json +0 -75
- package/templates/native-go-jobs/frontend/src/background/i18n/fr.json +0 -75
- package/templates/native-go-jobs/frontend/src/background/i18n/it.json +0 -75
- package/templates/native-go-jobs/frontend/src/background/i18n/ja.json +0 -75
- package/templates/native-go-jobs/frontend/src/background/i18n/ko.json +0 -75
- package/templates/native-go-jobs/frontend/src/background/i18n/zh-CN.json +0 -75
- package/templates/native-go-jobs/frontend/src/background/i18n/zh-TW.json +0 -75
- package/templates/native-go-jobs/frontend/src/background/i18n.ts +0 -19
- package/templates/native-go-jobs/frontend/src/background/picker-provider.ts +0 -12
- package/templates/native-go-jobs/frontend/src/background/request-key.ts +0 -5
- package/templates/native-go-jobs/frontend/test/background.test.ts +0 -205
- package/templates/native-go-root-ops/backend/internal/app/executor.go +0 -140
- package/templates/native-go-root-ops/backend/internal/app/executor_test.go +0 -117
- package/templates/native-go-root-ops/root/whoami.sh +0 -3
- package/templates/native-go-vue/README.md +0 -47
- package/templates/native-go-vue/frontend/DESIGN.md +0 -61
- package/templates/native-go-vue/frontend/package-lock.json +0 -2530
- package/templates/native-go-vue/frontend/package.json +0 -6
- package/templates/native-go-vue/frontend/src/App.vue +0 -96
- package/templates/native-go-vue/frontend/src/CapabilityPanels.vue +0 -6
- package/templates/native-go-vue/frontend/src/context.ts +0 -78
- package/templates/native-go-vue/frontend/src/delegate/ExecutorSettings.vue +0 -70
- package/templates/native-go-vue/frontend/src/delegate/catalogs.ts +0 -11
- package/templates/native-go-vue/frontend/src/delegate/copy.test.ts +0 -12
- package/templates/native-go-vue/frontend/src/delegate/copy.ts +0 -4
- package/templates/native-go-vue/frontend/src/delegate/executor-settings.test.ts +0 -23
- package/templates/native-go-vue/frontend/src/delegate/executor-setup.ts +0 -24
- package/templates/native-go-vue/frontend/src/delegate/facade.test.ts +0 -100
- package/templates/native-go-vue/frontend/src/delegate/facade.ts +0 -85
- package/templates/native-go-vue/frontend/src/delegate/i18n/de.json +0 -47
- package/templates/native-go-vue/frontend/src/delegate/i18n/en.json +0 -47
- package/templates/native-go-vue/frontend/src/delegate/i18n/es.json +0 -47
- package/templates/native-go-vue/frontend/src/delegate/i18n/fr.json +0 -47
- package/templates/native-go-vue/frontend/src/delegate/i18n/it.json +0 -47
- package/templates/native-go-vue/frontend/src/delegate/i18n/ja.json +0 -47
- package/templates/native-go-vue/frontend/src/delegate/i18n/ko.json +0 -47
- package/templates/native-go-vue/frontend/src/delegate/i18n/save/de.json +0 -42
- package/templates/native-go-vue/frontend/src/delegate/i18n/save/en.json +0 -42
- package/templates/native-go-vue/frontend/src/delegate/i18n/save/es.json +0 -42
- package/templates/native-go-vue/frontend/src/delegate/i18n/save/fr.json +0 -42
- package/templates/native-go-vue/frontend/src/delegate/i18n/save/it.json +0 -42
- package/templates/native-go-vue/frontend/src/delegate/i18n/save/ja.json +0 -42
- package/templates/native-go-vue/frontend/src/delegate/i18n/save/ko.json +0 -42
- package/templates/native-go-vue/frontend/src/delegate/i18n/save/zh-CN.json +0 -42
- package/templates/native-go-vue/frontend/src/delegate/i18n/save/zh-TW.json +0 -42
- package/templates/native-go-vue/frontend/src/delegate/i18n/zh-CN.json +0 -47
- package/templates/native-go-vue/frontend/src/delegate/i18n/zh-TW.json +0 -47
- package/templates/native-go-vue/frontend/src/delegate/long-running.ts +0 -57
- package/templates/native-go-vue/frontend/src/delegate/save-copy.test.ts +0 -12
- package/templates/native-go-vue/frontend/src/delegate/save-copy.ts +0 -24
- package/templates/native-go-vue/frontend/src/delegate/scoped-picker.test.ts +0 -12
- package/templates/native-go-vue/frontend/src/delegate/scoped-picker.ts +0 -21
- package/templates/native-go-vue/frontend/src/files/FileBrowser.vue +0 -131
- package/templates/native-go-vue/frontend/src/files/FilesPage.vue +0 -35
- package/templates/native-go-vue/frontend/src/files/files.test.ts +0 -100
- package/templates/native-go-vue/frontend/src/files/provider.test.ts +0 -48
- package/templates/native-go-vue/frontend/src/files/transfers.test.ts +0 -27
- package/templates/native-go-vue/frontend/src/files/transfers.ts +0 -25
- package/templates/native-go-vue/frontend/src/i18n/de.json +0 -20
- package/templates/native-go-vue/frontend/src/i18n/en.json +0 -20
- package/templates/native-go-vue/frontend/src/i18n/es.json +0 -20
- package/templates/native-go-vue/frontend/src/i18n/fr.json +0 -20
- package/templates/native-go-vue/frontend/src/i18n/it.json +0 -20
- package/templates/native-go-vue/frontend/src/i18n/ja.json +0 -20
- package/templates/native-go-vue/frontend/src/i18n/ko.json +0 -20
- package/templates/native-go-vue/frontend/src/i18n/zh-CN.json +0 -20
- package/templates/native-go-vue/frontend/src/i18n/zh-TW.json +0 -20
- package/templates/native-go-vue/frontend/src/i18n.ts +0 -13
- package/templates/native-go-vue/frontend/src/identity/DESIGN.md +0 -46
- package/templates/native-go-vue/frontend/src/identity/LoginPage.vue +0 -78
- package/templates/native-go-vue/frontend/src/identity/i18n/de.json +0 -27
- package/templates/native-go-vue/frontend/src/identity/i18n/en.json +0 -27
- package/templates/native-go-vue/frontend/src/identity/i18n/es.json +0 -27
- package/templates/native-go-vue/frontend/src/identity/i18n/fr.json +0 -27
- package/templates/native-go-vue/frontend/src/identity/i18n/it.json +0 -27
- package/templates/native-go-vue/frontend/src/identity/i18n/ja.json +0 -27
- package/templates/native-go-vue/frontend/src/identity/i18n/ko.json +0 -27
- package/templates/native-go-vue/frontend/src/identity/i18n/zh-CN.json +0 -27
- package/templates/native-go-vue/frontend/src/identity/i18n/zh-TW.json +0 -27
- package/templates/native-go-vue/frontend/src/identity/i18n.ts +0 -14
- package/templates/native-go-vue/frontend/src/identity/login.test.ts +0 -32
- package/templates/native-go-vue/frontend/src/identity/session.test.ts +0 -33
- package/templates/native-go-vue/frontend/src/identity/session.ts +0 -74
- package/templates/native-go-vue/frontend/src/main.ts +0 -32
- package/templates/native-go-vue/frontend/src/nas/NasPicker.vue +0 -42
- package/templates/native-go-vue/frontend/src/nas/contract.ts +0 -12
- package/templates/native-go-vue/frontend/src/nas/destination.test.ts +0 -48
- package/templates/native-go-vue/frontend/src/nas/i18n/files/de.json +0 -41
- package/templates/native-go-vue/frontend/src/nas/i18n/files/en.json +0 -41
- package/templates/native-go-vue/frontend/src/nas/i18n/files/es.json +0 -41
- package/templates/native-go-vue/frontend/src/nas/i18n/files/fr.json +0 -41
- package/templates/native-go-vue/frontend/src/nas/i18n/files/it.json +0 -41
- package/templates/native-go-vue/frontend/src/nas/i18n/files/ja.json +0 -41
- package/templates/native-go-vue/frontend/src/nas/i18n/files/ko.json +0 -41
- package/templates/native-go-vue/frontend/src/nas/i18n/files/zh-CN.json +0 -41
- package/templates/native-go-vue/frontend/src/nas/i18n/files/zh-TW.json +0 -41
- package/templates/native-go-vue/frontend/src/nas/i18n.ts +0 -2
- package/templates/native-go-vue/frontend/src/nas/locale.ts +0 -24
- package/templates/native-go-vue/frontend/src/nas/provider.ts +0 -50
- package/templates/native-go-vue/frontend/src/nas/use-request.ts +0 -18
- package/templates/native-go-vue/frontend/src/portal/PortalSettings.vue +0 -39
- package/templates/native-go-vue/frontend/src/shell/AppShell.vue +0 -48
- package/templates/native-go-vue/frontend/src/shell/i18n/de.json +0 -4
- package/templates/native-go-vue/frontend/src/shell/i18n/en.json +0 -4
- package/templates/native-go-vue/frontend/src/shell/i18n/es.json +0 -4
- package/templates/native-go-vue/frontend/src/shell/i18n/fr.json +0 -4
- package/templates/native-go-vue/frontend/src/shell/i18n/it.json +0 -4
- package/templates/native-go-vue/frontend/src/shell/i18n/ja.json +0 -4
- package/templates/native-go-vue/frontend/src/shell/i18n/ko.json +0 -4
- package/templates/native-go-vue/frontend/src/shell/i18n/zh-CN.json +0 -4
- package/templates/native-go-vue/frontend/src/shell/i18n/zh-TW.json +0 -4
- package/templates/native-go-vue/frontend/src/shell/i18n.ts +0 -17
- package/templates/native-go-vue/frontend/src/shell/pages.ts +0 -15
- package/templates/native-go-vue/frontend/src/style.css +0 -27
- package/templates/native-go-vue/frontend/test/apps.test.ts +0 -57
- package/templates/native-go-vue/frontend/test/native-controls.test.ts +0 -27
- package/templates/native-go-vue/frontend/test/portal-settings.test.ts +0 -71
- package/templates/native-go-vue/frontend/test/shell-i18n.test.ts +0 -50
- package/templates/native-go-vue/frontend/test/shell-ui.test.ts +0 -20
- package/templates/native-go-vue/frontend/test/shell.test.ts +0 -30
- package/templates/native-go-vue/frontend/tsconfig.json +0 -1
- package/templates/native-go-vue/frontend/vite.config.ts +0 -10
- package/templates/native-go-vue/gitignore +0 -2
- /package/{dist/templates/_daemon → assets/go/daemon}/fixture_linux_test.go +0 -0
- /package/{dist/templates/_daemon → assets/go/daemon}/fixture_other_test.go +0 -0
- /package/{dist/templates/_daemon → assets/go/daemon}/go.mod +0 -0
- /package/{dist/templates/_daemon → assets/go/daemon}/main.go +0 -0
- /package/{dist/templates/_daemon → assets/go/daemon}/main_test.go +0 -0
- /package/{dist/templates/_daemon → assets/go/daemon}/process_linux.go +0 -0
- /package/{dist/templates/_daemon → assets/go/daemon}/process_linux_test.go +0 -0
- /package/{dist/templates/_daemon → assets/go/daemon}/process_other.go +0 -0
- /package/{dist/templates/_daemon → assets/go/daemon}/testdata/child.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/auth.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/auth_test.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/cgi.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/cgi_test.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/csrf.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/csrf_test.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/directory.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/directory_test.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/gateway.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/gateway_test.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/go.mod +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/groups.go +0 -0
- /package/{dist/templates/_gateway → assets/go/gateway}/main.go +0 -0
- /package/{dist/templates/_shared → assets/licenses}/GO-LICENSE +0 -0
- /package/{dist/templates/_shared → assets/licenses}/GO-PATENTS +0 -0
- /package/{dist/templates/_shared/LICENSES → assets/licenses}/TEMPLATE.txt +0 -0
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
package main
|
|
2
|
-
|
|
3
|
-
import (
|
|
4
|
-
"context"
|
|
5
|
-
"encoding/json"
|
|
6
|
-
"errors"
|
|
7
|
-
"os"
|
|
8
|
-
"path/filepath"
|
|
9
|
-
"regexp"
|
|
10
|
-
"strings"
|
|
11
|
-
"synopkgland/executor/internal/taskscript"
|
|
12
|
-
"testing"
|
|
13
|
-
)
|
|
14
|
-
|
|
15
|
-
type schedulerFixture struct {
|
|
16
|
-
changed, foreignOwner, duplicate bool
|
|
17
|
-
script string
|
|
18
|
-
// deleteReply replaces the delete envelope, as DSM sends it.
|
|
19
|
-
deleteReply string
|
|
20
|
-
deleted []string
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
func (s *schedulerFixture) Exec(_ context.Context, _ string, args []string) ([]byte, error) {
|
|
24
|
-
api, method := "", ""
|
|
25
|
-
for _, a := range args {
|
|
26
|
-
if strings.HasPrefix(a, "api=") {
|
|
27
|
-
api = strings.TrimPrefix(a, "api=")
|
|
28
|
-
}
|
|
29
|
-
if strings.HasPrefix(a, "method=") {
|
|
30
|
-
method = strings.TrimPrefix(a, "method=")
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
owner := "root"
|
|
34
|
-
if s.foreignOwner {
|
|
35
|
-
owner = "other"
|
|
36
|
-
}
|
|
37
|
-
generated, _ := taskscript.Generate("TestApp", strings.Repeat("b", 64))
|
|
38
|
-
script := generated[1].Script
|
|
39
|
-
if api == "SYNO.Core.EventScheduler" {
|
|
40
|
-
script = generated[0].Script
|
|
41
|
-
}
|
|
42
|
-
if s.script != "" {
|
|
43
|
-
script = s.script
|
|
44
|
-
}
|
|
45
|
-
if s.changed {
|
|
46
|
-
script = "unrelated"
|
|
47
|
-
}
|
|
48
|
-
var data any
|
|
49
|
-
if method == "delete" {
|
|
50
|
-
s.deleted = append(s.deleted, api)
|
|
51
|
-
if api == "SYNO.Core.TaskScheduler" && !contains(args, `tasks=[{"id":7,"real_owner":"root"}]`) {
|
|
52
|
-
return nil, errors.New("wrong delete reference")
|
|
53
|
-
}
|
|
54
|
-
if s.deleteReply != "" {
|
|
55
|
-
return []byte(s.deleteReply), nil
|
|
56
|
-
}
|
|
57
|
-
data = map[string]any{}
|
|
58
|
-
} else if api == "SYNO.Core.EventScheduler" {
|
|
59
|
-
data = map[string]any{"task_name": "TestApp executor boot", "owner": map[string]string{"0": owner}, "operation": script, "operation_type": "script", "event": "bootup", "enable": true}
|
|
60
|
-
} else if method == "list" {
|
|
61
|
-
tasks := []map[string]any{{"name": "TestApp executor control", "id": 7}, {"name": "TestApp executor boot", "id": 1000}}
|
|
62
|
-
if s.duplicate {
|
|
63
|
-
tasks = append(tasks, tasks[0])
|
|
64
|
-
}
|
|
65
|
-
data = map[string]any{"tasks": tasks, "total": len(tasks)}
|
|
66
|
-
} else {
|
|
67
|
-
data = map[string]any{"name": "TestApp executor control", "id": 7, "owner": owner, "real_owner": owner, "enable": false, "type": "script", "extra": map[string]any{"script": script}}
|
|
68
|
-
}
|
|
69
|
-
return json.Marshal(map[string]any{"success": true, "data": data})
|
|
70
|
-
}
|
|
71
|
-
func TestPurgeDeletesOnlyExactOwnRootTasksAndProtectedState(t *testing.T) {
|
|
72
|
-
for _, mode := range []string{"exact", "script changed", "owner changed", "duplicate control", "foreign name"} {
|
|
73
|
-
t.Run(mode, func(t *testing.T) {
|
|
74
|
-
cmd := &schedulerFixture{changed: mode == "script changed", foreignOwner: mode == "owner changed", duplicate: mode == "duplicate control"}
|
|
75
|
-
inventory := taskInventory{Package: "TestApp", PolicyDigest: strings.Repeat("b", 64), Tasks: []approvedTask{{Kind: "boot", Name: "TestApp executor boot", ScriptDigest: canonicalTaskDigest(t, "boot")}, {Kind: "control", Name: "TestApp executor control", ScriptDigest: canonicalTaskDigest(t, "control")}}}
|
|
76
|
-
if mode == "foreign name" {
|
|
77
|
-
inventory.Tasks[0].Name = "OtherApp executor boot"
|
|
78
|
-
}
|
|
79
|
-
state := filepath.Join(t.TempDir(), "state")
|
|
80
|
-
socket := filepath.Join(t.TempDir(), "socket")
|
|
81
|
-
os.MkdirAll(filepath.Join(state, "runtime"), 0700)
|
|
82
|
-
os.MkdirAll(socket, 0700)
|
|
83
|
-
if err := purgeWithInventory(context.Background(), &liveDSM{Command: cmd}, "TestApp", inventory, state, filepath.Join(state, "runtime"), socket, func(string) {}); err != nil {
|
|
84
|
-
t.Fatal(err)
|
|
85
|
-
}
|
|
86
|
-
if _, err := os.Stat(state); !os.IsNotExist(err) {
|
|
87
|
-
t.Fatal("state survived")
|
|
88
|
-
}
|
|
89
|
-
want := 0
|
|
90
|
-
if mode == "exact" {
|
|
91
|
-
want = 2
|
|
92
|
-
}
|
|
93
|
-
if mode == "duplicate control" {
|
|
94
|
-
want = 1
|
|
95
|
-
}
|
|
96
|
-
if len(cmd.deleted) != want {
|
|
97
|
-
t.Fatal("deleted mismatched tasks", cmd.deleted)
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
func TestSnapshotRequiresBothExactSchedulerDefinitionsBeforeWritingInventory(t *testing.T) {
|
|
104
|
-
for _, mismatch := range []bool{false, true} {
|
|
105
|
-
t.Run(map[bool]string{false: "exact setup", true: "changed root task"}[mismatch], func(t *testing.T) {
|
|
106
|
-
dir := realTestPath(t, t.TempDir())
|
|
107
|
-
ed := strings.Repeat("a", 64)
|
|
108
|
-
pd := strings.Repeat("b", 64)
|
|
109
|
-
tasks := []map[string]string{}
|
|
110
|
-
generated, err := taskscript.Generate("TestApp", pd)
|
|
111
|
-
if err != nil {
|
|
112
|
-
t.Fatal(err)
|
|
113
|
-
}
|
|
114
|
-
for _, task := range generated {
|
|
115
|
-
tasks = append(tasks, map[string]string{"kind": task.Kind, "name": task.Name, "header": task.Header, "script": task.Script})
|
|
116
|
-
}
|
|
117
|
-
setup := map[string]any{"package": "TestApp", "executorDigest": ed, "policyDigest": pd, "implementation": "executor", "tasks": tasks}
|
|
118
|
-
b, _ := json.Marshal(setup)
|
|
119
|
-
path := filepath.Join(dir, "setup.json")
|
|
120
|
-
os.WriteFile(path, b, 0600)
|
|
121
|
-
command := &snapshotFixture{mismatch: mismatch, tasks: tasks}
|
|
122
|
-
err = snapshotTasks(context.Background(), &liveDSM{Command: command}, "TestApp", ed, pd, path, dir)
|
|
123
|
-
if (err != nil) != mismatch {
|
|
124
|
-
t.Fatal("snapshot validation", err)
|
|
125
|
-
}
|
|
126
|
-
b, readErr := os.ReadFile(filepath.Join(dir, "tasks.json"))
|
|
127
|
-
if mismatch {
|
|
128
|
-
if !os.IsNotExist(readErr) {
|
|
129
|
-
t.Fatal("unverified inventory persisted")
|
|
130
|
-
}
|
|
131
|
-
return
|
|
132
|
-
}
|
|
133
|
-
var inv taskInventory
|
|
134
|
-
if json.Unmarshal(b, &inv) != nil || !validInventory("TestApp", inv) {
|
|
135
|
-
t.Fatal("missing verified inventory")
|
|
136
|
-
}
|
|
137
|
-
})
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
type snapshotFixture struct {
|
|
142
|
-
mismatch bool
|
|
143
|
-
tasks []map[string]string
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
func (s *snapshotFixture) Exec(ctx context.Context, path string, args []string) ([]byte, error) {
|
|
147
|
-
f := &schedulerFixture{changed: s.mismatch}
|
|
148
|
-
for _, a := range args {
|
|
149
|
-
if a == "api=SYNO.Core.EventScheduler" {
|
|
150
|
-
f.script = s.tasks[0]["script"]
|
|
151
|
-
}
|
|
152
|
-
if a == "api=SYNO.Core.TaskScheduler" {
|
|
153
|
-
f.script = s.tasks[1]["script"]
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return f.Exec(ctx, path, args)
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
func canonicalTaskDigest(t *testing.T, kind string) string {
|
|
160
|
-
t.Helper()
|
|
161
|
-
tasks, err := taskscript.Generate("TestApp", strings.Repeat("b", 64))
|
|
162
|
-
if err != nil {
|
|
163
|
-
t.Fatal(err)
|
|
164
|
-
}
|
|
165
|
-
for _, task := range tasks {
|
|
166
|
-
if task.Kind == kind {
|
|
167
|
-
return hashBytes([]byte(task.Script))
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
t.Fatal("task kind")
|
|
171
|
-
return ""
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// t-0229: preuninst took 15-23 s; time each scheduler phase and the file
|
|
175
|
-
// removal separately, naming the package, so a device log shows which waits.
|
|
176
|
-
func TestPurgeLogsPhaseTimingWithPackageName(t *testing.T) {
|
|
177
|
-
cmd := &schedulerFixture{}
|
|
178
|
-
inventory := taskInventory{Package: "TestApp", PolicyDigest: strings.Repeat("b", 64), Tasks: []approvedTask{{Kind: "boot", Name: "TestApp executor boot", ScriptDigest: canonicalTaskDigest(t, "boot")}, {Kind: "control", Name: "TestApp executor control", ScriptDigest: canonicalTaskDigest(t, "control")}}}
|
|
179
|
-
state := filepath.Join(t.TempDir(), "state")
|
|
180
|
-
socket := filepath.Join(t.TempDir(), "socket")
|
|
181
|
-
os.MkdirAll(filepath.Join(state, "runtime"), 0700)
|
|
182
|
-
os.MkdirAll(socket, 0700)
|
|
183
|
-
logs := []string{}
|
|
184
|
-
if err := purgeWithInventory(context.Background(), &liveDSM{Command: cmd}, "TestApp", inventory, state, filepath.Join(state, "runtime"), socket, func(s string) { logs = append(logs, s) }); err != nil {
|
|
185
|
-
t.Fatal(err)
|
|
186
|
-
}
|
|
187
|
-
task := regexp.MustCompile(`^task cleanup timing: package=TestApp kind=(boot|control) lookup_ms=\d+ delete_ms=\d+ verify_ms=\d+$`)
|
|
188
|
-
total := regexp.MustCompile(`^purge timing: package=TestApp tasks_ms=\d+ files_ms=\d+$`)
|
|
189
|
-
kinds := []string{}
|
|
190
|
-
for _, line := range logs {
|
|
191
|
-
if m := task.FindStringSubmatch(line); m != nil {
|
|
192
|
-
kinds = append(kinds, m[1])
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
if strings.Join(kinds, ",") != "boot,control" || len(logs) == 0 || !total.MatchString(logs[len(logs)-1]) {
|
|
196
|
-
t.Fatal(logs)
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
// t-0237: EventScheduler delete v1 and TaskScheduler delete v2 answer a success
|
|
201
|
-
// without data; that is a confirmed delete, while a refusal stays unconfirmed.
|
|
202
|
-
func TestPurgeConfirmsDatalessDeleteSuccess(t *testing.T) {
|
|
203
|
-
for reply, unconfirmed := range map[string]bool{
|
|
204
|
-
`{"success":true}`: false,
|
|
205
|
-
`{"httpd_restart":false,"success":true}`: false,
|
|
206
|
-
`{"success":false,"error":{"code":4800}}`: true,
|
|
207
|
-
`{"success":true,"error":{"code":4800}}`: true,
|
|
208
|
-
} {
|
|
209
|
-
cmd := &schedulerFixture{deleteReply: reply}
|
|
210
|
-
inventory := taskInventory{Package: "TestApp", PolicyDigest: strings.Repeat("b", 64), Tasks: []approvedTask{{Kind: "boot", Name: "TestApp executor boot", ScriptDigest: canonicalTaskDigest(t, "boot")}, {Kind: "control", Name: "TestApp executor control", ScriptDigest: canonicalTaskDigest(t, "control")}}}
|
|
211
|
-
logs := []string{}
|
|
212
|
-
purgeTasks(context.Background(), &liveDSM{Command: cmd}, "TestApp", inventory, func(s string) { logs = append(logs, s) })
|
|
213
|
-
found := 0
|
|
214
|
-
for _, line := range logs {
|
|
215
|
-
if strings.HasPrefix(line, "task cleanup unconfirmed: ") {
|
|
216
|
-
found++
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
if (found == 2) != unconfirmed || (found != 0 && found != 2) || len(cmd.deleted) != 2 {
|
|
220
|
-
t.Fatal(reply, logs)
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"accounts_present": {
|
|
3
|
-
"p2probe1": false,
|
|
4
|
-
"p2probe2": false,
|
|
5
|
-
"p2probeadm": false,
|
|
6
|
-
"p2probepkg": false
|
|
7
|
-
},
|
|
8
|
-
"paths_present": {
|
|
9
|
-
"/usr/local/etc/synopkgland/p2probepkg": false,
|
|
10
|
-
"/var/packages/p2probepkg": false,
|
|
11
|
-
"/run/synopkgland/p2probepkg": false,
|
|
12
|
-
"/var/services/homes/p2probe1": false,
|
|
13
|
-
"/var/services/homes/p2probe2": false,
|
|
14
|
-
"/var/services/homes/p2probeadm": false,
|
|
15
|
-
"/var/services/homes/p2probepkg": false,
|
|
16
|
-
"/tmp/p2probe-executor.test": false,
|
|
17
|
-
"/tmp/p2probe-executor-setup.py": false,
|
|
18
|
-
"/tmp/p2probe-executor-live.py": false,
|
|
19
|
-
"/tmp/p2probe-executor-final.py": false
|
|
20
|
-
},
|
|
21
|
-
"executor_processes": [],
|
|
22
|
-
"tasks_created": 0,
|
|
23
|
-
"administrators_probe_members": []
|
|
24
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{"scenario": "final status", "response": {"ok": true, "result": {"executor_digest": "bc6d66fb667abf19a2a15f45da3aa90fc84e26fceaf9198bf904b6f8daa1b960", "policy_digest": "ccd9a4932bedd460f7b4f4d54d64449241f510721c19daa9caa426a12415fd6c", "ready": true, "version": "1"}}}
|
|
2
|
-
{"scenario": "delegate.create /home", "response": {"ok": true, "result": {"delegation_id": "eb56c3b83d12021ad31958a51fb2a79007455f5511fab79c2e2a501041d22821", "expires_at": "2026-10-08T01:37:34.700143938Z", "subject": {"uid": 1231, "username": "p2probe1"}}}}
|
|
3
|
-
{"scenario": "final list", "response": {"ok": true, "result": {"files": [{"isdir": true, "name": "p2probe-folder", "path": "/home/p2probe-folder"}, {"isdir": false, "name": "p2probe-output", "path": "/home/p2probe-output"}], "offset": 0, "total": 2}}}
|
|
4
|
-
{"scenario": "final info", "response": {"ok": true, "result": {"files": [{"isdir": false, "name": "p2probe-output", "path": "/home/p2probe-output"}]}}}
|
|
5
|
-
{"scenario": "final createFolder", "response": {"ok": true, "result": {"folders": [{"isdir": true, "name": "p2probe-final-folder", "path": "/home/p2probe-final-folder"}]}}}
|
|
6
|
-
{"scenario": "final checkPermission", "response": {"ok": true, "result": {"blSkip": false}}}
|
|
7
|
-
{"scenario": "kernel ACL denies other home", "exit_code": 1, "stderr": "executor: open /volume1/homes/p2probe2: no such file or directory\n", "note": "Target had already been deleted. This establishes missing-path refusal only; see separate existing-home kernel probe."}
|
|
8
|
-
{"scenario": "duplicate serve", "exit_code": 1, "stderr": "executor: already running\n"}
|
|
9
|
-
{"scenario": "final revoke", "response": {"ok": true, "result": {"revoked": true}}}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
=== RUN TestDSMAccountFailClosed
|
|
2
|
-
=== RUN TestDSMAccountFailClosed/valid
|
|
3
|
-
=== RUN TestDSMAccountFailClosed/success_empty
|
|
4
|
-
=== RUN TestDSMAccountFailClosed/success_no_user
|
|
5
|
-
=== RUN TestDSMAccountFailClosed/missing_expiry
|
|
6
|
-
=== RUN TestDSMAccountFailClosed/disabled
|
|
7
|
-
=== RUN TestDSMAccountFailClosed/uid_mismatch
|
|
8
|
-
=== RUN TestDSMAccountFailClosed/name_mismatch
|
|
9
|
-
--- PASS: TestDSMAccountFailClosed (0.00s)
|
|
10
|
-
--- PASS: TestDSMAccountFailClosed/valid (0.00s)
|
|
11
|
-
--- PASS: TestDSMAccountFailClosed/success_empty (0.00s)
|
|
12
|
-
--- PASS: TestDSMAccountFailClosed/success_no_user (0.00s)
|
|
13
|
-
--- PASS: TestDSMAccountFailClosed/missing_expiry (0.00s)
|
|
14
|
-
--- PASS: TestDSMAccountFailClosed/disabled (0.00s)
|
|
15
|
-
--- PASS: TestDSMAccountFailClosed/uid_mismatch (0.00s)
|
|
16
|
-
--- PASS: TestDSMAccountFailClosed/name_mismatch (0.00s)
|
|
17
|
-
=== RUN TestDSMAppPrivilege
|
|
18
|
-
=== RUN TestDSMAppPrivilege/allow
|
|
19
|
-
=== RUN TestDSMAppPrivilege/deny
|
|
20
|
-
=== RUN TestDSMAppPrivilege/custom
|
|
21
|
-
=== RUN TestDSMAppPrivilege/missing
|
|
22
|
-
=== RUN TestDSMAppPrivilege/duplicate
|
|
23
|
-
--- PASS: TestDSMAppPrivilege (0.01s)
|
|
24
|
-
--- PASS: TestDSMAppPrivilege/allow (0.00s)
|
|
25
|
-
--- PASS: TestDSMAppPrivilege/deny (0.00s)
|
|
26
|
-
--- PASS: TestDSMAppPrivilege/custom (0.00s)
|
|
27
|
-
--- PASS: TestDSMAppPrivilege/missing (0.00s)
|
|
28
|
-
--- PASS: TestDSMAppPrivilege/duplicate (0.00s)
|
|
29
|
-
=== RUN TestDSMVerify
|
|
30
|
-
--- PASS: TestDSMVerify (0.00s)
|
|
31
|
-
=== RUN TestDSMArgvAndEmbeddedError
|
|
32
|
-
--- PASS: TestDSMArgvAndEmbeddedError (0.00s)
|
|
33
|
-
=== RUN TestRootRequiresVerifiedAdmin
|
|
34
|
-
--- PASS: TestRootRequiresVerifiedAdmin (0.00s)
|
|
35
|
-
=== RUN TestSubdirectoryBinding
|
|
36
|
-
--- PASS: TestSubdirectoryBinding (0.00s)
|
|
37
|
-
=== RUN TestDSMEmptyOperationDataDenied
|
|
38
|
-
--- PASS: TestDSMEmptyOperationDataDenied (0.00s)
|
|
39
|
-
=== RUN TestRejections
|
|
40
|
-
=== RUN TestRejections/missing_account
|
|
41
|
-
=== RUN TestRejections/disabled
|
|
42
|
-
=== RUN TestRejections/unknown_disabled_state
|
|
43
|
-
=== RUN TestRejections/admin_runner
|
|
44
|
-
=== RUN TestRejections/system_runner
|
|
45
|
-
=== RUN TestRejections/uid_reuse
|
|
46
|
-
=== RUN TestRejections/app_deny
|
|
47
|
-
=== RUN TestRejections/expired
|
|
48
|
-
=== RUN TestRejections/revoked
|
|
49
|
-
=== RUN TestRejections/job
|
|
50
|
-
=== RUN TestRejections/scope
|
|
51
|
-
=== RUN TestRejections/dotdot
|
|
52
|
-
=== RUN TestRejections/name
|
|
53
|
-
=== RUN TestRejections/outside_staging
|
|
54
|
-
--- PASS: TestRejections (0.01s)
|
|
55
|
-
--- PASS: TestRejections/missing_account (0.00s)
|
|
56
|
-
--- PASS: TestRejections/disabled (0.00s)
|
|
57
|
-
--- PASS: TestRejections/unknown_disabled_state (0.00s)
|
|
58
|
-
--- PASS: TestRejections/admin_runner (0.00s)
|
|
59
|
-
--- PASS: TestRejections/system_runner (0.00s)
|
|
60
|
-
--- PASS: TestRejections/uid_reuse (0.00s)
|
|
61
|
-
--- PASS: TestRejections/app_deny (0.00s)
|
|
62
|
-
--- PASS: TestRejections/expired (0.00s)
|
|
63
|
-
--- PASS: TestRejections/revoked (0.00s)
|
|
64
|
-
--- PASS: TestRejections/job (0.00s)
|
|
65
|
-
--- PASS: TestRejections/scope (0.00s)
|
|
66
|
-
--- PASS: TestRejections/dotdot (0.00s)
|
|
67
|
-
--- PASS: TestRejections/name (0.00s)
|
|
68
|
-
--- PASS: TestRejections/outside_staging (0.00s)
|
|
69
|
-
=== RUN TestUnknownAndPolicy
|
|
70
|
-
--- PASS: TestUnknownAndPolicy (0.00s)
|
|
71
|
-
=== RUN TestSpoofedUsername
|
|
72
|
-
--- PASS: TestSpoofedUsername (0.00s)
|
|
73
|
-
=== RUN TestScopeSymlink
|
|
74
|
-
--- PASS: TestScopeSymlink (0.00s)
|
|
75
|
-
=== RUN TestOperationDelegation
|
|
76
|
-
--- PASS: TestOperationDelegation (0.00s)
|
|
77
|
-
=== RUN TestListAndRevokeOwnership
|
|
78
|
-
--- PASS: TestListAndRevokeOwnership (0.00s)
|
|
79
|
-
=== RUN TestProtocol
|
|
80
|
-
=== RUN TestProtocol/oversize
|
|
81
|
-
=== RUN TestProtocol/unknown_field
|
|
82
|
-
=== RUN TestProtocol/duplicate
|
|
83
|
-
=== RUN TestProtocol/utf8
|
|
84
|
-
=== RUN TestProtocol/version
|
|
85
|
-
--- PASS: TestProtocol (0.00s)
|
|
86
|
-
--- PASS: TestProtocol/oversize (0.00s)
|
|
87
|
-
--- PASS: TestProtocol/unknown_field (0.00s)
|
|
88
|
-
--- PASS: TestProtocol/duplicate (0.00s)
|
|
89
|
-
--- PASS: TestProtocol/utf8 (0.00s)
|
|
90
|
-
--- PASS: TestProtocol/version (0.00s)
|
|
91
|
-
=== RUN TestWrongPeer
|
|
92
|
-
--- PASS: TestWrongPeer (0.00s)
|
|
93
|
-
=== RUN TestStorePersistence
|
|
94
|
-
--- PASS: TestStorePersistence (0.00s)
|
|
95
|
-
=== RUN TestFileStationPrivilegeRequiredSeparately
|
|
96
|
-
--- PASS: TestFileStationPrivilegeRequiredSeparately (0.00s)
|
|
97
|
-
=== RUN TestSharedScope
|
|
98
|
-
--- PASS: TestSharedScope (0.00s)
|
|
99
|
-
=== RUN TestPolicyValidation
|
|
100
|
-
--- PASS: TestPolicyValidation (0.00s)
|
|
101
|
-
=== RUN TestFilenameAndTTL
|
|
102
|
-
--- PASS: TestFilenameAndTTL (0.00s)
|
|
103
|
-
=== RUN TestStoreRejectSymlinkAndMode
|
|
104
|
-
--- PASS: TestStoreRejectSymlinkAndMode (0.00s)
|
|
105
|
-
=== RUN TestDropOrderAndFailures
|
|
106
|
-
--- PASS: TestDropOrderAndFailures (0.00s)
|
|
107
|
-
=== RUN TestLinuxStagingSymlinks
|
|
108
|
-
--- PASS: TestLinuxStagingSymlinks (0.00s)
|
|
109
|
-
=== RUN TestLinuxCopyScopeAndNoOverwrite
|
|
110
|
-
--- PASS: TestLinuxCopyScopeAndNoOverwrite (0.00s)
|
|
111
|
-
=== RUN TestLinuxPeerCredential
|
|
112
|
-
--- PASS: TestLinuxPeerCredential (0.00s)
|
|
113
|
-
=== RUN TestLinuxPIDLock
|
|
114
|
-
--- PASS: TestLinuxPIDLock (0.00s)
|
|
115
|
-
=== RUN TestScriptDigest
|
|
116
|
-
--- PASS: TestScriptDigest (0.00s)
|
|
117
|
-
=== RUN TestLinuxStagingRootSymlink
|
|
118
|
-
--- PASS: TestLinuxStagingRootSymlink (0.00s)
|
|
119
|
-
=== RUN TestLinuxStagingHardlinkAndOwner
|
|
120
|
-
--- PASS: TestLinuxStagingHardlinkAndOwner (0.00s)
|
|
121
|
-
=== RUN TestScriptTimeoutAndOutputLimit
|
|
122
|
-
--- PASS: TestScriptTimeoutAndOutputLimit (0.11s)
|
|
123
|
-
PASS
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{"scenario": "status", "response": {"ok": true, "result": {"executor_digest": "4b0ae64de9e55f5c09de107ee5158791d114c0a31ddcb890fd848ee8dd9997fc", "policy_digest": "ccd9a4932bedd460f7b4f4d54d64449241f510721c19daa9caa426a12415fd6c", "ready": true, "version": "1"}}}
|
|
2
|
-
{"scenario": "wrong peer", "response": {"closed": true}}
|
|
3
|
-
{"scenario": "delegate.create /home", "response": {"ok": true, "result": {"delegation_id": "2758bd7d59f186c0e8cf3b09c6f347020616e42ae8286032e0bac5732e526393", "expires_at": "2026-10-08T01:33:23.604403596Z", "subject": {"uid": 1231, "username": "p2probe1"}}}}
|
|
4
|
-
{"scenario": "files.write own home", "response": {"ok": true, "result": {"path": "/home/p2probe-output"}}}
|
|
5
|
-
{"scenario": "owner", "uid": 1231, "gid": 100, "mode": "0o711", "content": "P2 executor content\n"}
|
|
6
|
-
{"scenario": "ACL readback", "acl": "ACL version: 1 \nArchive: is_inherit,is_support_ACL \nOwner: [p2probe1(user)] \n--------------------- \n\t [0] user:p2probe1:allow:rwxpdDaARWcCo:---- (level:1)\n\t [1] group:administrators:allow:rwxpdDaARWc--:---- (level:2)\n\t [3] user:p2probe1:allow:rwxpdDaARWcCo:---- (level:2)\n\t [4] everyone::allow:--x----------:---- (level:2)", "note": "Unrelated inherited ACL rows omitted; parent ACL was not changed."}
|
|
7
|
-
{"scenario": "no overwrite", "response": {"ok": false, "code": "WRITE_FAILED", "message": "write failed"}}
|
|
8
|
-
{"scenario": "other home", "response": {"ok": false, "code": "SCOPE_DENIED", "message": "scope denied"}}
|
|
9
|
-
{"scenario": "symlink escape", "response": {"ok": false, "code": "SCOPE_DENIED", "message": "scope denied"}}
|
|
10
|
-
{"scenario": "cross job", "response": {"ok": false, "code": "DELEGATION_DENIED", "message": "delegation denied"}}
|
|
11
|
-
{"scenario": "admin runner", "response": {"ok": false, "code": "INELIGIBLE", "message": "ineligible"}}
|
|
12
|
-
{"scenario": "root.run admin", "response": {"ok": true, "result": {"output": "0\n"}}}
|
|
13
|
-
{"scenario": "root.run regular", "response": {"ok": false, "code": "ADMIN_REQUIRED", "message": "admin required"}}
|
|
14
|
-
{"scenario": "files.list", "response": {"ok": true, "result": {"files": [{"isdir": false, "name": "p2probe-output", "path": "/home/p2probe-output"}], "offset": 0, "total": 1}}}
|
|
15
|
-
{"scenario": "files.info", "response": {"ok": true, "result": {"files": [{"isdir": false, "name": "p2probe-output", "path": "/home/p2probe-output"}]}}}
|
|
16
|
-
{"scenario": "files.createFolder", "response": {"ok": true, "result": {"folders": [{"isdir": true, "name": "p2probe-folder", "path": "/home/p2probe-folder"}]}}}
|
|
17
|
-
{"scenario": "files.checkPermission", "response": {"ok": true, "result": {"blSkip": false}}}
|
|
18
|
-
{"scenario": "disabled runner", "response": {"ok": false, "code": "INELIGIBLE", "message": "ineligible"}}
|
|
19
|
-
{"scenario": "AppPriv deny", "response": {"ok": false, "code": "APP_DENIED", "message": "app denied"}}
|
|
20
|
-
{"scenario": "revoke", "response": {"ok": true, "result": {"revoked": true}}}
|
|
21
|
-
{"scenario": "revoked", "response": {"ok": false, "code": "DELEGATION_DENIED", "message": "delegation denied"}}
|
|
22
|
-
{"scenario": "delegate.create /home", "response": {"ok": true, "result": {"delegation_id": "fd1401cfacf74a51571c9991007b74f3b00d1965d0c024555e4950b0c2764885", "expires_at": "2026-10-08T01:33:50.727843683Z", "subject": {"uid": 1233, "username": "p2probe2"}}}}
|
|
23
|
-
{"scenario": "deleted runner", "response": {"ok": false, "code": "INELIGIBLE", "message": "ineligible"}}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"host": "vt-nas.syno",
|
|
3
|
-
"dsm": "7.4-90069",
|
|
4
|
-
"arch": "x86_64",
|
|
5
|
-
"measurements": [
|
|
6
|
-
{
|
|
7
|
-
"path": "/usr/syno/etc/packages",
|
|
8
|
-
"owner": "root",
|
|
9
|
-
"group": "root",
|
|
10
|
-
"mode": "0o755",
|
|
11
|
-
"resolved": "/usr/syno/etc/packages",
|
|
12
|
-
"symlink": false
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"path": "/usr/syno/etc/packages/FileStation",
|
|
16
|
-
"owner": "FileStation",
|
|
17
|
-
"group": "FileStation",
|
|
18
|
-
"mode": "0o755",
|
|
19
|
-
"resolved": "/usr/syno/etc/packages/FileStation",
|
|
20
|
-
"symlink": false
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"path": "/var/packages/FileStation/etc",
|
|
24
|
-
"owner": "root",
|
|
25
|
-
"group": "root",
|
|
26
|
-
"mode": "0o777",
|
|
27
|
-
"resolved": "/usr/syno/etc/packages/FileStation",
|
|
28
|
-
"symlink": true
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "/usr/local",
|
|
32
|
-
"owner": "root",
|
|
33
|
-
"group": "root",
|
|
34
|
-
"mode": "0o755",
|
|
35
|
-
"resolved": "/usr/local",
|
|
36
|
-
"symlink": false
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "/usr/local/etc",
|
|
40
|
-
"owner": "root",
|
|
41
|
-
"group": "root",
|
|
42
|
-
"mode": "0o755",
|
|
43
|
-
"resolved": "/usr/local/etc",
|
|
44
|
-
"symlink": false
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"path": "/usr/local/etc/synopkgland/p2probepkg",
|
|
48
|
-
"owner": "root",
|
|
49
|
-
"group": "root",
|
|
50
|
-
"mode": "0o700",
|
|
51
|
-
"resolved": "/usr/local/etc/synopkgland/p2probepkg",
|
|
52
|
-
"symlink": false
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"path": "/usr/local/etc/synopkgland/p2probepkg/runtime",
|
|
56
|
-
"owner": "root",
|
|
57
|
-
"group": "root",
|
|
58
|
-
"mode": "0o700",
|
|
59
|
-
"resolved": "/usr/local/etc/synopkgland/p2probepkg/runtime",
|
|
60
|
-
"symlink": false
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "/usr/local/etc/synopkgland/p2probepkg/delegations",
|
|
64
|
-
"owner": "root",
|
|
65
|
-
"group": "root",
|
|
66
|
-
"mode": "0o700",
|
|
67
|
-
"resolved": "/usr/local/etc/synopkgland/p2probepkg/delegations",
|
|
68
|
-
"symlink": false
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"path": "/run/synopkgland/p2probepkg",
|
|
72
|
-
"owner": "root",
|
|
73
|
-
"group": "users",
|
|
74
|
-
"mode": "0o750",
|
|
75
|
-
"resolved": "/run/synopkgland/p2probepkg",
|
|
76
|
-
"symlink": false
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"path": "/run/synopkgland/p2probepkg/executor.sock",
|
|
80
|
-
"owner": "root",
|
|
81
|
-
"group": "users",
|
|
82
|
-
"mode": "0o660",
|
|
83
|
-
"resolved": "/run/synopkgland/p2probepkg/executor.sock",
|
|
84
|
-
"symlink": false
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"reboot_retention": "unverified in this task",
|
|
88
|
-
"package_upgrade_retention": "unverified in this task",
|
|
89
|
-
"dsm_update_retention": "unknown"
|
|
90
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"baseline": "e13b651",
|
|
3
|
-
"host": "darwin/arm64 Go 1.26.0",
|
|
4
|
-
"linux_host": "vt-nas.syno DSM 7.4-90069 x86_64",
|
|
5
|
-
"executor_tests": {
|
|
6
|
-
"host_cases_passed": 52,
|
|
7
|
-
"host_top_level_tests": 21,
|
|
8
|
-
"linux_cases_passed": 61,
|
|
9
|
-
"linux_top_level_tests": 30
|
|
10
|
-
},
|
|
11
|
-
"gates": {
|
|
12
|
-
"native-go": {
|
|
13
|
-
"result": "PASS",
|
|
14
|
-
"checks": [
|
|
15
|
-
"executor race/vet/gofmt",
|
|
16
|
-
"Linux amd64/arm64 vet, static build, test compilation",
|
|
17
|
-
"native-go backend race/vet/gofmt"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"daemon-gateway": {
|
|
21
|
-
"result": "PASS"
|
|
22
|
-
},
|
|
23
|
-
"npm": {
|
|
24
|
-
"result": "PASS",
|
|
25
|
-
"cli": {
|
|
26
|
-
"tests": 795,
|
|
27
|
-
"pass": 793,
|
|
28
|
-
"skip": 2,
|
|
29
|
-
"fail": 0
|
|
30
|
-
},
|
|
31
|
-
"package_source": {
|
|
32
|
-
"tests": 64,
|
|
33
|
-
"pass": 64,
|
|
34
|
-
"fail": 0
|
|
35
|
-
},
|
|
36
|
-
"release_scripts": {
|
|
37
|
-
"tests": 6,
|
|
38
|
-
"pass": 6,
|
|
39
|
-
"fail": 0
|
|
40
|
-
},
|
|
41
|
-
"shell_scripts": "PASS"
|
|
42
|
-
},
|
|
43
|
-
"website": {
|
|
44
|
-
"result": "PASS",
|
|
45
|
-
"tests": 41,
|
|
46
|
-
"pass": 41,
|
|
47
|
-
"fail": 0,
|
|
48
|
-
"astro_errors": 0,
|
|
49
|
-
"astro_hints": 1
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"final_live_executor_sha256": "bc6d66fb667abf19a2a15f45da3aa90fc84e26fceaf9198bf904b6f8daa1b960",
|
|
53
|
-
"live_policy_sha256": "ccd9a4932bedd460f7b4f4d54d64449241f510721c19daa9caa426a12415fd6c",
|
|
54
|
-
"spk": "Not built; CLI/SPK integration is outside this task ownership."
|
|
55
|
-
}
|