Skip to content

Bridge Configuration Reference ​

This page collects the bridge configuration surface that already exists in the current server/crank implementation.

HTTP environment variables ​

VariableRequiredDefaultNotes
BRIDGE_BIND_ADDRESSNo0.0.0.0:$PORT or 0.0.0.0:8080Explicit bind override
BRIDGE_AUTH_USERNAMENounsetMust be paired with BRIDGE_AUTH_PASSWORD
BRIDGE_AUTH_PASSWORDNounsetMust be paired with BRIDGE_AUTH_USERNAME
PORTCloud Run provided8080 fallbackUsed when BRIDGE_BIND_ADDRESS is not set

Runtime environment variables ​

VariableRequired when runtime enabledDefaultNotes
BRIDGE_SOURCE_RPC_URLYes—Source-chain RPC endpoint
BRIDGE_TARGET_RPC_URLYes—Target-chain RPC endpoint
BRIDGE_SOURCE_CHAIN_IDYes—Parsed as u16
BRIDGE_TARGET_CHAIN_IDYes—Parsed as u16
BRIDGE_AUTHORITY_KEYPAIRYes—Filesystem path to signer keypair
BRIDGE_POLL_INTERVAL_SECSNo15Parsed as u64 seconds
BRIDGE_CRANK_MAX_ATTEMPTSNo3Parsed as u32; must be at least 1
BRIDGE_CRANK_RETRY_BACKOFF_MSNo1000Parsed as u64 milliseconds

Runtime activation behavior ​

The current server parses bridge runtime configuration as optional. If none of the runtime variables are present, bridge runtime stays disabled. If any of them are present, the required set must be complete or startup fails.

Operator note

This is useful for deployment diagnostics: a partially configured service should fail fast instead of coming up “healthy” but not actually cranking.

Cloud Run notes ​

The current runbook recommends:

  • mount the authority keypair from Secret Manager as a file
  • keep PORT out of your manually supplied env file
  • use /health for first-response debugging
  • use /metrics for dashboarding and alerting

Zink is a general-purpose SVM network for programs, operators, and bridge integrations.