i went to the datahub documentation and got the docker compose file from there, but there is also no option for environment variables there
as you can see, in this compose file, there is no METADATA_AUTH_ENABLE variable
i went to the datahub documentation and got the docker compose file from there, but there is also no option for environment variables there
as you can see, in this compose file, there is no METADATA_AUTH_ENABLE variable
_Please continue to tag RunLLM (e.g <@U06TM7M40RK>) to have it continue generating responses!
To enable token-based authentication in DataHub using the provided Docker Compose file, you need to add the METADATA_SERVICE_AUTH_ENABLED
environment variable manually. Here are the steps to modify your docker-compose-without-neo4j-m1.quickstart.yml
file:
docker-compose-without-neo4j-m1.quickstart.yml
File:
docker-compose-without-neo4j-m1.quickstart.yml
file.METADATA_SERVICE_AUTH_ENABLED
environment variable to both the datahub-gms
and datahub-frontend
services.Here is an example of how to do this:
version: '3.5'
services:
datahub-gms:
image: linkedin/datahub-gms
environment:
METADATA_SERVICE_AUTH_ENABLED: "true"
ports:
- "8080:8080"
datahub-frontend:
image: linkedin/datahub-frontend
environment:
METADATA_SERVICE_AUTH_ENABLED: "true"
ports:
- "9002:9002"
docker-compose down
docker-compose up -d
Generate and Use a Personal Access Token:
Settings
> Access Tokens
> Generate Personal Access Token
.Update Ingestion Recipes:
source:
# source configs
sink:
type: "datahub-rest"
config:
server: 'http://datahub-gms:8080'
token: <your-personal-access-token-here!>
Authorization
header for API requests.curl 'http://localhost:9002/api/gms/entities/urn:li:corpuser:datahub' -H 'Authorization: Bearer <access-token>'
Would you like more detailed steps or assistance with a specific part of this process?
Sources: