Airflow's UI whitelist is managed in Cloud Armor. In order add or remove an IP from the Airflow UI whitelist you will need to edit the
security policy. To view the current whitelist run the following command:
You should see an output similar to the yaml below, the current whilelisted IPs will be listed under
To update the whitelist you can update it in the GCP console here, or run the following command:
You must include all current and new
srcIpRanges in the update command. The value supplied to the
--src-ip-ranges flag must be in CIDR notation and in a CSV list. See the official GCP documentation for more information.
Once your changes are made it can take a few minutes for the changes to be reflected.