Skip to content

Core Engine and Dependencies Configuration ​

This page documents the core engine configuration sections in pycaber: AWS, GLOBAL (including the GLOBAL.sdk.* identity and instance registry settings and GLOBAL.txnTokenConfig), Dependencies, WhitespaceRemapOnLeader, rbix, RKCQF, and ObjectSourceEndpoint scheme preservation (endpoint vs connection_url).

Every registered parameter derives its environment variable mechanically via ConfigEntry.derived_env_var() (CSI_<SECTION_UPPER_SNAKE>_<KEY_UPPER_SNAKE>). See Environment Variables and Governance for the derivation rules and the 7 kept legacy exception variables.

AWS ​

Controls AWS region selection and S3 client tuning for cloud and hybrid deployments.

KeyTypeDefaultSensitivityRequired InDescription
AWS.regionstring"us-west-1"noneecs-ec2, ecs-fargate, eksAWS region for S3 and cloud service calls. Overridden by CSI_AWS_REGION.
AWS.s3MaxRetriesinteger20noneOptionalMaximum retry attempts for transient S3 client errors (CSI_AWS_S3_MAX_RETRIES).

GLOBAL ​

Controls platform wide identity, storage mode, chunking algorithms, cryptographic keys, SDK runtime governance (GLOBAL.sdk.*), and transaction token enforcement (GLOBAL.txnTokenConfig).

Core GLOBAL Parameters ​

KeyTypeDefaultSensitivityRequired InDescription
GLOBAL.accountIdstring""internalallCaber tenant or customer account identifier (CSI_GLOBAL_ACCOUNT_ID).
GLOBAL.chunkingAlgorithmstring"AE"noneOptionalContent defined chunking algorithm ("AE", "Rabin", "TTTD", "Rsync").
GLOBAL.configPollIntervalSecsinteger0noneOptionalInterval in seconds for polling remote configuration revisions (0 disables polling).
GLOBAL.coriIdstring""internalallCanonical Organization and Resource Identifier prefix (CSI_GLOBAL_CORI_ID).
GLOBAL.csiBucketstring"caber-data"noneallDefault shared storage bucket name (CSI_GLOBAL_CSI_BUCKET).
GLOBAL.debugbooleanfalsenoneOptionalEnables verbose debug logging across core Rust and Python modules (CSI_GLOBAL_DEBUG).
GLOBAL.defaultTenantIdstring"default"noneOptionalFallback tenant identifier when single tenant mode is active (CSI_GLOBAL_DEFAULT_TENANT_ID).
GLOBAL.deploymentModestring"docker-compose"noneallDeployment target topology ("docker-compose", "ecs-ec2", "ecs-fargate", "eks", "standalone").
GLOBAL.enableMultitenancybooleanfalsenoneOptionalEnforces strict per tenant index and graph namespace isolation (CSI_GLOBAL_ENABLE_MULTITENANCY).
GLOBAL.encryptionKeyIdstring""secretOptionalKMS or vault key identifier used for envelope encryption (CSI_GLOBAL_ENCRYPTION_KEY_ID).
GLOBAL["localPrefix"]string"/var/tmp/"noneOptionalBase directory prefix for local filesystem storage mode (CSI_GLOBAL_LOCAL_PREFIX).
GLOBAL["localStorage"]booleanfalsenoneOptionalRoutes object reads and writes to the local filesystem under get_global_output_directory() (CSI_GLOBAL_LOCAL_STORAGE).
GLOBAL.logFilestring""noneOptionalFile path for structured log output (CSI_LOG_FILE kept exception).
GLOBAL.logLevelstring"INFO"noneOptionalMinimum log severity ("TRACE", "DEBUG", "INFO", "WARN", "ERROR", overridden by CSI_LOG_LEVEL).
GLOBAL.maxChunkSizeinteger65536noneOptionalUpper bound in bytes for content defined chunks (CSI_GLOBAL_MAX_CHUNK_SIZE).
GLOBAL.minChunkSizeinteger4096noneOptionalLower bound in bytes for content defined chunks (CSI_GLOBAL_MIN_CHUNK_SIZE).
GLOBAL.serviceApiKeystring""secretOptionalShared service authentication key for internal microservice calls (CSI_GLOBAL_SERVICE_API_KEY).
GLOBAL.targetChunkSizeinteger16384noneOptionalTarget average chunk size in bytes for content defined chunking (CSI_GLOBAL_TARGET_CHUNK_SIZE).
GLOBAL.tlsVerifybooleantruenoneOptionalEnforces TLS certificate verification on outbound HTTPS connections (CSI_DISABLE_SSL_VERIFY inverts this flag).

