cloud_url and key values can be set as environment variables:
PYRASP_CLOUD_URL: URL to retrieve agent configuration from
PYRASP_KEY: unique key to identify the agent
Connection
Upon connection the pyrasp agent sends a POST request to the specified PYRASP_CLOUD_URL. Format of the JSON content is provided below.
Configuration download
Overview
Configuration file and blacklist are retrieved by the agent through a GET request to the URL specified.
At agent startup the remote configuration URL is displayed.
Format
The response to the request MUST be an application/json body containing the configuration.
The data structure MUST be a dictionary ({})
The JSON configuration MUST be provided in the config key.
Optionaly an initial blacklist can be provided as a dictionary structure in the blacklist key of the response.
The blacklist structure MUST comply with the format detailed in the example below.