openHttpConnection
š Tunneling ā REL-ID SDK Overview
š Purpose
Tunneling in REL-ID SDK enables secure access to remote/internal enterprise services over a trusted channel without requiring direct network exposure (e.g., VPN or public internet). The SDK provides APIs to discover services and establish or terminate access tunnels dynamically.
š Core Concept
REL-ID SDK uses policy-driven service discovery and secure tunneling to connect to backend services via the REL-ID Server. This ensures:
- Zero-trust access enforcement
- Application-level service authorization
- Encrypted traffic across managed tunnels
š Workflow Overview
- š Discover available services using
getAllServices(),getServiceByServiceName()orgetServiceByTargetCoordinate() - š Start access tunnel using
serviceAccessStart()orserviceAccessStartAll() - š°ļø Route traffic through the SDK's secure tunnel
- š Stop tunnel using
serviceAccessStop()orserviceAccessStopAll()
š Service Discovery APIs
š„ getAllServices
getAllServicesRetrieves all services available to the user based on their group, device, and policy.
RdnaClient.getAllServices();š getServiceByServiceName
getServiceByServiceNameRetrieve service details using a registered service name.
RdnaClient.getServiceByServiceName("intranet_service");šÆ getServiceByTargetCoordinate
getServiceByTargetCoordinateLookup a service using a target host and port coordinate.
RdnaClient.getServiceByTargetCoordinate("10.0.0.1", 8080);š Tunneling APIs
šŖ serviceAccessStart
serviceAccessStartStarts a tunnel to a specific service by service ID.
RdnaClient.serviceAccessStart("serviceId");š serviceAccessStop
serviceAccessStopStops the active tunnel to a specific service.
RdnaClient.serviceAccessStop("serviceId");š serviceAccessStartAll
serviceAccessStartAllStarts access to all available services (based on policy).
RdnaClient.serviceAccessStartAll();š serviceAccessStopAll
serviceAccessStopAllStops access to all currently active tunnels.
RdnaClient.serviceAccessStopAll();š¦ Sample Flow
- Discover Services
const services = RdnaClient.getAllServices();- Start Tunnel to a Specific Service
RdnaClient.serviceAccessStart(services[0].serviceId);- Stop Tunnel
RdnaClient.serviceAccessStop(services[0].serviceId);š§ Best Practices
- Always call
serviceAccessStop()orStopAll()after session ends - Use
getAllServices()to build dynamic service access UIs - Respect service policy limits and failure reasons
- Audit tunnel activity for compliance
š Notes
- All tunneling traffic is encrypted and routed via REL-ID policy engine
- Service access may be revoked in real time by the server
- Access is context-aware: device, user, location, and risk-based
š Tunneling in REL-ID enables secure, scalable service access without traditional VPN or exposed firewalls.
Updated 8 months ago
