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:
@@ -4,6 +4,7 @@
|
||||
use crate::credential_broker::env_value;
|
||||
use crate::credential_broker::remove_env_value;
|
||||
use crate::credential_broker::set_env_value;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use anyhow::ensure;
|
||||
@@ -16,7 +17,6 @@ use aws_sigv4::http_request::SigningSettings;
|
||||
use aws_sigv4::http_request::UriPathNormalizationMode;
|
||||
use aws_sigv4::http_request::sign;
|
||||
use aws_sigv4::sign::v4;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use rama_core::bytes::Bytes;
|
||||
use rama_core::extensions::ExtensionsMut;
|
||||
use rama_core::extensions::ExtensionsRef;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use crate::config::NetworkMitmCaConfig;
|
||||
use akode_utils_home_dir::find_codex_home;
|
||||
use anyhow::Context as _;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use base64::Engine as _;
|
||||
use akode_utils_home_dir::find_codex_home;
|
||||
use rama_net::tls::ApplicationProtocol;
|
||||
use rama_tls_rustls::dep::pki_types::CertificateDer;
|
||||
use rama_tls_rustls::dep::pki_types::PrivateKeyDer;
|
||||
|
||||
@@ -2,10 +2,10 @@ mod standalone;
|
||||
|
||||
pub use standalone::StaticNetworkProxyConfig;
|
||||
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::bail;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use serde::Deserialize;
|
||||
use serde::Deserializer;
|
||||
use serde::Serialize;
|
||||
|
||||
@@ -35,9 +35,9 @@ use crate::state::BlockedRequestArgs;
|
||||
use crate::state::NetworkProxyState;
|
||||
use crate::upstream::UpstreamClient;
|
||||
use crate::upstream::proxy_for_connect;
|
||||
use akode_utils_rustls_provider::ensure_rustls_crypto_provider;
|
||||
use anyhow::Context as _;
|
||||
use anyhow::Result;
|
||||
use akode_utils_rustls_provider::ensure_rustls_crypto_provider;
|
||||
use rama_core::Layer;
|
||||
use rama_core::Service;
|
||||
use rama_core::error::ErrorExt as _;
|
||||
|
||||
@@ -38,13 +38,13 @@ mod windows_proxy_ingress;
|
||||
#[cfg(target_os = "windows")]
|
||||
mod windows_tcp_attribution;
|
||||
|
||||
pub use akode_utils_path_uri::Platform;
|
||||
pub use attribution::PROXY_ATTRIBUTION_TOKEN_ENV_KEY;
|
||||
pub use attribution::write_attribution_frame;
|
||||
pub use aws_sigv4::AwsSigV4Config;
|
||||
pub use aws_sigv4::ProxySecretSource;
|
||||
pub use certs::CUSTOM_CA_ENV_KEYS;
|
||||
pub use certs::is_managed_mitm_ca_trust_bundle_path;
|
||||
pub use akode_utils_path_uri::Platform;
|
||||
pub use config::NetworkDomainPermission;
|
||||
pub use config::NetworkDomainPermissionEntry;
|
||||
pub use config::NetworkDomainPermissions;
|
||||
@@ -90,11 +90,11 @@ pub use policy::is_non_public_ip;
|
||||
pub use policy::normalize_host;
|
||||
pub use process_log_metadata::ExecutorLogIdentity;
|
||||
pub use process_log_metadata::NetworkProxyProcessLogMetadata;
|
||||
#[cfg(target_os = "macos")]
|
||||
pub use proxy::AKODE_PROXY_GIT_SSH_COMMAND_MARKER;
|
||||
pub use proxy::ALL_PROXY_ENV_KEYS;
|
||||
pub use proxy::ALLOW_LOCAL_BINDING_ENV_KEY;
|
||||
pub use proxy::Args;
|
||||
#[cfg(target_os = "macos")]
|
||||
pub use proxy::AKODE_PROXY_GIT_SSH_COMMAND_MARKER;
|
||||
pub use proxy::DEFAULT_NO_PROXY_VALUE;
|
||||
pub use proxy::ManagedNetworkSandboxContext;
|
||||
pub use proxy::ManagedProxyRouting;
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
#![deny(clippy::print_stdout, clippy::print_stderr)]
|
||||
|
||||
use anyhow::Context as _;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use clap::Parser;
|
||||
use akode_network_proxy::ConfigReloader;
|
||||
use akode_network_proxy::ConfigReloaderFuture;
|
||||
use akode_network_proxy::ConfigState;
|
||||
@@ -11,6 +7,10 @@ use akode_network_proxy::NetworkProxy;
|
||||
use akode_network_proxy::NetworkProxyState;
|
||||
use akode_network_proxy::Platform;
|
||||
use akode_network_proxy::StaticNetworkProxyConfig;
|
||||
use anyhow::Context as _;
|
||||
use anyhow::Result;
|
||||
use anyhow::ensure;
|
||||
use clap::Parser;
|
||||
use std::io::Read;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use clap::Parser;
|
||||
use akode_network_proxy::NetworkMitmCaConfig;
|
||||
use akode_network_proxy::StaticNetworkProxyConfig;
|
||||
use clap::Parser;
|
||||
use pretty_assertions::assert_eq;
|
||||
use serde_json::json;
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ use crate::state::BlockedRequest;
|
||||
use crate::state::BlockedRequestArgs;
|
||||
use crate::state::NetworkProxyState;
|
||||
use crate::upstream::UpstreamClient;
|
||||
use akode_utils_rustls_provider::ensure_rustls_crypto_provider;
|
||||
use anyhow::Context as _;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use akode_utils_rustls_provider::ensure_rustls_crypto_provider;
|
||||
use rama_core::Layer;
|
||||
use rama_core::Service;
|
||||
use rama_core::bytes::Bytes;
|
||||
|
||||
@@ -7,10 +7,10 @@ use crate::config::NetworkProxyConfig;
|
||||
use crate::policy::normalize_host;
|
||||
use crate::secret_substitution::BodySecretSubstitution;
|
||||
use crate::secret_substitution::BodySecretSubstitutionConfig;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use anyhow::Context as _;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use globset::GlobBuilder;
|
||||
use globset::GlobMatcher;
|
||||
use rama_http::HeaderValue;
|
||||
|
||||
@@ -6,9 +6,9 @@ use crate::reasons::REASON_METHOD_NOT_ALLOWED;
|
||||
use crate::reasons::REASON_MITM_HOOK_DENIED;
|
||||
use crate::reasons::REASON_NOT_ALLOWED_LOCAL;
|
||||
use crate::runtime::network_proxy_state_for_policy;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use base64::Engine as _;
|
||||
use base64::engine::general_purpose::STANDARD;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use pretty_assertions::assert_eq;
|
||||
use rama_http::Body;
|
||||
use rama_http::HeaderMap;
|
||||
|
||||
@@ -27,10 +27,10 @@ use crate::windows_proxy_ingress::WindowsProxyIngress;
|
||||
use crate::windows_proxy_ingress::WindowsProxyRoute;
|
||||
#[cfg(target_os = "windows")]
|
||||
use crate::windows_proxy_ingress::WindowsRouteService;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use clap::Parser;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use std::collections::HashMap;
|
||||
|
||||
@@ -25,9 +25,9 @@ use crate::state::NetworkProxyConstraintError;
|
||||
use crate::state::NetworkProxyConstraints;
|
||||
use crate::state::build_config_state;
|
||||
use crate::state::validate_policy_against_constraints;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use opentelemetry::trace::SpanContext;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
//! Placeholder bindings and resolved secret values are private to the trusted proxy.
|
||||
|
||||
use crate::aws_sigv4::ProxySecretSource;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use akode_utils_absolute_path::AbsolutePathBuf;
|
||||
use rama_core::extensions::ExtensionsMut;
|
||||
use rama_core::extensions::ExtensionsRef;
|
||||
use rama_http::Body;
|
||||
|
||||
Reference in New Issue
Block a user