GLOBAL.sdk.* Identity, Instance Registry, and Auto Instrumentation ​

The GLOBAL.sdk subtree configures the PyCaber Unified Auto Instrumentation SDK (pycaber.auto and caber_sdk), controlling how SDK instances register with the platform, authenticate, and patch third party libraries and agent frameworks.

KeyDerived Environment VariableTypeDefaultSensitivityDescription
GLOBAL.sdk.autoApproveCSI_GLOBAL_SDK_AUTO_APPROVEbooleantruenoneAutomatically approves newly registered SDK instances in the instance registry without waiting for manual administrator approval in CaberUserConsole. Set to false in strict zero trust production environments.
GLOBAL.sdk.instanceExpirySecsCSI_GLOBAL_SDK_INSTANCE_EXPIRY_SECSinteger300noneHeartbeat lease duration in seconds before an silent SDK instance transitions from ACTIVE to EXPIRED.
GLOBAL.sdk.expiredRetentionHoursCSI_GLOBAL_SDK_EXPIRED_RETENTION_HOURSinteger24noneNumber of hours an EXPIRED SDK instance record is retained in OpenSearch before background compaction purges it.
GLOBAL.sdk.seedApiKeyCSI_GLOBAL_SDK_SEED_API_KEYstring""secretBootstrap API key presented by SDK instances during initial registration (POST /v1/sdk/register) when dynamic key provisioning is enabled.
GLOBAL.sdk.requireApiKeyCSI_GLOBAL_SDK_REQUIRE_API_KEYbooleanfalsenoneRequires every inbound SDK telemetry, policy evaluation, and heartbeat request to present a valid registered API key.
GLOBAL.sdk.noPatchModulesCSI_GLOBAL_SDK_NOPATCH_MODULESarray<string>[]noneComma separated list or JSON array of Python module names (out of the 15 supported HTTP/WS/gRPC libraries) that pycaber.auto must skip when registering wrapt.when_imported hooks.
GLOBAL.sdk.agentFramework.crewaiCSI_GLOBAL_SDK_AGENT_FRAMEWORK_CREWAIarray<string>[]noneModule or class prefixes to skip when pycaber.auto instruments crewai (Crew.kickoff, Agent.execute_task, BaseTool.run).
GLOBAL.sdk.agentFramework.langchainCSI_GLOBAL_SDK_AGENT_FRAMEWORK_LANGCHAINarray<string>[]noneModule or class prefixes to skip when pycaber.auto instruments langchain_core (Runnable.invoke, BaseTool.invoke, BaseChatModel._generate).
GLOBAL.sdk.agentFramework.langgraphCSI_GLOBAL_SDK_AGENT_FRAMEWORK_LANGGRAPHarray<string>[]noneModule or node prefixes to skip when pycaber.auto instruments langgraph (Pregel.invoke, CompiledGraph, ToolNode).
GLOBAL.sdk.agentFramework.llamaindexCSI_GLOBAL_SDK_AGENT_FRAMEWORK_LLAMAINDEXarray<string>[]noneModule or class prefixes to skip when pycaber.auto instruments llama_index.core (BaseQueryEngine.query, BaseRetriever.retrieve, FunctionTool.call).
GLOBAL.sdk.agentFramework.autogenCSI_GLOBAL_SDK_AGENT_FRAMEWORK_AUTOGENarray<string>[]noneModule or class prefixes to skip when pycaber.auto instruments autogen / autogen_agentchat (ConversableAgent.generate_reply, initiate_chat, BaseChatAgent.on_messages).

GLOBAL.txnTokenConfig ​

Configures outbound HTTP and gRPC host filtering for Transaction Token (Txn-Token) and On Behalf Of (OBO) header propagation in caber_sdk:

KeyDerived Environment VariableTypeDefaultDescription
GLOBAL.txnTokenConfig.allowHostsCSI_GLOBAL_TXN_TOKEN_CONFIG_ALLOW_HOSTSarray<string>["*"]Glob patterns of destination host or host:port authorities eligible to receive X-Caber-Txn-Token and OBO headers.
GLOBAL.txnTokenConfig.denyHostsCSI_GLOBAL_TXN_TOKEN_CONFIG_DENY_HOSTSarray<string>[]Glob patterns of destination authorities that must never receive internal transaction tokens (evaluated before allowHosts, useful for third party SaaS APIs).

