mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 01:47:47 +08:00
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.
28 lines
1.5 KiB
Rust
28 lines
1.5 KiB
Rust
mod replacement;
|
|
mod types;
|
|
mod usage_policy;
|
|
|
|
pub use replacement::{
|
|
entitlements_have_replacement_selector, entitlements_should_replace_existing,
|
|
validate_entitlement_replacement_groups, EntitlementReplacementGroupValidationError,
|
|
ENTITLEMENT_REPLACEMENT_GROUP_FIELD, MAX_ENTITLEMENT_REPLACEMENT_GROUP_LENGTH,
|
|
};
|
|
pub use types::{
|
|
checked_plan_duration_days, checked_plan_duration_days_from_snapshot,
|
|
AdminBillingCollectorRecord, AdminBillingCollectorWriteInput, AdminBillingMutationOutcome,
|
|
AdminBillingPresetApplyResult, AdminBillingRuleRecord, AdminBillingRuleWriteInput,
|
|
BillingPlanRecord, BillingPlanWriteInput, BillingReadRepository,
|
|
PaymentGatewayConfigCasWriteInput, PaymentGatewayConfigRecord, PaymentGatewayConfigWriteInput,
|
|
PaymentGatewaySecretCasUpdate, StoredBillingModelContext, UserDailyQuotaAvailabilityRecord,
|
|
UserPlanEntitlementRecord,
|
|
};
|
|
pub use usage_policy::{
|
|
nonnegative_usd_to_usage_policy_cost_units, parse_usage_policy_entitlements,
|
|
usd_to_usage_policy_cost_units, UsagePolicyEnforcement, UsagePolicyEntitlement,
|
|
UsagePolicyEntitlementType, UsagePolicyMetric, UsagePolicyParseError, UsagePolicyRule,
|
|
UsagePolicyValidationError, UsagePolicyWindow, MAX_USAGE_POLICY_ENTITLEMENTS,
|
|
MAX_USAGE_POLICY_EXACT_INTEGER, MAX_USAGE_POLICY_ROLLING_WINDOW_SECONDS,
|
|
MAX_USAGE_POLICY_RULES, MAX_USAGE_POLICY_TEXT_LENGTH, MAX_USAGE_POLICY_TOTAL_RULES,
|
|
USAGE_POLICY_COST_UNITS_PER_USD, USAGE_POLICY_ENTITLEMENT_TYPE,
|
|
};
|