pocketshell 0.5.13__tar.gz → 0.5.14__tar.gz
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.
- {pocketshell-0.5.13 → pocketshell-0.5.14}/PKG-INFO +1 -1
- {pocketshell-0.5.13 → pocketshell-0.5.14}/pyproject.toml +1 -1
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/vault_enrollment.py +24 -1
- pocketshell-0.5.14/tests/account/fixtures/windows-gateway-config-native-v1.json +18 -0
- pocketshell-0.5.14/tests/account/test_windows_gateway_config_native.py +150 -0
- pocketshell-0.5.14/tests/gateway/packaged_gateway_config_runner.py +88 -0
- pocketshell-0.5.14/tests/gateway/test_windows_packaged_gateway_config_native.py +82 -0
- pocketshell-0.5.14/tests/test_windows_config_ci_selection.py +18 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/uv.lock +1 -1
- {pocketshell-0.5.13 → pocketshell-0.5.14}/.gitattributes +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/.gitignore +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/LICENSE +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/README.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/SCOPE.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/account.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/architecture.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/bounded-container-sessions.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/gateway-distribution.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/gateway.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/keys.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/link-transport.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/tray.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/vault-enrollment.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/windows-gateway-client.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/windows-gateway-private-runtime.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/docs/windows-tray-installer.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/launcher/go.mod +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/launcher/main.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/context.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/context_test.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/context_windows.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/entry.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/go.mod +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/go.sum +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/main.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/protocol.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/protocol_test.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/spawn_test.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/spawn_windows.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/verify_other.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/native/verify/verify_windows.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/pocketshell-tray.spec +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/aplexer-fc396/README.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/aplexer-fc396/SHA256SUMS +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/aplexer-fc396/windows-native-fc396.zip +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/dossiers/OWNED-BUILD-V26A.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/dossiers/SHA256SUMS +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/dossiers/quiet-build-terminal-fields-addendum.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/dossiers/quiet-host-source-build-role-handoff.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/dossiers/transfer-manifest.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/dossiers/windows-aplexer-msys-backend-source-role-handoff.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-6cf7ae85/.gitattributes +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-6cf7ae85/README.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-6cf7ae85/SHA256SUMS +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-6cf7ae85/guardian.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-6cf7ae85/native_api.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-6cf7ae85/policy.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-e862645d/DERIVATION.diff +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-e862645d/README.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-e862645d/SHA256SUMS +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-e862645d/guardian.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-e862645d/native_api.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-e862645d/policy.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-interactive/README.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-interactive/SHA256SUMS +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-interactive/guardian.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-interactive/native_api.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-interactive/policy.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-servicing/README.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-servicing/SHA256SUMS +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-servicing/guardian.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-servicing/native_api.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/guardian-servicing/policy.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/msys2-runtime-5a1665c8/SHA256SUMS +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/msys2-runtime-5a1665c8/console.cc +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/NULL-PATH-FIX.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/SHA256SUMS +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/policy-manifest.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/shell-host.c +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/w32fd.c +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-auth.c +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-session.c +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/wmain_sshd.c +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/pocketshell-link-70f5a4b/README.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/pocketshell-link-70f5a4b/SHA256SUMS +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/pocketshell-link-70f5a4b/pocketshell-link-windows-amd64.exe +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/check-antigravity-contract.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/check-cgroup-cap-proof.sh +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/check-product-tmux-absent.sh +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/check-python-ci-lock.sh +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/ci/scope_guard.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/ci/test_scope_guard.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/reinstall-box-cli.sh +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/release/build_backend_windows.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/release/build_closure.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/release/build_tray_installer.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/release/private_shell_overlay.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/release/psc-install.ps1 +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/release/smoke_tray_bundle.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/release/tray-installer.nsi +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/release/update_tray_runtime.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/sync-readme-exit-codes.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/test-usage-missing-window-mutation.sh +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/windows-e2e-sshd-setup.ps1 +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/scripts/windows-gateway-qualify.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/__main__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/account/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/account/broker.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/account/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/account/config.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/account/credentials.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/account/device.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/account/errors.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/account/jsonutil.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/account/sanitize.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/account/shared_vault.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/conversations/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/conversations/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/conversations/readers.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/conversations/resolve.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/conversations/roots.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/kind.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/launch/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/launch/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/launch/command.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/launch/environment.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/launch/run.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/launch/spec.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/agents/launch/trust.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/attachments/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/attachments/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/attachments/prune.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/daemon/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/daemon/cache.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/daemon/client.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/daemon/dispatch.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/daemon/failures.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/daemon/lifecycle.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/daemon/methods.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/daemon/paths.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/daemon/protocol.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/daemon/server.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/engines/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/engines/builtin.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/engines/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/engines/harness.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/engines/registry.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/engines/spec.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/env/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/env/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/env/parse.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/env/store.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/client_cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/devices.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/endpoint.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/helper.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/pins.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/private_endpoint.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/proxy.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_agent_endpoint.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_agent_firstuse.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_agent_install.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_common.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_endpoint.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_hostkey.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_linux.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_task_acl.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_user_agent.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_windows.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/service_windows_endpoint.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/sshcmd.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/status.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/tokens.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/gateway/winssh.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/github.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/hooks/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/hooks/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/hooks/handlers.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/hooks/installers.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/hooks/paths.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/hooks/providers/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/hooks/providers/claude.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/hooks/providers/codex.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/hooks/status.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/keys/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/keys/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/keys/crypto.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/keys/prompt.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/keys/session.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/keys/sshkeys.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/keys/store.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/link/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/link/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/link/client.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/link/daemon.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/link/protocol.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/link/relay.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/logs/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/logs/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/logs/events.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/logs/hooks.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/logs/paths.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/logs/redact.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/profiles/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/profiles/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/profiles/discovery.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/profiles/model.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/profiles/resolve.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/repos/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/repos/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/repos/handlers.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/repos/local.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/repos/model.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/repos/remote.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/repos/render.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/runtime/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/runtime/aplexer.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/runtime/cgroups.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/runtime/console_scripts.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/runtime/inherited_cgroup.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/runtime/memcap.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/runtime/sessions.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/serve.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/sessions/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/sessions/attach.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/sessions/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/sessions/create.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/sessions/kill.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/sessions/listing.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/sessions/rename.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/sessions/warnings.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tokentls.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/__main__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/app.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/autostart.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/dialogs.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/gateway_auth.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/icons.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/model.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/single_instance.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/status_client.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray/vault_password.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray_bundle.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray_repair.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tray_supervisor.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tree/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tree/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tree/daemon.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tree/model.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tree/paths.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tree/storage.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tree/workspaces/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tree/workspaces/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/tree/workspaces/membership.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/usage/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/usage/cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/usage/normalize.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/usage/quse.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/windows_security.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/src/pocketshell/windows_sessions.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/fixtures/trusted-host-v1-vector.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/fixtures/vault-v1-vectors.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_account_basics.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_account_broker.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_account_cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_account_credentials.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_account_device_flow.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_account_tls.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_shared_vault.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_vault_enrollment.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_vault_revocation_replay.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_vault_trust_store.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/account/test_windows_private_storage.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/aplexer_requirement.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/conftest.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/data/quse-0.0.11-usage.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/data/quse-0.0.13-usage.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/data/quse-0.0.15-usage.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/data/quse-0.0.15-usage.ndjson +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/data/quse-0.0.15-usage.provenance.txt +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/data/quse-0.0.17-gemini.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/data/quse-0.0.17-gemini.provenance.txt +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/data/quse-0.0.9-usage.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/data/sshd_anchor/Dockerfile.from-unanchored-base +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/docker/inherited-memory/Dockerfile +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/docker/inherited-memory/proof.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/docker/link/e2e.sh +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/docker/link/e2e_client.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/docker/link/host_entry.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/docker/link/relay_entry.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/docker/phone-host/.gitattributes +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/docker/phone-host/Dockerfile +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/docker/phone-host/README.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/docker/phone-host/entrypoint.sh +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/fake_broker.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/fixtures/aplexer/README.md +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/fixtures/aplexer/snapshot-agent.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/fixtures/aplexer/snapshot-crashed-start.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/fixtures/aplexer/snapshot-liveness-mix.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/fixtures/aplexer/snapshot-mid-create.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/fixtures/aplexer/snapshot-post-kill-window.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/fixtures/aplexer/snapshot-reported-state.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/fixtures/aplexer/snapshot.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/agent_harness.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/conftest.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/fake_gateway.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/fakeguardian/go.mod +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/fakeguardian/go.sum +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/fakeguardian/main.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/fakelink/main.go +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/fixtures/ordinary-v2-authority.schema.json +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/fixtures/task-object-authority.ps1 +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/gateway_keyblobs.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_bundled_hostkey.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_agent_firstuse.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_agent_install.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_agent_resume.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_agent_setup_cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_auth_cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_connect_e2e.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_devices.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_endpoint.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_endpoint_setup.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_enroll_login.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_exec_passthrough.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_helper_metadata.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_helper_resolution.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_helper_wheel.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_pins.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_proxy.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_service.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_service_endpoint.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_service_task_acl.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_service_task_object.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_ssh.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_ssh_key.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_ssh_key_e2e.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_status.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_gateway_user_agent.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_private_endpoint.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_agent_install_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_aplexer_probe_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_complete_runtime_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_endpoint_keys_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_gateway_e2e.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_gateway_service_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_gateway_user_agent_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_helper_execution.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_launcher_quiet_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_qualify_accounting.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_release_closure_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_service_private_read.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_spawn_entry_tree_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_sshcmd.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_verify_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_windows_winssh_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/test_winssh.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/gateway/unelevated.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/keys/conftest.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/keys/keyhelpers.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/keys/test_keys_cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/keys/test_keys_crypto.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/keys/test_keys_store.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/link/test_adversarial_security.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/link/test_cli_link.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/link/test_exec_semantics.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/link/test_loopback.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/link/test_protocol.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/link/test_resilience.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/link/test_workload_integrity.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/release/test_build_backend.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/release/test_tray_installer.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/release/test_windows_psc_install_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/release/test_windows_psc_upgrade_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_agent_log.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_agents.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_agents_kind.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_antigravity.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_aplexer_contract.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_aplexer_resolution.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_attachments.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_cgroup_agents.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_daemon.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_daemon_fallback.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_daemon_wire.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_engines.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_env.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_github.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_hooks.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_inherited_cgroup.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_inherited_cgroup_kernel_proof.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_logs.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_main.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_profiles.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_repos.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_serve.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_serve_http.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_session_cgroup_kernel_proof.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_session_enum.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_sessions.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_sessions_attach.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_sessions_create_routing.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_sessions_kill.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_sessions_mem_cap.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_sessions_rename.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_sessions_warnings.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_tree.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_usage.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_windows_startup.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/test_workspaces.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/__init__.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/conftest.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_app.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_autostart.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_bundle.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_cli.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_endpoint_native.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_gateway_auth.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_icons.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_model.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_private_replacement.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_repair.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_single_instance.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_status_client.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_supervisor.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_vault_password.py +0 -0
- {pocketshell-0.5.13 → pocketshell-0.5.14}/tests/tray/test_windows_sessions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pocketshell
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.14
|
|
4
4
|
Summary: Unified server-side Python utility for the PocketShell Android and desktop clients.
|
|
5
5
|
Project-URL: Homepage, https://github.com/PocketShell-io/pocketshell-cli
|
|
6
6
|
Project-URL: Issues, https://github.com/PocketShell-io/pocketshell-cli/issues
|
|
@@ -11,7 +11,7 @@ name = "pocketshell"
|
|
|
11
11
|
# since the extraction (PocketShell-io/pocketshell#2643): the first
|
|
12
12
|
# self-governed release is 0.5.5, continuing from the last app-coupled
|
|
13
13
|
# release 0.5.4 so `uv tool upgrade pocketshell` stays monotonic.
|
|
14
|
-
version = "0.5.
|
|
14
|
+
version = "0.5.14"
|
|
15
15
|
description = "Unified server-side Python utility for the PocketShell Android and desktop clients."
|
|
16
16
|
readme = "README.md"
|
|
17
17
|
requires-python = ">=3.11"
|
|
@@ -56,8 +56,31 @@ def read_private(path: Path, limit=65536) -> bytes:
|
|
|
56
56
|
os.close(fd)
|
|
57
57
|
|
|
58
58
|
|
|
59
|
+
def read_enrollment_config(path: Path) -> bytes:
|
|
60
|
+
"""The public helper config uses the gateway's native authority contract.
|
|
61
|
+
|
|
62
|
+
Windows helper-created config files may also grant SYSTEM/Administrators
|
|
63
|
+
access. The private device PEM and vault trust records retain read_private's
|
|
64
|
+
stricter owner-only storage contract.
|
|
65
|
+
"""
|
|
66
|
+
if sys.platform != "win32":
|
|
67
|
+
return read_private(path)
|
|
68
|
+
from pocketshell.gateway.service_common import ServiceError
|
|
69
|
+
from pocketshell.gateway.service_windows import WindowsApi
|
|
70
|
+
api = WindowsApi()
|
|
71
|
+
sid = api.current_sid()
|
|
72
|
+
try:
|
|
73
|
+
api.path_authority(str(path), sid, role="private", protected=True)
|
|
74
|
+
data = api.read_private_file(str(path), sid, 65536)
|
|
75
|
+
except ServiceError:
|
|
76
|
+
raise VaultError("The local gateway config is not protected by its owner.") from None
|
|
77
|
+
if data is None:
|
|
78
|
+
raise VaultError("The local gateway config is missing.")
|
|
79
|
+
return data
|
|
80
|
+
|
|
81
|
+
|
|
59
82
|
def local_identity(config_dir: Path) -> dict:
|
|
60
|
-
config = parse(
|
|
83
|
+
config = parse(read_enrollment_config(config_dir / "config.json").decode("utf-8"))
|
|
61
84
|
server, device = config.get("server"), config.get("device_id")
|
|
62
85
|
if server != endpoint.DEFAULT_SERVER or not isinstance(device, str) \
|
|
63
86
|
or not endpoint.DEVICE_ID_RE.fullmatch(device):
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"suite": "test_windows_gateway_config_native.py",
|
|
4
|
+
"cases": [
|
|
5
|
+
"test_real_gateway_writer_config_is_accepted_and_exact_device_key_is_derived",
|
|
6
|
+
"test_foreign_read_or_mutation_config_acl_is_refused[R]",
|
|
7
|
+
"test_foreign_read_or_mutation_config_acl_is_refused[M]",
|
|
8
|
+
"test_inherited_config_acl_is_refused",
|
|
9
|
+
"test_hardlinked_config_is_refused",
|
|
10
|
+
"test_junction_ancestor_is_refused",
|
|
11
|
+
"test_foreign_acl_swapped_after_protected_path_gate_is_refused",
|
|
12
|
+
"test_foreign_mutation_on_config_parent_is_refused",
|
|
13
|
+
"test_privileged_acl_is_still_refused_for_the_device_private_key",
|
|
14
|
+
"test_valid_but_changed_local_identity_is_refused_before_publication[device_id]",
|
|
15
|
+
"test_valid_but_changed_local_identity_is_refused_before_publication[ssh_host_key]",
|
|
16
|
+
"test_valid_but_changed_local_identity_is_refused_before_publication[device_key]"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"""Actual helper-writer ACL -> trusted enrollment reader, with synthetic keys."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import json
|
|
5
|
+
import os
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
import subprocess
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
from cryptography.hazmat.primitives import serialization
|
|
11
|
+
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
|
|
12
|
+
import pytest
|
|
13
|
+
|
|
14
|
+
from pocketshell.account.shared_vault import VaultError, b64
|
|
15
|
+
from pocketshell.gateway import endpoint, vault_enrollment as enrollment
|
|
16
|
+
|
|
17
|
+
pytestmark = pytest.mark.skipif(sys.platform != "win32", reason="actual Windows file authority")
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def icacls(*args):
|
|
21
|
+
binary = Path(os.environ["SystemRoot"]) / "System32/icacls.exe"
|
|
22
|
+
result = subprocess.run([str(binary), *map(str, args)], capture_output=True, creationflags=0x08000000)
|
|
23
|
+
assert result.returncode == 0, (result.stdout + result.stderr).decode(errors="replace")
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def public(key):
|
|
27
|
+
return key.public_key().public_bytes(serialization.Encoding.OpenSSH,
|
|
28
|
+
serialization.PublicFormat.OpenSSH).decode()
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@pytest.fixture
|
|
32
|
+
def local(tmp_path):
|
|
33
|
+
from pocketshell import windows_security as ws
|
|
34
|
+
from pocketshell.gateway.service_windows import WindowsApi
|
|
35
|
+
api = WindowsApi()
|
|
36
|
+
# Create the same explicit owner-only fixture ancestry as the tray. Python
|
|
37
|
+
# 3.13+ mode-0700 pytest directories also add OWNER_RIGHTS, which the gateway
|
|
38
|
+
# deliberately does not treat as a named owner SID. Touch only these owned
|
|
39
|
+
# disposable test directories, never AppData or another shared ancestor.
|
|
40
|
+
for directory in (tmp_path.parent, tmp_path):
|
|
41
|
+
icacls(directory, "/inheritance:r", "/grant:r", f"*{api.current_sid()}:(OI)(CI)F",
|
|
42
|
+
"/remove:g", "*S-1-3-4")
|
|
43
|
+
root = tmp_path / "enrollment"
|
|
44
|
+
device = Ed25519PrivateKey.from_private_bytes(bytes(range(32)))
|
|
45
|
+
host = Ed25519PrivateKey.from_private_bytes(bytes(range(32, 64)))
|
|
46
|
+
pem = device.private_bytes(serialization.Encoding.PEM, serialization.PrivateFormat.PKCS8,
|
|
47
|
+
serialization.NoEncryption())
|
|
48
|
+
ws.write_private(root / "device_ed25519.pem", pem)
|
|
49
|
+
data = {"server": endpoint.DEFAULT_SERVER, "device_id": "fixture-windows",
|
|
50
|
+
"ssh_host_key": public(host)}
|
|
51
|
+
path = root / "config.json"
|
|
52
|
+
api.write_owned_file(str(path), json.dumps(data).encode(), api.current_sid())
|
|
53
|
+
return root, path, api, data, device
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def test_real_gateway_writer_config_is_accepted_and_exact_device_key_is_derived(local):
|
|
57
|
+
root, path, api, data, device = local
|
|
58
|
+
actual = enrollment.local_identity(root)
|
|
59
|
+
assert actual == {"serverUrl": data["server"], "deviceId": data["device_id"],
|
|
60
|
+
"sshHostKey": data["ssh_host_key"], "config": data,
|
|
61
|
+
"devicePublicKey": b64(device.public_key().public_bytes(
|
|
62
|
+
serialization.Encoding.Raw, serialization.PublicFormat.Raw))}
|
|
63
|
+
# Acceptance is limited to the public config, not a global relaxation.
|
|
64
|
+
from pocketshell.windows_security import PrivateFileError
|
|
65
|
+
with pytest.raises(PrivateFileError):
|
|
66
|
+
enrollment.read_private(path)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@pytest.mark.parametrize("permission", ["R", "M"])
|
|
70
|
+
def test_foreign_read_or_mutation_config_acl_is_refused(local, permission):
|
|
71
|
+
root, path, *_ = local
|
|
72
|
+
icacls(path, "/grant", f"*S-1-1-0:{permission}")
|
|
73
|
+
with pytest.raises(VaultError, match="protected by its owner"):
|
|
74
|
+
enrollment.local_identity(root)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def test_inherited_config_acl_is_refused(local):
|
|
78
|
+
root, path, *_ = local
|
|
79
|
+
icacls(path, "/inheritance:e")
|
|
80
|
+
with pytest.raises(VaultError, match="protected by its owner"):
|
|
81
|
+
enrollment.local_identity(root)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def test_hardlinked_config_is_refused(local):
|
|
85
|
+
root, path, *_ = local
|
|
86
|
+
os.link(path, root / "second-config.json")
|
|
87
|
+
with pytest.raises(VaultError, match="protected by its owner"):
|
|
88
|
+
enrollment.local_identity(root)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def test_junction_ancestor_is_refused(local, tmp_path):
|
|
92
|
+
root, *_ = local
|
|
93
|
+
link = tmp_path / "junction"
|
|
94
|
+
def quoted(value):
|
|
95
|
+
return "'" + str(value).replace("'", "''") + "'"
|
|
96
|
+
powershell = Path(os.environ["SystemRoot"]) / "System32/WindowsPowerShell/v1.0/powershell.exe"
|
|
97
|
+
result = subprocess.run([str(powershell), "-NoProfile", "-NonInteractive", "-Command",
|
|
98
|
+
f"New-Item -ItemType Junction -Path {quoted(link)} -Target {quoted(root)} | Out-Null"],
|
|
99
|
+
capture_output=True, creationflags=0x08000000)
|
|
100
|
+
assert result.returncode == 0, (result.stdout + result.stderr).decode(errors="replace")
|
|
101
|
+
try:
|
|
102
|
+
with pytest.raises(VaultError, match="protected by its owner"):
|
|
103
|
+
enrollment.local_identity(link)
|
|
104
|
+
finally:
|
|
105
|
+
link.rmdir() # remove this junction itself, never recursively its target
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def test_foreign_acl_swapped_after_protected_path_gate_is_refused(local, monkeypatch):
|
|
109
|
+
from pocketshell.gateway.service_windows import WindowsApi
|
|
110
|
+
root, path, *_ = local
|
|
111
|
+
real = WindowsApi.read_private_file
|
|
112
|
+
def swap_then_read(self, candidate, sid, limit):
|
|
113
|
+
assert Path(candidate) == path
|
|
114
|
+
icacls(path, "/grant", "*S-1-1-0:R")
|
|
115
|
+
return real(self, candidate, sid, limit)
|
|
116
|
+
monkeypatch.setattr(WindowsApi, "read_private_file", swap_then_read)
|
|
117
|
+
with pytest.raises(VaultError, match="protected by its owner"):
|
|
118
|
+
enrollment.local_identity(root)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def test_foreign_mutation_on_config_parent_is_refused(local):
|
|
122
|
+
root, *_ = local
|
|
123
|
+
icacls(root, "/grant", "*S-1-1-0:M")
|
|
124
|
+
with pytest.raises(VaultError, match="protected by its owner"):
|
|
125
|
+
enrollment.local_identity(root)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
def test_privileged_acl_is_still_refused_for_the_device_private_key(local):
|
|
129
|
+
from pocketshell.windows_security import PrivateFileError
|
|
130
|
+
root, *_ = local
|
|
131
|
+
icacls(root / "device_ed25519.pem", "/grant", "*S-1-5-32-544:F")
|
|
132
|
+
with pytest.raises(PrivateFileError):
|
|
133
|
+
enrollment.local_identity(root)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
@pytest.mark.parametrize("changed", ["device_id", "ssh_host_key", "device_key"])
|
|
137
|
+
def test_valid_but_changed_local_identity_is_refused_before_publication(local, changed):
|
|
138
|
+
from pocketshell import windows_security as ws
|
|
139
|
+
root, path, api, data, device = local
|
|
140
|
+
original = enrollment.local_identity(root)
|
|
141
|
+
replacement = Ed25519PrivateKey.from_private_bytes(bytes(reversed(range(32))))
|
|
142
|
+
if changed == "device_key":
|
|
143
|
+
ws.write_private(root / "device_ed25519.pem", replacement.private_bytes(
|
|
144
|
+
serialization.Encoding.PEM, serialization.PrivateFormat.PKCS8, serialization.NoEncryption()))
|
|
145
|
+
else:
|
|
146
|
+
data[changed] = "fixture-other" if changed == "device_id" else public(replacement)
|
|
147
|
+
path.unlink()
|
|
148
|
+
api.write_owned_file(str(path), json.dumps(data).encode(), api.current_sid())
|
|
149
|
+
with pytest.raises(VaultError, match="identity changed"):
|
|
150
|
+
enrollment.same_local_identity(root, original)
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""Copied test-only runner: actual isolated embedded Python, no source imports."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import ctypes as c
|
|
5
|
+
from ctypes import wintypes as w
|
|
6
|
+
import json
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
PREFIX = "POCKETSHELL_PACKAGED_CONFIG_PROOF="
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def elevated():
|
|
14
|
+
kernel = c.WinDLL("kernel32", use_last_error=True)
|
|
15
|
+
adv = c.WinDLL("advapi32", use_last_error=True)
|
|
16
|
+
kernel.GetCurrentProcess.restype = w.HANDLE
|
|
17
|
+
adv.OpenProcessToken.argtypes = [w.HANDLE, w.DWORD, c.POINTER(w.HANDLE)]
|
|
18
|
+
adv.GetTokenInformation.argtypes = [w.HANDLE, c.c_int, c.c_void_p, w.DWORD, c.POINTER(w.DWORD)]
|
|
19
|
+
kernel.CloseHandle.argtypes = [w.HANDLE]
|
|
20
|
+
token = w.HANDLE()
|
|
21
|
+
assert adv.OpenProcessToken(kernel.GetCurrentProcess(), 8, c.byref(token))
|
|
22
|
+
try:
|
|
23
|
+
value, size = w.DWORD(), w.DWORD()
|
|
24
|
+
assert adv.GetTokenInformation(token, 20, c.byref(value), 4, c.byref(size))
|
|
25
|
+
return bool(value.value)
|
|
26
|
+
finally:
|
|
27
|
+
kernel.CloseHandle(token)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def main(root, work, version):
|
|
31
|
+
root, work = Path(root).resolve(), Path(work).resolve()
|
|
32
|
+
assert sys.flags.isolated and sys.flags.no_site and sys.flags.ignore_environment
|
|
33
|
+
assert "site" not in sys.modules and not elevated(), "must run as an ordinary user"
|
|
34
|
+
assert Path(sys.executable).resolve() == root / "python/python.exe"
|
|
35
|
+
expected = json.loads((work / "expected.json").read_text())
|
|
36
|
+
assert expected["version"] == 1 and len(set(expected["cases"])) == 12
|
|
37
|
+
import pocketshell
|
|
38
|
+
import pocketshell.gateway.vault_enrollment # noqa: F401
|
|
39
|
+
import pocketshell.gateway.service_windows # noqa: F401
|
|
40
|
+
import pocketshell.windows_security # noqa: F401
|
|
41
|
+
|
|
42
|
+
assert pocketshell.__version__ == version
|
|
43
|
+
archive = str(root / "python/app.zip").replace("\\", "/").casefold() + "/"
|
|
44
|
+
|
|
45
|
+
def provenance():
|
|
46
|
+
files = {name: str(module.__file__) for name, module in sys.modules.copy().items()
|
|
47
|
+
if name == "pocketshell" or name.startswith("pocketshell.")}
|
|
48
|
+
assert files and all(path.replace("\\", "/").casefold().startswith(archive)
|
|
49
|
+
for path in files.values()), files
|
|
50
|
+
return files
|
|
51
|
+
|
|
52
|
+
provenance() # before adding isolated test tooling, then before every case
|
|
53
|
+
sys.path.append(str(work / "pytest-support.zip"))
|
|
54
|
+
import os
|
|
55
|
+
os.environ["PYTEST_DISABLE_PLUGIN_AUTOLOAD"] = "1"
|
|
56
|
+
import pytest
|
|
57
|
+
|
|
58
|
+
class Inventory:
|
|
59
|
+
def __init__(self):
|
|
60
|
+
self.collected, self.passed, self.rejected = [], [], []
|
|
61
|
+
|
|
62
|
+
def pytest_collection_finish(self, session):
|
|
63
|
+
self.collected = [item.nodeid.rsplit("::", 1)[-1] for item in session.items]
|
|
64
|
+
assert sorted(self.collected) == sorted(expected["cases"])
|
|
65
|
+
|
|
66
|
+
def pytest_runtest_setup(self, item):
|
|
67
|
+
provenance()
|
|
68
|
+
|
|
69
|
+
def pytest_runtest_logreport(self, report):
|
|
70
|
+
if report.failed or report.skipped:
|
|
71
|
+
self.rejected.append({"case": report.nodeid, "when": report.when, "outcome": report.outcome})
|
|
72
|
+
if report.when == "call" and report.passed:
|
|
73
|
+
self.passed.append(report.nodeid.rsplit("::", 1)[-1])
|
|
74
|
+
|
|
75
|
+
inventory = Inventory()
|
|
76
|
+
status = pytest.main([str(work / expected["suite"]), "-v", "-rs", "--noconftest",
|
|
77
|
+
"--rootdir", str(work), "--basetemp", str(work / "tmp"),
|
|
78
|
+
"--import-mode=importlib", "-p", "no:cacheprovider"], plugins=[inventory])
|
|
79
|
+
assert status == 0 and not inventory.rejected, inventory.rejected
|
|
80
|
+
assert sorted(inventory.passed) == sorted(expected["cases"])
|
|
81
|
+
print(PREFIX + json.dumps({"version": version, "elevated": elevated(),
|
|
82
|
+
"executable": sys.executable, "cases": inventory.passed,
|
|
83
|
+
"passed": len(inventory.passed), "skipped": 0,
|
|
84
|
+
"moduleFiles": provenance()}), flush=True)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
if __name__ == "__main__":
|
|
88
|
+
main(*sys.argv[1:])
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""All twelve config cases against catalogued packaged code as an ordinary user."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import importlib.metadata
|
|
5
|
+
import json
|
|
6
|
+
import os
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
import shutil
|
|
9
|
+
import subprocess
|
|
10
|
+
import sys
|
|
11
|
+
import zipfile
|
|
12
|
+
|
|
13
|
+
import pytest
|
|
14
|
+
|
|
15
|
+
pytestmark = pytest.mark.skipif(sys.platform != "win32", reason="native packaged Windows runtime")
|
|
16
|
+
REPO = Path(__file__).resolve().parents[2]
|
|
17
|
+
MANIFEST = REPO / "tests/account/fixtures/windows-gateway-config-native-v1.json"
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def run_packaged(root, work, version):
|
|
21
|
+
"""Stage only tests/tooling outside the immutable release; no project code."""
|
|
22
|
+
from packaged_gateway_config_runner import PREFIX, elevated
|
|
23
|
+
from pocketshell import windows_security as ws
|
|
24
|
+
assert not work.exists()
|
|
25
|
+
# The CI parent is elevated; name the actual user as owner explicitly so
|
|
26
|
+
# the filtered child can read its test-only workspace without admin rights.
|
|
27
|
+
ws.write_private(work / "workspace.json", b'{"testOnly":true}')
|
|
28
|
+
expected = json.loads(MANIFEST.read_text())
|
|
29
|
+
shutil.copyfile(MANIFEST, work / "expected.json")
|
|
30
|
+
shutil.copyfile(REPO / "tests/account" / expected["suite"], work / expected["suite"])
|
|
31
|
+
shutil.copyfile(Path(__file__).with_name("packaged_gateway_config_runner.py"), work / "runner.py")
|
|
32
|
+
with zipfile.ZipFile(work / "pytest-support.zip", "w", zipfile.ZIP_DEFLATED) as archive:
|
|
33
|
+
for name in ("pytest", "pluggy", "iniconfig", "packaging", "pygments", "colorama"):
|
|
34
|
+
distribution = importlib.metadata.distribution(name)
|
|
35
|
+
for entry in distribution.files:
|
|
36
|
+
path = Path(str(entry))
|
|
37
|
+
if ".." in path.parts or "__pycache__" in path.parts or path.suffix == ".pyc":
|
|
38
|
+
continue
|
|
39
|
+
assert path.parts[0] not in {"pocketshell", "src"}
|
|
40
|
+
source = distribution.locate_file(entry)
|
|
41
|
+
if source.is_file():
|
|
42
|
+
archive.write(source, path.as_posix())
|
|
43
|
+
env = {key: os.environ[key] for key in ("SystemRoot", "SystemDrive", "ProgramData")}
|
|
44
|
+
env.update(USERPROFILE=str(work), LOCALAPPDATA=str(work), TEMP=str(work), TMP=str(work))
|
|
45
|
+
# No repo, editable/site packages, PYTHONPATH or inherited test plugins.
|
|
46
|
+
argv = [str(root / "python/python.exe"), "-I", "-S", "-B", str(work / "runner.py"),
|
|
47
|
+
str(root), str(work), version]
|
|
48
|
+
if elevated():
|
|
49
|
+
from unelevated import run_unelevated
|
|
50
|
+
code, output = run_unelevated(argv, env=env, cwd=str(work), timeout=180)
|
|
51
|
+
else:
|
|
52
|
+
result = subprocess.run(argv, env=env, cwd=work, capture_output=True, timeout=180,
|
|
53
|
+
creationflags=0x08000000)
|
|
54
|
+
code, output = result.returncode, result.stdout + result.stderr
|
|
55
|
+
text = output.decode("utf8", errors="replace")
|
|
56
|
+
print(text)
|
|
57
|
+
assert code == 0, text
|
|
58
|
+
receipts = [line.removeprefix(PREFIX) for line in text.splitlines() if line.startswith(PREFIX)]
|
|
59
|
+
assert len(receipts) == 1
|
|
60
|
+
proof = json.loads(receipts[0])
|
|
61
|
+
assert proof["passed"] == 12 and proof["skipped"] == 0 and proof["elevated"] is False
|
|
62
|
+
assert sorted(proof["cases"]) == sorted(expected["cases"])
|
|
63
|
+
assert proof["version"] == version
|
|
64
|
+
assert Path(proof["executable"]).resolve() == root / "python/python.exe"
|
|
65
|
+
prefix = str(root / "python/app.zip").replace("\\", "/").casefold() + "/"
|
|
66
|
+
assert proof["moduleFiles"] and all(path.replace("\\", "/").casefold().startswith(prefix)
|
|
67
|
+
for path in proof["moduleFiles"].values())
|
|
68
|
+
return proof
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def test_all_config_cases_use_actual_packaged_modules_without_source_fallback(tmp_path):
|
|
72
|
+
output = os.environ.get("POCKETSHELL_TEST_RELEASE_OUT")
|
|
73
|
+
assert output, "mandatory packaged lane must build its own release"
|
|
74
|
+
base = Path(output)
|
|
75
|
+
catalog = json.loads((base / "host-runtime-catalog.json").read_text())
|
|
76
|
+
root = base / "root-a/releases/staged"
|
|
77
|
+
assert root.is_dir()
|
|
78
|
+
# Check the exact packaged code against the CI producer's catalog first.
|
|
79
|
+
import hashlib
|
|
80
|
+
rows = {row["path"]: row["sha256"] for row in catalog["files"]}
|
|
81
|
+
assert hashlib.sha256((root / "python/app.zip").read_bytes()).hexdigest() == rows["python/app.zip"]
|
|
82
|
+
run_packaged(root, tmp_path / "config-proof", catalog["lineage"]["cliVersion"])
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Dropping either the direct or actual-packaged security lane is a CI failure."""
|
|
2
|
+
import json
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import yaml
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def test_direct_and_packaged_gateway_config_security_are_both_selected():
|
|
9
|
+
repo = Path(__file__).resolve().parents[1]
|
|
10
|
+
workflow = yaml.safe_load((repo / ".github/workflows/ci.yml").read_text())
|
|
11
|
+
steps = workflow["jobs"]["windows-gateway"]["steps"]
|
|
12
|
+
direct = next(step["run"] for step in steps if step.get("name") == "Windows unit tests")
|
|
13
|
+
native = next(step["run"] for step in steps if step.get("name") == "Ordinary-user agent, installer and pocketshell-verify.exe (native)")
|
|
14
|
+
assert "tests/account/test_windows_gateway_config_native.py" in direct.split()
|
|
15
|
+
assert "tests/gateway/test_windows_packaged_gateway_config_native.py" in native.split()
|
|
16
|
+
manifest = json.loads((repo / "tests/account/fixtures/windows-gateway-config-native-v1.json").read_text())
|
|
17
|
+
assert manifest["suite"] == "test_windows_gateway_config_native.py"
|
|
18
|
+
assert len(manifest["cases"]) == len(set(manifest["cases"])) == 12
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/aplexer-fc396/windows-native-fc396.zip
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/NULL-PATH-FIX.md
RENAMED
|
File without changes
|
|
File without changes
|
{pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/policy-manifest.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-auth.c
RENAMED
|
File without changes
|
{pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/openssh-quiet-e302fe1/wmain_sshd-session.c
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pocketshell-0.5.13 → pocketshell-0.5.14}/release/inputs/pocketshell-link-70f5a4b/SHA256SUMS
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|