Sauce Connect Proxy Architecture
This document provides an overview of Sauce Connect Proxy architecture to assist customer network and security engineering teams to better understand how it works.
What You'll Need
- If you're new to Sauce Connect, we recommend reviewing the Sauce Connect Proxy overview documentation.
From the Sauce Labs side, the Sauce Connect system includes the following components:
- Sauce Connect client
- Sauce Connect server
- Sauce Connect REST API server
- Tunnels Web UI
Here is an overview of how these components interact with the user environment:
Sauce Connect Proxy Client
The client (also known as SC) is distributed as a single binary that contains several distinct components. These include:
- SC Client controller: the “brain” of the SC client. It issues requests to the Sauce Labs REST API, starts all the other included components and ensures that everything is working as expected.
- KGP Client: the client side implementation of KGP, Sauce Labs proprietary protocol.
- HTTP Proxy: this contains a non-caching HTTP proxy that sends HTTP requests coming from tests that run on virtual machines (VMs) or devices on the Sauce Labs infrastructure to the website or app that is hosted inside the user’s firewall (either on an intranet or a local machine).
Sauce Connect Proxy Server
The server is a VM (or container) running in Sauce Labs data centers and it includes the following components:
- Tunnel VM Controller: this is the logic that is responsible for configuring the VM, making sure all components are functional, and reporting back to other internal services.
- KGP Server: the server side implementation of KGP, Sauce Labs proprietary protocol.
- HTTP Proxy: off-the-shelf HTTP proxy that is responsible for sending requests from tests running in Sauce Labs VMs or devices to the KGP Server. Note that SSL traffic is “bumped” by default. This can be disabled.
Sauce Labs REST API
The Sauce Labs REST API allows the Sauce Connect Proxy Client (or any authenticated client) to start and stop tunnels and/or get information about existing tunnels. For more information, refer to the Sauce Connect Proxy API documentation.
Tunnels Web UI
If you're executing tests through Sauce Connect Proxy, you'll be able to see all information about the tunnels you're running through the web UI (log in to Sauce Labs and go the Tunnels page).