Cross-platform client for CloudBridge Relay P2P mesh networking.
-
Get JWT Token: Contact your CloudBridge Relay administrator for a JWT token.
-
Configure: Copy
config-example.yamltoconfig.yamland update:relay: host: "your-relay-server.com" port: 8081 auth: token: "YOUR_JWT_TOKEN_HERE" p2p: server_id: "my-server-001" tenant_id: "my-organization"
-
Run:
# P2P mesh mode with L3-overlay network ./cloudbridge-client p2p --config config.yaml --server-id my-server-001 # Tunnel mode ./cloudbridge-client tunnel --config config.yaml --local-port 3389 --remote-host target.com --remote-port 3389 # WireGuard L3-overlay network management ./cloudbridge-client wireguard config --config config.yaml --token YOUR_JWT_TOKEN ./cloudbridge-client wireguard status --config config.yaml --token YOUR_JWT_TOKEN
Production Security Best Practices:
-
Environment Variables (Recommended):
export CBR_AUTH_TOKEN="your-jwt-token" export CBR_RELAY_HOST="your-relay-server.com" export CBR_RELAY_PORT="8081" ./cloudbridge-client p2p --config config.yaml
-
OS Keyring Integration:
- Windows: Uses Windows Credential Manager
- macOS: Uses Keychain Access
- Linux: Uses libsecret (GNOME Keyring/KDE Wallet)
-
File Permissions:
chmod 600 config.yaml # Restrict config file access chown $USER:$USER config.yaml
-
Token Rotation:
- Use short-lived JWT tokens (1-24 hours)
- Implement automatic token refresh
- Rotate tokens regularly
Before running, verify the release integrity:
-
Download checksums:
curl -L https://github.com/twogc/cloudbridge-client/releases/latest/download/checksums.txt
-
Verify binary:
sha256sum -c checksums.txt
-
Verify signature (if available):
cosign verify-blob --certificate-identity="*" --certificate-oidc-issuer="*" \ --signature cloudbridge-client-linux-amd64.sig cloudbridge-client-linux-amd64
config-example.yaml- Configuration templateconfig-production.yaml- Production template for edge.2gc.ruconfig.yaml- Your configuration (create from example)
- QUIC - Primary high-performance transport
- WebSocket - Fallback for restricted networks
- gRPC - API communication
- WireGuard - L3-overlay network support
- Per-peer IPAM - Automatic IP address allocation for each peer
- WireGuard Integration - Ready-to-use WireGuard configurations
- Tenant Isolation - Complete network isolation between tenants
- Hybrid Architecture - SCORE for tenant subnets, local DB for per-peer IPs
- Event-driven Sync - Real-time configuration updates
make build # Current platform
make build-all # Cross-platform
make build-windows # Windows- Go 1.25+
- Valid JWT token from CloudBridge Relay
- Network access to relay server
Copyright 2025 2GC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.