View Source Cloud IP Matching

By default, several Cloud hosting IP ranges are defined in the Paraxial agent:

  • AWS
  • Azure
  • GCP
  • Digital Ocean
  • Oracle

For each cloud provider, the following are defined:

  1. Cloud provider name
  2. IP prefixes URL
  3. Response to Iptrie function

At some point in the future is may be possible for customers to define a custom data source. The configuration of data center IP fetching is done in the customer app config file:

config :paraxial,
  paraxial_api_key: System.get_env("PARAXIAL_API_KEY"),
  paraxial_url: "https://app.paraxial.io",
  fetch_data_center_ips: true

The default value of fetch_data_center_ips is true.

paraxial-agent-start-and-persistent-term

Paraxial Agent Start and Persistent Term

On agent start, get all the IP prefixes, put into Iptrie with cloud provider as value, then :persistent_term.put({__MODULE__, :dc_ips}, ip_trie) is called.