Rustam Salavatov
06/08/2024, 12:14 PMMarvin
06/08/2024, 12:15 PMsh
helm repo add prefecthq <https://prefecthq.github.io/helm>
helm install my-prefect-server prefecthq/prefect-server
2. Configure RBAC and Auth System:
Prefect uses the FastAPI framework which integrates well with OAuth2 for password-based authentication. Therefore, configure your Prefect server for OAuth2 authentication and role-based access control (RBAC).
3. Set up OAuth2 Configuration:
Add OAuth2 configuration inside the Prefect configuration. Create oauth2_config.yaml
.
yaml
# oauth2_config.yaml
oauth2:
client_id: "your-client-id"
client_secret: "your-client-secret"
token_url: "url-to-get-token"
auth_url: "url-to-authenticate"
4. Seal the Password:
Make use of Kubernetes secrets to store sensitive credentials.
sh
kubectl create secret generic prefect-oauth2-secret --from-file=oauth2_config.yaml
5. Deploy Secrets and Configuration:
Adjust your Prefect server deployment to mount the secrets and adjust configuration.
Here is an additional resource you might find useful: Prefect Kubernetes Guide
For more detailed instructions and to check for the latest authentication and RBAC options, always refer to the Prefect documentation.
If you have more specific requirements or run into issues, feel free to ask!