Snyk Broker is an open-source tool, that can act as a proxy between Snyk and integrations including:
- Your Source Code Management (SCM) system on-premise platforms.
- Your publically-accessible Git-based repositories, allowing you to view and control Snyk activity in those repositories for increased data security.
- Your on-premise Jira installation.
- Artifactory for open source registry or container registry integrations.
Snyk Broker is available to Enterprise and Pro customers. See Pricing plans for more details.
Snyk Broker allows you to:
- Keep sensitive data such as your access tokens inside your private network, never sharing that information with Snyk.
- Provide controlled access to the network by Snyk, limiting the files Snyk can access, and the actions that Snyk can perform.
Snyk Broker has a client and a server component:
- Broker client: a Docker image deployed in your infrastructure.
- Broker server: running on Snyk SaaS backend
All data, both in transit and at rest, is encrypted. Communication between the client and server takes place over a secure WebSocket connection. On startup, it dials out and establishes a two way communication path. It does not require opening incoming ports.
Using inbound and outbound connections
- There is no direct inbound connection from Snyk to the Broker client. The broker client makes an outbound connection to https://broker.snyk.io, which establishes a WebSocket connection to allow communication with the Broker server. This way, there is no need to grant permissions to specific IPs.
- The Broker client initiates the outbound connection to establish the WebSocket. After the websocket is established, that allows inbound requests from Snyk via the WebSocket, with no need to allow inbound connectivity to the world or to Snyk specific IP addresses.
The Broker client maintains an approved data list for inbound and outbound data requests. Only requests included in this approved list are allowed.
The default approved list limits requests as follows:
- Inbound: Snyk.io is only allowed to fetch and view dependency manifest files and the Snyk policy file. No other source code is viewed, extracted, or modified. Additional files (.snyk files) may be checked in to support our patch mechanism and for any ignore instructions included in your vulnerability policy.
- Outbound: Git repo webhooks are set when you configure your Broker setup, to enable automatic Snyk scans triggered when new pull requests or merge events are submitted by your developers. Webhook notifications are delivered to Snyk via the Broker client for only events relevant to Snyk actions (push to branch, pull request opened), and only when the event data also includes a dependency manifest file or a Snyk policy file.
Snyk Broker currently integrates with these Git Repository systems:
Snyk.io fetches and views dependency manifest files to analyze and deliver vulnerability results. To get proper test results and to create Snyk projects, one or more supported manifest files must be present in the tested folder (for integration with CLI), or in the repository (for integration with Git).
See Language support for details of supported manifest files for different languages.