It appears that there isn't direct documentation or detailed instructions for securing on-premise Prefect instances. However, based on standard practices, here are a few methods to secure your instance and restrict access to the dashboard:
1.
Network Level Security:
-
IP Whitelisting: Restrict access to the Prefect dashboard by only allowing certain IP addresses.
-
VPN: Require users to connect via a VPN to access the Prefect server.
2.
Reverse Proxy with Authentication:
- Use a reverse proxy like Nginx or Apache to front your Prefect server. You can set up basic authentication or integrate with OAuth providers.
3.
Kubernetes:
- If running on Kubernetes, use Kubernetes RBAC to control access and integrate with secrets management systems.
4.
Custom OAuth / SSO:
- Implement an OAuth or SSO solution that suits your organization’s needs and integrates with your Prefect server.
References:
-
Host a Prefect server instance
-
Object Access Control Lists
These steps involve typical methods for securing web applications and should provide a good starting point for securing your on-premise Prefect dashboard. If our findings change or if we gather more specific information, we will update this response.