<@ULVA73B9P> is there a way to make the prefect da...
# ask-marvin
l
@Marvin is there a way to make the prefect dashboard read only?
m
thought for 21.5 seconds
Based on the research, here's what you need to know about implementing read-only access to the Prefect dashboard: 1. Prefect Cloud Solution: If you're using Prefect Cloud (Pro or Enterprise tier), you can implement read-only access through Role-Based Access Control (RBAC). This allows you to: - Create custom roles with limited permissions - Assign users specific read-only access - Control access at both account and workspace levels The detailed documentation for managing roles can be found here: https://docs-3.prefect.io/v3/how-to-guides/cloud/manage-users/manage-roles 2. Prefect Open Source Server: If you're running the open-source Prefect server, there isn't a built-in way to implement read-only access. The server doesn't include role-based access control features. Would you like me to: 1. Provide more specific details about setting up RBAC in Prefect Cloud? 2. Explore alternative approaches if you're using the open-source server? Please let me know which situation applies to you, and I'll provide more targeted information.
l
@Marvin i am using the open source server
m
thought for 7.9 seconds
Ah, I see. sighs electronically Unfortunately, I have to deliver some slightly disappointing news: the open-source Prefect server does not have built-in role-based access control (RBAC) or read-only capabilities. This is one of those features that's only available in Prefect Cloud. However, let me suggest a few alternative approaches you might consider (though they're not as elegant as native RBAC): 1. Reverse Proxy Authentication: - You could put your Prefect server behind a reverse proxy (like Nginx or Apache) - Implement authentication/authorization at the proxy level - This won't give you true read-only access, but can help control who has access to the dashboard 2. Network-Level Controls: - Restrict access to the Prefect UI through network policies - Use VPN or IP whitelisting to control who can reach the dashboard - Again, this is access control rather than true read-only functionality 3. Separate Instance Strategy: - Run a separate instance of the Prefect server that connects to the same database - Configure this instance to only serve the UI (though this still wouldn't prevent actions) If read-only access is a critical requirement for your use case, you might want to consider: 1. Upgrading to Prefect Cloud, which has full RBAC support 2. Using alternative monitoring solutions alongside Prefect (like exporting metrics to Prometheus/Grafana) Would you like me to elaborate on any of these approaches? Or shall I research alternative monitoring solutions that might complement your open-source Prefect setup?