Before you configureUse the Pre-deployment checklist to confirm whether network configuration applies to your deployment.
When to configure allowlists
You might need to update ingress or egress allowlists if any of the following apply:- Your SCM offers security features that limit access to your resources.
- Your SCM is behind a firewall or protected by network restrictions.
- You use a virtual private network (VPN).
- You host your SCM on-premise or in a private network.
Ingress and egress allowlists
Semgrep deployments might require both ingress and egress allowlist updates:- Ingress allowlists control traffic from Semgrep into your infrastructure.
- Egress allowlists control traffic from your infrastructure to Semgrep.
IP addresses
If you are behind a firewall, are using a virtual private network (VPN), or have network restrictions regarding access, you might need to add the following IP addresses to the ingress allowlist and egress allowlist:CloudFront egress IP addresses
You must add CloudFront IP addresses to your egress allowlist. Refer to Locations and IP address ranges of CloudFront edge servers for a list of IP addresses.Semgrep Network Broker
The Semgrep Network Broker facilitates secure access between Semgrep and your private network. Its use can replace allowlisting the IP addresses required for ingress traffic from Semgrep. The Network Broker, however, only facilitates requests from Semgrep to your network. It does not assist with requests originating from your network to Semgrep, including egress traffic from your infrastructure to Semgrep. In other words, the only address you would have to allow inbound iswireguard.semgrep.dev on UDP port 51820, or your tenant’s equivalent. Depending on how restrictive your network is, you might also need to modify your egress allowlist to include the IP addresses listed in IP addresses.
For setup instructions, see Set up the Semgrep Network Broker.
Features that require inbound network connectivity
The following Semgrep features require Semgrep to reach resources in your network:| Feature | Guide |
|---|---|
| On-premise SCM connections | Connect to on-premise orgs and projects |
| PR and MR comments | PR or MR comments |
| Semgrep Managed Scans | Managed Scans overview |
| Semgrep Multimodal | Semgrep Multimodal getting started |