Dependencies ​

Defines connection endpoints, credentials, listen ports, and logical database table or index mappings for external infrastructure services (elastic-search, neo4j, shared-storage, kafka, postgres, redis, milvus).

Shared Dependency Schema (Dependencies.<service>.*) ​

Key PatternTypeSensitivityDescription
Dependencies.<service>.urlstringinternalPrimary service endpoint URL or host:port address (for example Dependencies.elastic-search.url, Dependencies.neo4j.url, Dependencies.shared-storage.url).
Dependencies.<service>.usernamestringcredentialAuthentication username for the backing service.
Dependencies.<service>.passwordstringsecretAuthentication password or secret token for the backing service.
Dependencies.<service>.bucketstringnoneBucket name for object storage services (Dependencies.shared-storage.bucket, default "caber-data").
Dependencies.<service>.regionstringnoneCloud region override for shared-storage.
Dependencies.<service>.useSslbooleannoneEnables TLS transport for the service connection.
Dependencies.<service>.verifyCertsbooleannoneEnforces server certificate chain verification when useSsl is true.
Dependencies.<service>.caCertPathstringnonePath to a custom PEM CA bundle for verifying the service certificate.
Dependencies.<service>.dbTablesobjectnoneMap of logical Caber table aliases to physical OpenSearch index names or relational table names (case preserved in raw_json).
Dependencies.<service>.listenPortsobjectnoneMap of logical listener names (http, Bolt, grpc, metrics) to TCP port numbers.

Standard OpenSearch Logical Tables (Dependencies.elastic-search.dbTables) ​

Logical KeyDefault Physical IndexPurpose
api_map"csi_api_map"Discovered API endpoints and registered data source discovery records.
auth_log"csi_auth_log"Edge authentication, OBO token exchange, and policy evaluation audit records.
chunk_index"csi_chunks"Content defined chunk metadata, SHA 256 digests, and CORI references.
comparison_log"csi_comparison_log"Passive parity comparison records emitted by Caber runtime.
doc_metadata"csi_doc_metadata"Document level ingest status, parser provenance, and NER entity summaries.
sdk_instances"csi_sdk_instances"Active and expired pycaber.auto SDK instance registration records.

Object_Sources Scheme Preservation (endpoint vs connection_url) ​

When configuring object storage connectors under Object_Sources or Dependencies.shared-storage, pycaber enforces a strict distinction between bare network authorities and scheme qualified URLs through ObjectSourceEndpoint:

  • ObjectSourceEndpoint.authority() (endpoint field): Always returns the bare host:port authority with any leading http:// or https:// scheme stripped (for example "minio.example.com:9000" or "s3.us-west-1.amazonaws.com"). Used by low level socket dialers and legacy S3 SDK builders that construct the scheme separately from useSsl.
  • ObjectSourceEndpoint.url() (connection_url field): Preserves or reconstructs the full scheme qualified URL ("http://minio.example.com:9000" or "https://s3.us-west-1.amazonaws.com"). When the raw configuration specifies an explicit http:// or https:// prefix, ObjectSourceEndpoint records that scheme losslessly so connection_url never silently upgrades an explicit http:// MinIO dev endpoint to https:// or strips TLS from a production endpoint.

WhitespaceRemapOnLeader ​

Configures deterministic whitespace normalization and byte offset remapping when electing a canonical leader chunk across near duplicate text segments.

KeyDerived Environment VariableTypeDefaultDescription
WhitespaceRemapOnLeader.enabledCSI_WHITESPACE_REMAP_ON_LEADER_ENABLEDbooleantrueEnables byte span remapping across runs of collapsible ASCII and Unicode whitespace when mapping follower chunks onto a canonical leader chunk.
WhitespaceRemapOnLeader.maxDriftBytesCSI_WHITESPACE_REMAP_ON_LEADER_MAX_DRIFT_BYTESinteger512Maximum cumulative byte offset drift tolerated between follower and leader before falling back to an independent chunk registration.
WhitespaceRemapOnLeader.preserveNewlinesCSI_WHITESPACE_REMAP_ON_LEADER_PRESERVE_NEWLINESbooleantrueTreats line break boundaries (\n and \r\n) as structural anchors during whitespace collapse.