Skip to main content

KoalaVault Key Provider for CryptoTensors - Secure key management for encrypted model deployment with vLLM

Project description

cryptotensors-koalavault-vllm

PyPI version Crates.io version

KoalaVault Key Provider for CryptoTensors - A secure key management provider for encrypted model deployment with vLLM.

Note: This package is distributed as pre-compiled binaries. The Rust source code is proprietary and not publicly available.

Overview

cryptotensors-koalavault-vllm is a Key Provider implementation for the CryptoTensors library, specifically designed for secure model deployment with vLLM. It provides:

  • Secure Key Management: Automatic key retrieval from KoalaVault servers
  • Attestation Support: Framework integrity verification for secure deployments
  • vLLM Integration: Seamless integration with vLLM for encrypted model serving
  • Native Performance: Rust-based implementation with Python bindings
  • Binary Distribution: Pre-compiled native libraries for easy installation

Installation

From PyPI

pip install cryptotensors-koalavault-vllm

The package includes pre-compiled binaries for common platforms. No compilation or Rust toolchain is required.

Quick Start

Basic Usage

import cryptotensors

# Initialize the KoalaVault provider
cryptotensors.init_key_provider(
    "koalavault-vllm",
    api_key="your-api-key",
    model_owner="model-owner",
    model_name="model-name",
    model_path="/path/to/model"
)

# Now you can use cryptotensors to load encrypted models
from cryptotensors import safe_open

with safe_open("model.safetensors", framework="pt") as f:
    tensor = f.get_tensor("layer.weight")

With vLLM

The provider is typically initialized automatically when using the KoalaVault vLLM container:

docker run --rm \
  -e KOALAVAULT_API_KEY=your-api-key \
  -v /path/to/models:/models \
  koalavault/vllm:latest \
  --koalavault-api-key your-api-key \
  --koalavault-model owner/model-name \
  --model /models/model-name

Architecture

This package implements the KeyProvider trait from the CryptoTensors core library. When initialized, it:

  1. Authenticates with the KoalaVault server using the provided API key
  2. Performs Attestation to verify the framework integrity
  3. Retrieves Keys for decrypting the encrypted model tensors
  4. Manages Keys securely in memory without exposing them to Python

API Reference

Python API

cryptotensors.init_key_provider(name, **config)

Initialize and activate a key provider.

Parameters:

  • name (str): Provider name, must be "koalavault-vllm"
  • api_key (str): KoalaVault API key
  • model_owner (str): Model owner identifier
  • model_name (str): Model name identifier
  • model_path (str): Path to the model directory

Example:

cryptotensors.init_key_provider(
    "koalavault-vllm",
    api_key="sk-...",
    model_owner="my-org",
    model_name="my-model",
    model_path="/models/my-model"
)

Rust API

The Rust crate provides the KoalaVaultProvider struct that implements the KeyProvider trait. The crate is distributed as a binary library (cdylib) and can be used via FFI:

use cryptotensors::{KeyProvider, CryptoTensorsError};

// Provider is created via FFI function exported from the binary
// extern "C" fn cryptotensors_create_provider() -> *mut dyn KeyProvider

Note: The Rust source code for this provider is proprietary. Only pre-compiled binary libraries are distributed via crates.io.

Security Features

  • Signature Verification: All provider libraries are cryptographically signed and verified before loading
  • Key Isolation: Cryptographic keys never pass through the Python interpreter
  • Attestation: Framework integrity is verified before key retrieval
  • Secure Storage: Keys are stored in memory with automatic cleanup

Requirements

  • Python >= 3.9
  • cryptotensors core library (>= 0.2.0)

Distribution

This package is distributed as pre-compiled binary wheels for:

  • Linux (x86_64, aarch64)
  • macOS (x86_64, arm64)
  • Windows (x86_64)

The Rust source code is proprietary and not available for public inspection or modification. Only the compiled binary libraries are distributed via PyPI and crates.io.

License

This package is distributed under a proprietary license. The binary libraries are provided for use with the CryptoTensors ecosystem. See the package metadata for specific license terms.

Links

Support

For issues and questions, please contact KoalaVault support or refer to the official documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryptotensors_koalavault_vllm-0.1.0.tar.gz (125.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl (2.9 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-musllinux_1_2_aarch64.whl (2.8 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file cryptotensors_koalavault_vllm-0.1.0.tar.gz.

File metadata

File hashes

Hashes for cryptotensors_koalavault_vllm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 488a3c019076f9c8a33db52e3c52ca1867d72790db47d2daa10a057269d20c1d
MD5 2dfd5486d8f624167c2110bdfb2a0be3
BLAKE2b-256 cdf2231819dfabc3fd429926bfb6e5c29a6bfe36ff9bf1d90fc0af7c284bdbd8

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryptotensors_koalavault_vllm-0.1.0.tar.gz:

Publisher: llm-client-release.yml on KoalaVault-ai/koalavault-vllm-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 adb19137ccaddfebd971b0e4c3d43cca30de2e1bb5252ebbdc16f9076701f8e7
MD5 ef3ac540e2e85f60537f530380b0faff
BLAKE2b-256 54642468ca5bdf594f9f5acb25233ec80fd912ae08ce0301af2f06052c363006

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: llm-client-release.yml on KoalaVault-ai/koalavault-vllm-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 943aa23603abd33d5712ee81238d1f20757a51befa029cfd313a27ea7d31d836
MD5 f9664e55372522a492957d63664067c3
BLAKE2b-256 f0f6a149a9843910cb10385233b9f79c21f87415bbb9f532bf3400864485399d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-musllinux_1_2_aarch64.whl:

Publisher: llm-client-release.yml on KoalaVault-ai/koalavault-vllm-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d12c794e10dbf944de23b210773ee9817a35251e25d26afd1080005f486df369
MD5 2f3b4a12dfe5965977e4ae39252fec41
BLAKE2b-256 cc04db935080ceda8c7a322121a1e0697288198ad3eb2267eebc8ee585f64859

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl:

Publisher: llm-client-release.yml on KoalaVault-ai/koalavault-vllm-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 91f39b0344bde55cb87793b7324e6b4ad87e0f01762b77de41a842b9b3d6b50f
MD5 5c87e03e8fc31864b92affa6d7636c85
BLAKE2b-256 492535fcb1b6f073e479e34c3d3b728f8d0630eea0a361d67a977fb13bd45fca

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl:

Publisher: llm-client-release.yml on KoalaVault-ai/koalavault-vllm-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8fa408921d6d8325b6f82c88d9668ee264a2639733e87164a2a6d0591091bca7
MD5 b3d739cd7fa2d98e4f1203fc7d7618ca
BLAKE2b-256 31a64f70eaf539af4d9ad9eb02086146cc944df829e4142d1a285f68270e909f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: llm-client-release.yml on KoalaVault-ai/koalavault-vllm-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c08569242b3f85a70e04abec8bde439e906f35f8e6ace9e3c0e118b5ce7123ca
MD5 cab454b442486075b623ca34606c404f
BLAKE2b-256 03eff5e67c10eccc239b2ec3fb707c07e18185df7b13476ddd166e0dd339ebda

See more details on using hashes here.

Provenance

The following attestation bundles were made for cryptotensors_koalavault_vllm-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl:

Publisher: llm-client-release.yml on KoalaVault-ai/koalavault-vllm-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page