Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/OpenShell
/ functions
Functions
9,017 in github.com/NVIDIA/OpenShell
⨍
Functions
9,017
◇
Types & classes
806
↓ 10 callers
Function
l7_deny_engine
()
crates/openshell-supervisor-network/src/opa.rs:4219
↓ 10 callers
Function
parse_label_selector
Parse a simple label selector string into key-value pairs. Format: "key1=value1,key2=value2" Returns a `HashMap` of label requirements. Note: Input v
crates/openshell-server/src/persistence/mod.rs:554
↓ 10 callers
Function
parse_proxy_uri
Parse an absolute-form proxy request URI into its components. For example, `"http://10.86.8.223:8000/screenshot/"` yields `("http", "10.86.8.223", 80
crates/openshell-supervisor-network/src/proxy.rs:2864
↓ 10 callers
Function
parse_target_query
(target: &str)
crates/openshell-supervisor-network/src/l7/rest.rs:274
↓ 10 callers
Function
placeholder_for_env_key
(key: &str)
crates/openshell-core/src/secrets.rs:526
↓ 10 callers
Function
policy_with_process
Helper to create a minimal `SandboxPolicy` with the given process policy.
crates/openshell-supervisor-process/src/process.rs:1438
↓ 10 callers
Function
put_refresh_state
( store: &Store, state: &StoredProviderCredentialRefreshState, )
crates/openshell-server/src/provider_refresh.rs:40
↓ 10 callers
Method
release_gpu_and_subnet
(&self, sandbox_id: &str)
crates/openshell-driver-vm/src/driver.rs:1350
↓ 10 callers
Function
resolve_from_hosts_file_contents
(contents: &str, host: &str, port: u16)
crates/openshell-supervisor-network/src/proxy.rs:2429
↓ 10 callers
Function
restore_to_host_driver
Restore a PCI device from `vfio-pci` back to the host's default driver.
crates/openshell-vfio/src/bind.rs:204
↓ 10 callers
Function
run_callback_server
Run the ephemeral callback server. Handles two request types: - `OPTIONS /callback` — CORS preflight, returns 204 with CORS headers. - `POST /callbac
crates/openshell-cli/src/auth.rs:403
↓ 10 callers
Function
service_request
(headers: &[(&str, &str)])
crates/openshell-server/src/http.rs:334
↓ 10 callers
Method
src_endpoint
(mut self, ep: Endpoint)
crates/openshell-ocsf/src/builders/http.rs:62
↓ 10 callers
Function
start_test_server
Start a TLS-wrapped test server using the given `TlsAcceptor`. Returns the bound address and a task handle (abort to stop).
crates/openshell-server/tests/common/mod.rs:558
↓ 10 callers
Function
struct_value
( fields: impl IntoIterator<Item = (impl Into<String>, prost_types::Value)>, )
crates/openshell-server/src/compute/mod.rs:2139
↓ 10 callers
Method
subscribe
(&self)
crates/openshell-server/src/readiness.rs:137
↓ 10 callers
Function
try_parse_http_request
Try to parse an HTTP/1.1 request from raw bytes. Returns [`ParseResult::Complete`] with the parsed request and bytes consumed, or [`ParseResult::Inco
crates/openshell-supervisor-network/src/l7/inference.rs:211
↓ 10 callers
Method
update_from_sandbox
(&self, sandbox: &Sandbox)
crates/openshell-server/src/sandbox_index.rs:28
↓ 10 callers
Function
validate_aws_bedrock_model_id
Reject Bedrock model ids that would produce ambiguous or malformed upstream URL paths. AWS Bedrock encodes the model in `/model/<id>/invoke`, so the
crates/openshell-server/src/inference.rs:386
↓ 10 callers
Function
validate_name
Validate that a resource name is safe for URL path interpolation. Valid names start with an alphanumeric character and contain only alphanumerics, do
crates/openshell-driver-podman/src/client.rs:57
↓ 10 callers
Function
verify_backend_endpoint
( client: &reqwest::Client, route: &ResolvedRoute, )
crates/openshell-router/src/backend.rs:458
↓ 10 callers
Function
with_sandbox
(mut request: Request<T>, sandbox_id: &str)
crates/openshell-server/src/grpc/policy.rs:3938
↓ 10 callers
Function
with_tmp_xdg
(tmp: &std::path::Path, f: F)
crates/openshell-bootstrap/src/edge_token.rs:94
↓ 10 callers
Function
write_sysfs
(path: &Path, value: &str)
crates/openshell-vfio/src/sysfs.rs:219
↓ 10 callers
Function
write_system_metadata
Write a `<gateways-dir>/<name>/metadata.json` file for the given endpoint.
crates/openshell-bootstrap/src/metadata.rs:616
↓ 9 callers
Function
_proxy_connect_then_http
Return a closure that CONNECTs, does TLS + HTTP, returns JSON string.
e2e/python/test_sandbox_policy.py:96
↓ 9 callers
Method
acceptor
(&self)
crates/openshell-server/src/tls.rs:112
↓ 9 callers
Method
as_str
(&self)
crates/openshell-ocsf/src/enums/http_method.rs:39
↓ 9 callers
Method
as_u8
(self)
crates/openshell-ocsf/src/enums/auth.rs:46
↓ 9 callers
Function
binary_path
(pid: i32)
crates/openshell-supervisor-network/src/procfs.rs:84
↓ 9 callers
Function
build_provider_url
Build the upstream URL for a provider route. `stream_response` selects between the unary and streaming Vertex AI Anthropic endpoint suffixes. Pass th
crates/openshell-router/src/backend.rs:764
↓ 9 callers
Function
build_server_cert
(ca: &Certificate, ca_key: &KeyPair)
crates/openshell-cli/tests/helpers/mod.rs:96
↓ 9 callers
Method
cancel_log_stream
Cancel any running log stream task.
crates/openshell-tui/src/app.rs:2743
↓ 9 callers
Function
canonical_ports
(endpoint: &NetworkEndpoint)
crates/openshell-policy/src/merge.rs:620
↓ 9 callers
Method
check
(&self, identity: &Identity, method: &str)
crates/openshell-server/src/auth/authz.rs:66
↓ 9 callers
Function
cleanup_sandbox_token_file
(sandbox: &DriverSandbox, config: &DockerDriverRuntimeConfig)
crates/openshell-driver-docker/src/lib.rs:2127
↓ 9 callers
Function
compute_driver_socket_path
Path of the Unix domain socket the driver will listen on.
crates/openshell-server/src/compute/vm.rs:255
↓ 9 callers
Function
configured_compute_driver
( config: &Config, driver_startup: compute::driver_config::DriverStartupContext<'_>, )
crates/openshell-server/src/lib.rs:836
↓ 9 callers
Function
driver_table
Build the merged TOML table for `driver` by overlaying inheritable `[openshell.gateway]` defaults onto `[openshell.drivers.<name>]`. The returned [`t
crates/openshell-server/src/config_file.rs:233
↓ 9 callers
Function
emit_l7_tunnel_close_after_policy_change
(host: &str, port: u16, error: miette::Report)
crates/openshell-supervisor-network/src/proxy.rs:2111
↓ 9 callers
Method
evaluate_network_action
Evaluate a network access request and return a routing action. Uses the OPA `network_action` rule which returns one of: `"allow"` or `"deny"`.
crates/openshell-supervisor-network/src/opa.rs:308
↓ 9 callers
Function
extract_aws_region
Extract the AWS region from an AWS hostname. Supports standard, dualstack, FIPS, virtual-hosted, and China partition hostnames. The region is the lab
crates/openshell-supervisor-network/src/sigv4.rs:30
↓ 9 callers
Function
file_sha256
Compute the SHA256 hash of a file, returned as a hex-encoded string. Used for binary integrity verification in the trust-on-first-use (TOFU) model: t
crates/openshell-supervisor-network/src/procfs.rs:475
↓ 9 callers
Method
filtered_log_lines
Return log lines matching the current source filter.
crates/openshell-tui/src/app.rs:1033
↓ 9 callers
Function
generate_proposals
Generate draft `PolicyChunk` proposals from denial summaries. Groups denials by `(host, port, binary)`, then for each group generates a `PolicyChunk`
crates/openshell-sandbox/src/mechanistic_mapper.rs:59
↓ 9 callers
Function
generate_test_certs_with_ca
Generate a self-signed CA certificate and a `localhost` server certificate, writing them as PEM files into `dir`. Returns the CA certificate and keyp
crates/openshell-server/src/tls_test_utils.rs:38
↓ 9 callers
Method
get_policy_by_version
( &self, sandbox_id: &str, version: i64, )
crates/openshell-server/src/persistence/sqlite.rs:539
↓ 9 callers
Function
get_version
(format: str)
tasks/scripts/release.py:167
↓ 9 callers
Function
gpu_device_ids_config
(device_ids: &[&str])
crates/openshell-driver-vm/src/driver.rs:5162
↓ 9 callers
Function
handle_update_config
( state: &Arc<ServerState>, request: Request<UpdateConfigRequest>, )
crates/openshell-server/src/grpc/policy.rs:1438
↓ 9 callers
Function
install_rustls_provider
Install the default rustls crypto provider. Must be called once at the start of any test that exercises TLS handshakes. Multiple calls are harmless (
crates/openshell-server/src/tls_test_utils.rs:16
↓ 9 callers
Function
is_hex
(b: u8)
crates/openshell-vfio/src/sysfs.rs:197
↓ 9 callers
Method
label
(self)
crates/openshell-ocsf/src/enums/auth.rs:32
↓ 9 callers
Function
load_sandbox_settings
( store: &Store, sandbox_name: &str, )
crates/openshell-server/src/grpc/policy.rs:3733
↓ 9 callers
Function
parse_rejection_detail
(error: &str, mode: ParseRejectionMode)
crates/openshell-supervisor-network/src/l7/relay.rs:100
↓ 9 callers
Function
perform_token_grant
Perform `OAuth2` JWT client assertion grant. POSTs to the token endpoint with: - `grant_type=client_credentials` - `client_assertion_type=<configured
crates/openshell-supervisor-network/src/token_grant.rs:301
↓ 9 callers
Function
prepare_backend_request
Build and send an HTTP request to the backend configured in `route`. Returns the prepared [`reqwest::RequestBuilder`] with auth, headers, model rewri
crates/openshell-router/src/backend.rs:193
↓ 9 callers
Function
prepare_compute_driver_socket_path
( vm_config: &VmComputeConfig, socket_path: &Path, )
crates/openshell-server/src/compute/vm.rs:263
↓ 9 callers
Function
profile_for
Look up the inference provider profile for a given provider type. Returns `None` for provider types that don't support inference routing (e.g. `githu
crates/openshell-core/src/inference.rs:237
↓ 9 callers
Function
proto_setting_to_stored
(key: &str, value: &SettingValue)
crates/openshell-server/src/grpc/policy.rs:3639
↓ 9 callers
Function
read_pem
(path: &Path)
crates/openshell-server/src/certgen.rs:620
↓ 9 callers
Function
relay_and_capture
Helper: run a request through the relay and capture what upstream receives.
crates/openshell-supervisor-network/src/l7/rest.rs:4952
↓ 9 callers
Function
relay_with_inspection
Run protocol-aware L7 inspection on a tunnel. This replaces `copy_bidirectional` for L7-enabled endpoints. Protocol detection (peek) is the caller's
crates/openshell-supervisor-network/src/l7/relay.rs:185
↓ 9 callers
Method
reload
Reload policy and data from strings (data is YAML). Designed for future gRPC hot-reload from the openshell gateway. Replaces the entire engine atomic
crates/openshell-supervisor-network/src/opa.rs:380
↓ 9 callers
Function
resolve_and_check_trusted_gateway
Resolve `host:port` and validate that every resolved address matches the trusted host gateway IP. This bypasses the normal SSRF tiers (always-blocked
crates/openshell-supervisor-network/src/proxy.rs:2347
↓ 9 callers
Function
resolve_inference_bundle
Resolve the inference bundle (all managed routes + revision hash).
crates/openshell-server/src/inference.rs:891
↓ 9 callers
Function
rewrite_target_for_eval
( target: &str, resolver: &SecretResolver, )
crates/openshell-core/src/secrets.rs:1012
↓ 9 callers
Function
route_request
( ctx: &PolicyLocalContext, method: &str, path: &str, body: &[u8], )
crates/openshell-supervisor-network/src/policy_local.rs:141
↓ 9 callers
Function
run_isolated
Run `openshell <args>` with an isolated (empty) config directory so it cannot discover any real gateway. Returns (combined stdout+stderr, exit code).
e2e/rust/tests/cf_auth_smoke.rs:17
↓ 9 callers
Function
set_file_owner_only
Set a file to owner-only read/write (`0o600`) on Unix. No-op on non-Unix platforms.
crates/openshell-core/src/paths.rs:97
↓ 9 callers
Function
store_edge_token
Store an edge authentication token for a gateway.
crates/openshell-bootstrap/src/edge_token.rs:26
↓ 9 callers
Function
try_build_container_spec_with_token
( sandbox: &DriverSandbox, config: &PodmanComputeConfig, token_host_path: Option<&Path>, )
crates/openshell-driver-podman/src/container.rs:783
↓ 9 callers
Method
update_config
( &self, _request: tonic::Request<openshell_core::proto::UpdateConfigRequest>, )
crates/openshell-cli/tests/mtls_integration.rs:333
↓ 9 callers
Function
validate_interactive_exec_start
( msg: Option<ExecSandboxInput>, )
crates/openshell-server/src/grpc/sandbox.rs:1221
↓ 9 callers
Function
validate_label_value
Validate a label value according to Kubernetes requirements. Label values: - Can be empty (Kubernetes allows empty values) - Max 63 characters - If n
crates/openshell-server/src/grpc/validation.rs:496
↓ 9 callers
Function
validate_openshell_endpoint
(endpoint: &str)
crates/openshell-driver-vm/src/driver.rs:350
↓ 9 callers
Function
validate_policy_safety
Validate that a policy does not contain unsafe content. Delegates to [`openshell_policy::validate_sandbox_policy`] and converts violations into a gRP
crates/openshell-server/src/grpc/validation.rs:622
↓ 9 callers
Function
validate_websocket_response
( headers: &str, mode: WebSocketExtensionMode, websocket: Option<&WebSocketResponseValidation>, )
crates/openshell-supervisor-network/src/l7/rest.rs:2123
↓ 9 callers
Method
with_compute_drivers
(mut self, drivers: I)
crates/openshell-core/src/config.rs:625
↓ 9 callers
Function
with_tmp_xdg
(tmp: &Path, f: F)
crates/openshell-cli/src/run.rs:7918
↓ 9 callers
Function
write_local_bundle
(dir: &Path, bundle: &PkiBundle, paths: &LocalPaths)
crates/openshell-server/src/certgen.rs:626
↓ 8 callers
Function
_stub_with_token
Create a gRPC stub that injects a Bearer token.
e2e/python/oidc/oidc_auth_test.py:152
↓ 8 callers
Method
after_launch_failed
( &self, sandbox: &Sandbox, state_dir: &Path, reason: LaunchAbortReason, )
crates/openshell-driver-vm/src/lifecycle.rs:603
↓ 8 callers
Method
apply_common_fields
Apply the fields common to every builder's `build()` method onto `base`: optional status, optional message, device info, and container info.
crates/openshell-ocsf/src/builders/mod.rs:237
↓ 8 callers
Function
apply_sigv4_to_request
Apply AWS Signature Version 4 signing to a raw HTTP request buffer. Strips existing AWS auth headers, computes a new signature using the `aws-sigv4`
crates/openshell-supervisor-network/src/sigv4.rs:255
↓ 8 callers
Method
assert_one_request
(&self, expected_provider_key: &str)
crates/openshell-supervisor-network/src/l7/token_grant_injection.rs:451
↓ 8 callers
Function
build_client_cert
(ca: &Certificate, ca_key: &KeyPair)
crates/openshell-cli/tests/helpers/mod.rs:108
↓ 8 callers
Function
check_glob_syntax
Check a glob pattern for obvious syntax issues. Returns `Some(warning_message)` if the pattern looks malformed. OPA's `glob.match` is forgiving, so t
crates/openshell-supervisor-network/src/l7/mod.rs:406
↓ 8 callers
Method
claim_relay
( &self, channel_id: &str, principal: Option<&Principal>, )
crates/openshell-server/src/supervisor_session.rs:341
↓ 8 callers
Function
classify_request
(request: &L7Request, body: &[u8])
crates/openshell-supervisor-network/src/l7/graphql.rs:68
↓ 8 callers
Method
client
(&self)
crates/openshell-server/src/compute/mod.rs:174
↓ 8 callers
Method
connect
(endpoint: &str)
crates/openshell-core/src/grpc_client.rs:724
↓ 8 callers
Function
contains_raw_reserved_marker
(value: &str)
crates/openshell-core/src/secrets.rs:26
↓ 8 callers
Method
delete_by_name
Delete an object by name within an object type.
crates/openshell-server/src/persistence/mod.rs:301
↓ 8 callers
Function
drop_privileges
(policy: &SandboxPolicy)
crates/openshell-supervisor-process/src/process.rs:1221
↓ 8 callers
Function
emit_denial_simple
Emit a denial event from a borrowed sender reference. Used by `handle_forward_proxy` which borrows `Option<&Sender>`.
crates/openshell-supervisor-network/src/proxy.rs:509
↓ 8 callers
Function
emit_parse_rejection
(ctx: &L7EvalContext, detail: &str, engine_type: &str)
crates/openshell-supervisor-network/src/l7/relay.rs:115
↓ 8 callers
Function
emit_service_http_failure
( state: &ServerState, req: &Request<Body>, sandbox_name: &str, service_name: &str, endpoi
crates/openshell-server/src/service_routing.rs:586
↓ 8 callers
Function
ensure_required_providers
Ensure all required providers exist. `explicit_names` are provider **names** supplied via `--provider`. They are passed through directly; the server
crates/openshell-cli/src/run.rs:3703
↓ 8 callers
Function
format_chunk
Format a single HTTP chunked transfer-encoding segment. Returns `<hex-length>\r\n<data>\r\n`.
crates/openshell-supervisor-network/src/l7/inference.rs:454
← previous
next →
301–400 of 9,017, ranked by callers