Files
Aether/apps/aether-gateway/src/state/mod.rs
T
elky 579f2c7cc1 feat(security): harden gateway boundaries and usage policies
Consolidate subscription usage policy enforcement, privacy-safe persistence, and gateway security hardening into one reviewable change.

Includes bounded HTTP and execution envelopes, header and protocol guards, DNS and relay validation, authentication and secret projection hardening, secure backup/install paths, and regression coverage.
2026-09-04 03:45:52 +08:00

60 lines
2.3 KiB
Rust

use super::data::GatewayDataState;
use super::error::GatewayError;
mod admin_types;
mod app;
mod bootstrap_admin;
mod cache;
mod catalog;
mod catalog_credentials;
mod catalog_proxy;
mod core;
mod cors;
mod integrations;
mod oauth;
mod proxy;
mod routing_profiles;
mod runtime;
#[cfg(test)]
mod testing;
mod types;
mod video;
pub(crate) use self::admin_types::{
AdminBillingCollectorRecord, AdminBillingCollectorWriteInput, AdminBillingMutationOutcome,
AdminBillingPresetApplyResult, AdminBillingRuleRecord, AdminBillingRuleWriteInput,
AdminPaymentCallbackRecord, AdminSecurityBlacklistEntry, AdminWalletPaymentOrderRecord,
AdminWalletRefundRecord, AdminWalletTransactionRecord, BillingPlanRecord,
BillingPlanWriteInput, PaymentGatewayConfigCasWriteInput, PaymentGatewayConfigRecord,
PaymentGatewayConfigWriteInput, PaymentGatewaySecretCasUpdate,
UserDailyQuotaAvailabilityRecord, UserPlanEntitlementRecord,
};
pub use self::app::AppState;
pub(crate) use self::app::{
upstream_target_gate_auto_limit, upstream_target_gate_limit_from_env,
FrontdoorRuntimeGuardConfig, REQUEST_BODY_BUFFER_PERMIT_BYTES,
};
pub(crate) use self::cache::{
CachedProviderTransportSnapshot, ProviderTransportSnapshotFlight,
ProviderTransportSnapshotFlightResult, AUTH_API_KEY_LAST_USED_MAX_ENTRIES,
AUTH_API_KEY_LAST_USED_TTL, PROVIDER_TRANSPORT_SNAPSHOT_CACHE_MAX_ENTRIES,
PROVIDER_TRANSPORT_SNAPSHOT_CACHE_STALE_TTL, PROVIDER_TRANSPORT_SNAPSHOT_CACHE_TTL,
};
pub use self::cors::FrontdoorCorsConfig;
pub(crate) use self::oauth::{
provider_transport_context_allows_credential_rotation, AgentIdentityAuthConfigFence,
CodexRuntimeOAuthObservation, ProviderTransportCredentialFence,
};
pub(crate) use self::proxy::{
decrypt_or_migrate_proxy_tunnel_psk, decrypt_or_migrate_proxy_tunnel_psk_binding,
unavailable_proxy_snapshot,
};
pub(crate) use self::types::{
AdminWalletMutationOutcome, GatewayAdminPaymentCallbackView, GatewayUserPreferenceView,
GatewayUserSessionView, LocalExecutionRuntimeMissDiagnostic, LocalMutationOutcome,
LocalProviderDeleteTaskState,
};
pub(crate) use self::video::VideoTaskRouteAccess;
use super::provider_transport::provider_transport_snapshot_looks_refreshed;
pub(crate) use super::provider_transport::ProviderTransportSnapshotCacheKey;