<@ULVA73B9P> how do we enable authentication in pr...
# ask-marvin
r
@Marvin how do we enable authentication in prefect 3.0 in kubernetes
m
To enable authentication in Prefect 3.0 on Kubernetes, you can use single sign-on (SSO) through Prefect Cloud. Prefect Cloud's Enterprise plans offer SSO integration with your team's identity provider, which supports protocols like OpenID Connect (OIDC) and SAML 2.0. By configuring SSO, you ensure that Prefect Cloud does not store passwords for accounts managed by your identity provider, and users authenticate using your identity provider for access. For setting up SSO: 1. Within your Prefect Cloud account, navigate to the SSO page. 2. Enter the email domains for SSO in Prefect Cloud and save it. 3. Under "Enabled Domains," select domains and generate a link for configuration. 4. Use this link to configure SSO with your identity provider's configuration dashboard. You might use SAML or OpenID Connect if your provider isn't listed. 5. Once configured, users need to authenticate through your identity provider to access resources. For further details, check the official guide: Prefect 3.0 SSO Configuration. When it comes to Kubernetes and running Prefect flows, you need a Prefect Cloud account, a cloud provider account, and relevant tools installed like Helm and Kubernetes CLI. Detailed Kubernetes setup involves creating a cluster, optionally using Amazon EKS, and potentially creating a container registry for custom images. Here's more on deploying Prefect on Kubernetes: Running Flows on Kubernetes. These configurations allow you to secure your Prefect deployments and ensure that workloads are managed effectively in Kubernetes environments. If you encounter any specific issues with the Prefect-Kubernetes setup, checking the Prefect GitHub repository for issues might be useful, although no particular open issues were found on this topic at the moment.
r
@Marvin without using enterprise edition can i do authentications
m
For non-enterprise users in Prefect 3.0, authentication without using single sign-on (SSO) features is limited. The available options are through Prefect Cloud's default authentication and access controls. This typically involves basic user management from within Prefect Cloud itself, where users create accounts and manage passwords internally. ### Options for Authentication and Access Control in Non-Enterprise Plans: 1. Basic User Management: - Prefect Cloud allows manual creation and management of user accounts where individuals manage their credentials. - You can assign typical roles (like Admin or Member) to provide various levels of access control over resources and workflows in your Prefect Cloud environment. 2. APIs and Personal Access Tokens: - Non-enterprise users can utilize Prefect APIs and personal access tokens to authenticate programmatically. - This requires token generation within Prefect Cloud, which users can include in their applications or scripts to interact with Prefect services securely. Unfortunately, without enterprise features, there is no built-in support for advanced authentication mechanisms like OAuth, OIDC, or SAML, which would require integration with identity providers. For more details on configuring user roles and permissions in Prefect 3.0, it might be necessary to consult Prefect's community forum or support resources, as the documentation focused heavily on enterprise features like SSO.