How tariqdreamstech/ranbval-sdk works
Ranbval SDK loads encrypted and public configuration, resolves and decrypts secrets at runtime, and returns guarded values to applications. Its security path can enforce a repository allowlist; access is audited and reported to the Live Monitor. Separate capabilities include server-side secret proxying, remote environment and plan operations, and CLI setup, checking, and execution. Relationships below are limited to README statements and SOURCE INDEX references or excerpts; several implementations are unsampled, so their internal links are omitted.
Main entry points: loader.py Config loader · cipher.py Token decryption · telemetry/client.py Usage reporting · remote/client.py Remote environments
Components 24
Config and access
- SDK public API
src/ranbval_sdk/__init__.py - Config loader
src/ranbval_sdk/config/loader.py - Secret access
src/ranbval_sdk/config/access.py - Config manifest
src/ranbval_sdk/config/manifest.py
Secret protection
- Token decryption
src/ranbval_sdk/crypto/cipher.py - Repo allowlist
src/ranbval_sdk/policy/repo.py - Output guards
src/ranbval_sdk/crypto/output_guards.py - Access enforcement
src/ranbval_sdk/crypto/enforcement.py
Control plane
- Remote environments
src/ranbval_sdk/remote/client.py - Secure proxy
src/ranbval_sdk/integrations/proxy.py - HTTPX adapter
src/ranbval_sdk/integrations/httpx_transport.py - Host resolution
src/ranbval_sdk/_internal/host.py - HTTP transport
src/ranbval_sdk/_internal/transport.py
Audit and telemetry
- Access audit
src/ranbval_sdk/crypto/audit.py - Live Monitor
src/ranbval_sdk/telemetry/monitor.py - Usage reporting
src/ranbval_sdk/telemetry/client.py - Client context
src/ranbval_sdk/telemetry/context.py - Usage sampling
src/ranbval_sdk/telemetry/sampling.py
CLI
- Ranbval CLI
src/ranbval_sdk/cli/__init__.py - Project initialization
src/ranbval_sdk/cli/init.py - Config checking
src/ranbval_sdk/cli/check.py - App runner
src/ranbval_sdk/cli/run.py
Other components
- Application
- Ranbval control plane
Connections 31
- Application → SDK public API: uses
- SDK public API → Config loader: loads config
src/ranbval_sdk/__init__.py - SDK public API → Secret access: exposes access
src/ranbval_sdk/__init__.py - Config loader → Config manifest: checks config
src/ranbval_sdk/config/loader.py - Config loader → Remote environments: fetches envs
src/ranbval_sdk/config/loader.py - Config loader → Token decryption: stores project secret
src/ranbval_sdk/config/loader.py - Config loader → Output guards: installs guards
src/ranbval_sdk/config/loader.py - Secret access → Config loader: loads config
src/ranbval_sdk/config/access.py - Secret access → Token decryption: decrypts keys
- Token decryption → Repo allowlist: checks repo
src/ranbval_sdk/crypto/cipher.py - Token decryption → Usage reporting: reports use
src/ranbval_sdk/crypto/cipher.py - Token decryption → Usage sampling: samples use
src/ranbval_sdk/crypto/cipher.py - Repo allowlist → Ranbval control plane: fetches policy
src/ranbval_sdk/policy/repo.py - Remote environments → Ranbval control plane: requests envs
src/ranbval_sdk/remote/client.py - Secure proxy → Ranbval control plane: forwards request
- HTTPX adapter → Secure proxy: adapts requests
src/ranbval_sdk/integrations/httpx_transport.py - Secure proxy → Host resolution: resolves host
src/ranbval_sdk/integrations/proxy.py - Secure proxy → HTTP transport: sends request
src/ranbval_sdk/integrations/proxy.py - Remote environments → Host resolution: resolves host
src/ranbval_sdk/remote/client.py - Remote environments → HTTP transport: sends request
src/ranbval_sdk/remote/client.py - Usage reporting → Client context: collects context
src/ranbval_sdk/telemetry/client.py - Usage reporting → Host resolution: resolves host
src/ranbval_sdk/telemetry/client.py - Usage reporting → HTTP transport: sends event
src/ranbval_sdk/telemetry/client.py - Live Monitor → Usage reporting: monitors use
src/ranbval_sdk/telemetry/monitor.py - Live Monitor → Access audit: reads audit
src/ranbval_sdk/telemetry/monitor.py - Ranbval CLI → Project initialization: dispatches init
- Ranbval CLI → Config checking: dispatches check
- Ranbval CLI → App runner: dispatches run
- Config checking → Config manifest: checks config
src/ranbval_sdk/cli/check.py - Config checking → Config loader: loads config
src/ranbval_sdk/cli/check.py - App runner → Config loader: loads config