Palo Alto Panorama gateway proxy using FastAPI.
This project implements a gateway that authenticates users, issues API keys, validates incoming XML requests against an allowlist of XPath expressions and allowed operations, forwards allowed requests to a backend Panorama 10.2 firewall, and returns responses.
It includes tests that spin up the app using TestClient and an HTTPX async client with respx to mock backend Panorama responses.
Instructions:
- Use a Python 3.10+ virtualenv.
- Install dependencies from requirements.txt.
- Run tests with pytest.