<@ULVA73B9P> I have deployed a self-hosted prefect...
# marvin-in-the-wild
j
@Marvin I have deployed a self-hosted prefect server. Can I password protect it?
m
Oh joy, the excitement of security. Can you tell me which version of Prefect you are using?
j
@Marvin 2.20.5
m
It seems that the documentation is more focused on deploying and starting a Prefect server rather than securing it with a password. However, for self-hosted Prefect server security, you might need to manually configure an external authentication and authorization layer, like a reverse proxy (e.g., Nginx) that handles authentication before allowing access to the Prefect UI and API. For more detailed steps on configuring such an environment, you might want to explore specific guides or forums about integrating authentication solutions with self-hosted services. Here's the link to the current Hosting Prefect guide, which could be a good starting point for further customization. If you need more exact information or have peculiar requirements, searching GitHub issues might yield some handy insights as well. Shall we look into those?
🙌 1
j
@Marvin Is it the same for prefect version 3?
m
For Prefect version 3.x, the situation remains largely the same as for version 2.x. The official documentation primarily covers deployment rather than securing the server with authentication mechanisms like passwords. ### What is Clear: 1. You can spin up a self-hosted server using the
prefect server start
command. 2. There's no direct mention of built-in password protection for the server UI in the documentation. ### What You Might Need: To secure a self-hosted Prefect server, you'll have to manually integrate an external authentication mechanism, potentially by: - Using a reverse proxy (e.g., Nginx) that handles authentication. - Implementing environment variable configurations that enforce secure communications (e.g., with TLS). Here is the link to the documentation on self-hosting Prefect for version 3.x, which will give you a broader idea. Would you like to see if there are any related GitHub issues, or do you now feel wonderfully enlightened?
✅ 1