How To Run Ingestion Pipeline Via CLI with Basic Auth
Out of the box, OpenMetadata comes with a Username & Password Login Mechanism.
Basic Authentication Basic Authentication
0.12.1 OpenMetadata has changed the default
Basic auth, So to run any ingestion pipeline from CLI you will have to pass the
authProvider in the
How to get the JWT token
Go to the
settingspage from the navbar and then scroll down to the
IntegrationsSection. Click on the
Botsand you will see the list of bots, then click on the
You will be redirected to the
ingestion-botdetails page. there you will get the JWT token, click on the copy button and copy the JWT token.
Alright, now you have the JWT token, let see how to add that into the workflow config.
How to add JWT token into the workflow config
Now Past the copied JWT Token into your pipeline
securityConfig, So your final workflow config will look like this.
AuthProvider Should be openmetadata i.e authProvider: openmetadata
workflowConfig: openMetadataServerConfig: hostPort: http://localhost:8585/api authProvider: openmetadata securityConfig: jwtToken: 'eyJraWQiO...'
Now you can run the pipeline by running.
metadata ingest -c ./pipeline_name.yaml