How to whitelist certain IPs to the application?

Here are the instructions to set up the IP whitelisting for your app via curl

Usage

To use the Qovery app advanced settings API:

  1. check out our API documentation.
  2. Create an API token.

:warning: Keep secured your API token - never share it with anyone.

Whitelist IP addresses

To whitelist only some IPs like:

  • 1.1.1.1
  • 42.42.42.42
  • 11.11.11.11

You can run the following CURL command:

curl -X PUT -H 'Authorization: Token <your API token>' -H 'Content-type: application/json' \
-d '{"network.ingress.whitelist_source_range": "1.1.1.1,42.42.42.42,11.11.11.11"}' 
"https://api.qovery.com/application/:appId/advancedSettings"

:warning: Then redeploy your application to apply the change.

The default value is: 0.0.0.0/0, which means all the IPs are whitelisted.

Your Application ID (appId) is the last ID in your console.qovery.com URL. E.g. for https://console.qovery.com/platform/organization/141c07c8-0dd9-4623-983b-3fdd61867777/projects/4ac1185f-4b7c-4f12-95b6-0690f796bbbb/environments/1109c4d2-ffbb-49d6-9826-f5a7ca3a8888/applications/3cc850c6-cc4f-46bc-ad05-c90f7b597333/summary the Organization ID is 3cc850c6-cc4f-46bc-ad05-c90f7b597333


Here is a small tutorial for Qovery V3

1 Like