aKode fase 5: test e snapshot adeguati alla rinomina, 429 distinto (ProviderRateLimited), cargo fmt dopo il cambio dei prefissi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,8 +7,6 @@ use std::path::Path;
|
||||
use std::path::PathBuf;
|
||||
use std::ptr;
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
pub(crate) use akode_windows_sandbox::CORE_INSTALLATION_KEY;
|
||||
pub(crate) use akode_windows_sandbox::DesktopInstallation;
|
||||
pub(crate) use akode_windows_sandbox::INSTALLATION_KEY;
|
||||
@@ -20,6 +18,8 @@ pub(crate) use akode_windows_sandbox::load_installation as load;
|
||||
pub(crate) use akode_windows_sandbox::remove_installation as remove;
|
||||
pub(crate) use akode_windows_sandbox::save_installation as save_runtime;
|
||||
use akode_windows_sandbox::validate_local_directory_path;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use windows_sys::Win32::Foundation as foundation;
|
||||
use windows_sys::Win32::UI::Shell::GetUserProfileDirectoryW;
|
||||
|
||||
|
||||
@@ -8,17 +8,17 @@ mod home;
|
||||
mod listener;
|
||||
mod request;
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
pub(crate) use authentication::ClientIdentity;
|
||||
use authentication::authenticate_client;
|
||||
use akode_windows_sandbox::FramedProvisioningMessage;
|
||||
use akode_windows_sandbox::PROVISIONING_PROTOCOL_VERSION;
|
||||
use akode_windows_sandbox::ProvisioningMessage;
|
||||
use akode_windows_sandbox::SandboxProvisioningResponse;
|
||||
use akode_windows_sandbox::to_wide;
|
||||
use akode_windows_sandbox::write_provisioning_frame;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
pub(crate) use authentication::ClientIdentity;
|
||||
use authentication::authenticate_client;
|
||||
pub(crate) use home::pin_directory;
|
||||
pub(crate) use home::pin_existing_ancestors;
|
||||
pub(crate) use request::ProvisioningRequest;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
//! Authenticates provisioning clients and validates impersonated machine policy.
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use akode_windows_sandbox::DirectoryOpenDisposition;
|
||||
use akode_windows_sandbox::SetupRuntime;
|
||||
use akode_windows_sandbox::create_directory_guard;
|
||||
use akode_windows_sandbox::string_from_sid_bytes;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use std::ffi::OsString;
|
||||
use std::ffi::c_void;
|
||||
use std::mem::size_of;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
//! Validates and pins local Codex home and sandbox directories, keeping sandbox
|
||||
//! leaves nonempty so they cannot become junctions during provisioning.
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use akode_windows_sandbox::DirectoryOpenDisposition;
|
||||
use akode_windows_sandbox::SetupRuntime;
|
||||
use akode_windows_sandbox::create_directory_guard;
|
||||
use akode_windows_sandbox::open_directory_no_reparse;
|
||||
use akode_windows_sandbox::to_wide;
|
||||
use akode_windows_sandbox::validate_local_directory_path;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use std::os::windows::fs::MetadataExt;
|
||||
use std::os::windows::io::AsHandle;
|
||||
use std::os::windows::io::OwnedHandle;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
//! Owns a provisioning pipe and the sandbox group generation in its deny rule.
|
||||
//! Replaces stale listeners only after a response, closing the old pipe before creating another.
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use akode_windows_sandbox::ensure_sandbox_users_group;
|
||||
use akode_windows_sandbox::string_from_sid_bytes;
|
||||
use akode_windows_sandbox::to_wide;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use std::mem::size_of;
|
||||
use std::os::windows::io::AsRawHandle;
|
||||
use std::os::windows::io::FromRawHandle;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
//! Validates framed provisioning requests and normalizes proxy settings.
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use akode_windows_sandbox::PROVISIONING_PROTOCOL_VERSION;
|
||||
use akode_windows_sandbox::ProvisioningMessage;
|
||||
use akode_windows_sandbox::WindowsSandboxProvisioningSettings;
|
||||
use akode_windows_sandbox::WindowsSandboxProxyListeners;
|
||||
use akode_windows_sandbox::read_provisioning_frame;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use super::MAX_REQUEST_BYTES;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
//! Validates sandbox provisioning against managed policy; registration-only refresh
|
||||
//! retains the existing sandbox and is admitted by the registered-runtime transaction.
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use akode_config::ConfigLoadOptions;
|
||||
use akode_config::ConfigRequirements;
|
||||
use akode_config::types::WindowsSandboxModeToml;
|
||||
use akode_core::config::load_config_toml_with_layer_stack;
|
||||
use akode_windows_sandbox::WindowsSandboxProvisioningSettings;
|
||||
use akode_windows_sandbox::WindowsSandboxProxyListeners;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::Notify;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use anyhow::Result;
|
||||
use akode_config::ConfigRequirements;
|
||||
use akode_config::ConfigRequirementsWithSources;
|
||||
use akode_config::RequirementSource;
|
||||
use akode_windows_sandbox::WindowsSandboxProvisioningSettings;
|
||||
use akode_windows_sandbox::WindowsSandboxProxyListeners;
|
||||
use anyhow::Result;
|
||||
use pretty_assertions::assert_eq;
|
||||
|
||||
use crate::ipc::ProvisioningRequest;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use anyhow::Result;
|
||||
use akode_windows_sandbox_service::RunMode;
|
||||
use anyhow::Result;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
akode_windows_sandbox_service::run(parse_mode(std::env::args().skip(1))?)
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
use std::os::windows::io::AsRawHandle;
|
||||
|
||||
use akode_windows_sandbox::SetupRuntime;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use akode_windows_sandbox::SetupRuntime;
|
||||
use windows_sys::Win32::System::Threading;
|
||||
|
||||
use super::AuthorizedClientProcess;
|
||||
|
||||
@@ -11,14 +11,14 @@ use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use akode_windows_sandbox::DirectoryOpenDisposition;
|
||||
use akode_windows_sandbox::PreparedWindowsSandboxCleanup;
|
||||
use akode_windows_sandbox::create_directory_guard;
|
||||
use akode_windows_sandbox::prepare_packaged_windows_sandbox_cleanup;
|
||||
use akode_windows_sandbox::string_from_sid_bytes;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use windows::ApplicationModel::Package;
|
||||
use windows::ApplicationModel::PackageCatalog;
|
||||
use windows::ApplicationModel::PackageUninstallingEventArgs;
|
||||
|
||||
@@ -6,12 +6,12 @@ use std::os::windows::io::AsRawHandle;
|
||||
use std::path::Path;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use akode_windows_sandbox::PreparedWindowsSandboxCleanup;
|
||||
use akode_windows_sandbox::resolve_sid;
|
||||
use akode_windows_sandbox::revoke_ace;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
|
||||
use super::UserInstallation;
|
||||
use super::with_owner_impersonation;
|
||||
|
||||
@@ -5,10 +5,10 @@ use std::os::windows::io::AsRawHandle;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
||||
use akode_windows_sandbox::prepare_packaged_windows_sandbox_cleanup_with_retained_tokens;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use akode_windows_sandbox::prepare_packaged_windows_sandbox_cleanup_with_retained_tokens;
|
||||
use windows::ApplicationModel::Package;
|
||||
use windows::ApplicationModel::PackageUninstallingEventArgs;
|
||||
use windows::Management::Deployment::PackageManager;
|
||||
|
||||
@@ -9,12 +9,12 @@ use std::os::windows::io::AsRawHandle;
|
||||
use std::os::windows::io::OwnedHandle;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use akode_windows_sandbox::SandboxProvisioningResponse;
|
||||
use akode_windows_sandbox::SetupRuntime;
|
||||
use akode_windows_sandbox::run_elevated_provisioning_setup_with_retained_handles;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use windows_sys::Win32::Storage::FileSystem as filesystem;
|
||||
|
||||
use crate::installation_record::InstallationRecord;
|
||||
|
||||
@@ -4,10 +4,10 @@ use std::os::windows::io::AsRawHandle;
|
||||
use std::os::windows::io::BorrowedHandle;
|
||||
use std::path::Path;
|
||||
|
||||
use akode_windows_sandbox::DirectoryOpenDisposition;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use akode_windows_sandbox::DirectoryOpenDisposition;
|
||||
use windows::Win32::Foundation::BOOL;
|
||||
use windows_sys::Win32::Foundation::ERROR_ACCESS_DENIED;
|
||||
use windows_sys::Win32::Security as security;
|
||||
|
||||
@@ -4,14 +4,14 @@ use std::os::windows::io::AsRawHandle;
|
||||
use std::os::windows::io::OwnedHandle;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use akode_windows_sandbox::SandboxAccountCredentialMismatch;
|
||||
use akode_windows_sandbox::SandboxProvisioningResponse;
|
||||
use akode_windows_sandbox::SandboxRuntimeAccount;
|
||||
use akode_windows_sandbox::logon_existing_sandbox_account;
|
||||
use akode_windows_sandbox::sandbox_secrets_dir;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
|
||||
use crate::ipc::ProvisioningRequest;
|
||||
use akode_windows_sandbox::string_from_sid_bytes;
|
||||
|
||||
@@ -5,8 +5,6 @@ use std::os::windows::io::OwnedHandle;
|
||||
|
||||
use super::credentials_need_repair;
|
||||
use crate::registered_runtime::registered_packages;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use akode_windows_sandbox::InstallationRecord;
|
||||
use akode_windows_sandbox::RuntimeAccountRegistration;
|
||||
use akode_windows_sandbox::RuntimeRegistration;
|
||||
@@ -17,6 +15,8 @@ use akode_windows_sandbox::SandboxRuntimeAccount::Online;
|
||||
use akode_windows_sandbox::resolve_sid;
|
||||
use akode_windows_sandbox::string_from_sid_bytes;
|
||||
use akode_windows_sandbox::to_wide;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use pretty_assertions::assert_eq;
|
||||
use windows_sys::Win32::Security::LOGON32_LOGON_INTERACTIVE;
|
||||
use windows_sys::Win32::Security::LOGON32_PROVIDER_DEFAULT;
|
||||
|
||||
@@ -8,9 +8,6 @@ use std::sync::atomic::AtomicBool;
|
||||
use std::sync::atomic::Ordering;
|
||||
use std::time::Duration;
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use akode_windows_sandbox::APP_CORE_RUNNER_ALIAS;
|
||||
use akode_windows_sandbox::SandboxRuntimeAccount;
|
||||
use akode_windows_sandbox::logon_existing_sandbox_account;
|
||||
@@ -19,6 +16,9 @@ use akode_windows_sandbox::sandbox_secrets_dir;
|
||||
use akode_windows_sandbox::string_from_sid_bytes;
|
||||
use akode_windows_sandbox::to_wide;
|
||||
use akode_windows_sandbox::token_groups;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use windows::Foundation::AsyncStatus;
|
||||
use windows::Management::Deployment::DeploymentOptions;
|
||||
use windows::Management::Deployment::PackageManager;
|
||||
|
||||
@@ -8,12 +8,12 @@ use std::os::windows::io::OwnedHandle;
|
||||
use std::path::Path;
|
||||
use std::ptr;
|
||||
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use akode_windows_sandbox::DirectoryOpenDisposition;
|
||||
use akode_windows_sandbox::LocalSid;
|
||||
use akode_windows_sandbox::open_directory_no_reparse;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use windows::Win32::Foundation::BOOL;
|
||||
use windows_sys::Win32::Foundation::HANDLE;
|
||||
use windows_sys::Win32::Foundation::LocalFree;
|
||||
|
||||
@@ -9,9 +9,9 @@ use std::sync::atomic::AtomicBool;
|
||||
use std::sync::atomic::AtomicU32;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
||||
use akode_windows_sandbox::ServiceStopReason;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use akode_windows_sandbox::ServiceStopReason;
|
||||
use windows_sys::Win32::Foundation::ERROR_CALL_NOT_IMPLEMENTED;
|
||||
use windows_sys::Win32::Foundation::ERROR_SERVICE_SPECIFIC_ERROR;
|
||||
use windows_sys::Win32::Foundation::NO_ERROR;
|
||||
|
||||
@@ -5,9 +5,9 @@ use std::cell::Cell;
|
||||
use std::sync::Arc;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
||||
use akode_windows_sandbox::ServiceStopReason;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use akode_windows_sandbox::ServiceStopReason;
|
||||
use windows_sys::Win32::Foundation::NO_ERROR;
|
||||
use windows_sys::Win32::System::Services::SERVICE_RUNNING;
|
||||
use windows_sys::Win32::System::Services::SERVICE_STOP_PENDING;
|
||||
|
||||
Reference in New Issue
Block a user