Sirius Scan uses API key authentication to secure REST API requests. All endpoints (except the health check at /health) require a valid API key.
Sirius supports two types of API keys:
SIRIUS_API_KEY environment variable when deploying Sirius. This key is checked first on every request.Include your API key in the X-API-Key header of your HTTP requests:
curl -X GET "http://localhost:9001/host" \
-H "X-API-Key: YOUR_API_KEY"
Set the infrastructure API key when deploying Sirius:
export SIRIUS_API_KEY=your_api_key
curl -X GET "http://localhost:9001/host" \
-H "X-API-Key: $SIRIUS_API_KEY"
The following endpoints do not require an API key:
GET /health -- service health check| Status Code | Description |
|---|---|
| 200 | Success - Request authenticated successfully |
| 401 | Unauthorized - Invalid or missing API key |
{
"error": "Invalid API key"
}