ancient-wolf-19325
07/16/2024, 10:20 AMauth section in your values file. The baseUrl, clientId, and clientSecret are essential for integrating with an OpenID Connect (OIDC) provider like Azure AD.
Purpose of Authentication
The purpose of this authentication is to secure access to the Flyte UI and APIs, ensuring that only authorized users can interact with the system. This is crucial for maintaining the security and integrity of your data and ML pipelines.
Configuration Options
1. baseUrl: This is the URL of your OIDC provider's authorization endpoint. For Azure AD, it typically looks like https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize.
2. clientId: This is the client ID of the Flyte application registered in your OIDC provider (Azure AD).
3. clientSecret: This is the client secret associated with the Flyte application in your OIDC provider.
Steps to Generate on Azure
1. Register an Application in Azure AD:
- Navigate to Azure Active Directory in the Azure portal.
- Go to "App registrations" and create a new registration.
- Provide a name and set the redirect URI to https://<your-deployment-url>/callback.
- Note down the *Application (client) ID*; this will be your clientId.
2. Generate a Client Secret:
- In the registered app, go to "Certificates & secrets".
- Create a new client secret and note down the value; this will be your clientSecret.
3. Configure Redirect URIs:
- Ensure the redirect URI is set to https://<your-deployment-url>/callback.
4. Update the Helm Values File:
- Fill in the baseUrl, clientId, and clientSecret in your values file.
auth:
enabled: true
enableAuthServer: false
oidc:
baseUrl: "https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize"
clientId: "<your-client-id>"
clientSecret: "<your-client-secret>"
Example Command to Generate bcrypt Hash for Client Secret
pip install bcrypt && python -c 'import bcrypt; import base64; print(base64.b64encode(bcrypt.hashpw("<your-client-secret>".encode("utf-8"), bcrypt.gensalt(6))))'
Apply Configuration
After updating your values file, upgrade your Helm release:
helm upgrade <release-name> flyteorg/flyte-binary -n <your-namespace> --values <your-values-file>.yaml
Verify Deploymentancient-wolf-19325
07/16/2024, 10:20 AM>>Ensure that your Flyte deployment now requires successful login to your IdP to access the UI.Sources: - Flyte Auth Setup - Flyte Auth Configuration Slack Link https://flyte-org.slack.com/archives/CP2HDHKE1/p1721125230.956959 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.