mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-11-02 08:04:37 +08:00
* refactor(network): introduce shared egress pipeline Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * test(network): cover shared proxy egress paths Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * refactor(network): make destination authorization explicit Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * refactor(network): pin proxy relay policy context Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * test(network): lock relay generation contracts Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * test(network): establish phase zero compatibility baseline Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * feat(policy): detect ambiguous network endpoints Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * feat(sandbox): fail closed on invalid policy updates Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * refactor(network): invalidate relays on policy changes Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * docs(policy): document validation failure posture Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * test(network): cover validation and middleware egress Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(config): move policy failure mode to gateway toml Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * test(network): name proxy contracts by behavior Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(network): align overlap validation with endpoint selection Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * test(network): expect hard loopback denial Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * test(network): match declared endpoint denial Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(policy): preserve path-specific endpoint overrides Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * test(network): respect hard-blocked host gateways Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(network): reconcile proxy refactor with main Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(network): preserve CONNECT policy generation Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(policy): cover runtime endpoint glob semantics Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(server): reject ambiguous policies before persistence Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * docs(policy): explain ambiguity preflight behavior Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(policy): compare body limits within protocol Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * test(proxy): avoid global tracing capture race Signed-off-by: John Myers <johntmyers@users.noreply.github.com> * chore(server): format rebased provider tests Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * test(server): authenticate rebased policy requests Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(sandbox): retain runtime on middleware outage Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(server): preflight provider composition activation Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> * fix(sandbox): distinguish runtime failure transitions Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> --------- Signed-off-by: John Myers <9696606+johntmyers@users.noreply.github.com> Signed-off-by: John Myers <johntmyers@users.noreply.github.com> Co-authored-by: John Myers <johntmyers@users.noreply.github.com>
72 lines
2.3 KiB
Rust
72 lines
2.3 KiB
Rust
// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//! `OpenShell` Core - shared library for `OpenShell` components.
|
|
//!
|
|
//! This crate provides:
|
|
//! - Protocol buffer definitions and generated code
|
|
//! - Configuration management
|
|
//! - Common error types
|
|
//! - Build version metadata
|
|
|
|
pub mod activity;
|
|
pub mod auth;
|
|
pub mod config;
|
|
pub mod denial;
|
|
pub mod driver_mounts;
|
|
pub mod driver_utils;
|
|
pub mod error;
|
|
pub mod forward;
|
|
pub mod google_cloud;
|
|
pub mod gpu;
|
|
pub mod grpc_client;
|
|
pub mod host_pattern;
|
|
pub mod image;
|
|
pub mod inference;
|
|
pub mod jwt;
|
|
pub mod metadata;
|
|
pub mod middleware;
|
|
pub mod net;
|
|
pub mod paths;
|
|
pub mod policy;
|
|
pub mod progress;
|
|
pub mod proposals;
|
|
pub mod proto;
|
|
pub mod proto_struct;
|
|
pub mod provider_credentials;
|
|
pub mod sandbox_env;
|
|
pub mod secrets;
|
|
pub mod settings;
|
|
pub mod telemetry;
|
|
pub mod time;
|
|
pub mod transport_errors;
|
|
|
|
pub use config::{
|
|
ComputeDriverKind, Config, GatewayAuthConfig, GatewayInterceptorBindingOverride,
|
|
GatewayInterceptorBindingPolicy, GatewayInterceptorConfig, GatewayInterceptorFailurePolicy,
|
|
GatewayInterceptorPhaseConfig, GatewayJwtConfig, GatewayProviderProfileSourceConfig,
|
|
MtlsAuthConfig, OidcConfig, PolicyValidationFailureMode, TlsConfig,
|
|
};
|
|
pub use error::{ComputeDriverError, Error, Result};
|
|
pub use metadata::{
|
|
GetResourceVersion, ObjectId, ObjectLabels, ObjectName, ObjectWorkspace, SetResourceVersion,
|
|
};
|
|
|
|
/// Build version string derived from git metadata.
|
|
///
|
|
/// For local builds this is computed by `build.rs` via `git describe` using
|
|
/// the guess-next-dev scheme (e.g. `0.0.4-dev.6+g2bf9969`). In Docker/CI
|
|
/// builds where `.git` is absent, falls back to `CARGO_PKG_VERSION` which
|
|
/// is already set correctly by the build pipeline's sed patch.
|
|
pub const VERSION: &str = match option_env!("OPENSHELL_GIT_VERSION") {
|
|
Some(v) => v,
|
|
None => env!("CARGO_PKG_VERSION"),
|
|
};
|
|
|
|
/// Encoded protobuf `FileDescriptorSet` for every proto in `proto/`.
|
|
///
|
|
/// Emitted by `build.rs` via `tonic_build::configure().file_descriptor_set_path(...)`.
|
|
/// Used by tests in `openshell-server` to enumerate every RPC and verify that
|
|
/// each one has an `#[rpc_auth(...)]` declaration on its handler.
|
|
pub const FILE_DESCRIPTOR_SET: &[u8] = include_bytes!(env!("OPENSHELL_DESCRIPTOR_PATH"));
|