Hi Team, I am trying to enable option of metadata ...
# troubleshoot
p
Hi Team, I am trying to enable option of metadata access token from Datahub UI. I included this piece in values.yaml and upgraded.
Copy code
global:        
    datahub:
        metadata_service_authentication:
            enabled: true
Still I get
"Token based authentication is currently disabled. Contact your DataHub administrator to enable this feature."
Datahub GMS version 0.8.41. Can anybody suggest what I might be doing wrong?
b
Need to enable platform privilege for tokens (2 privileges iirc) for everyone
p
Where can I do this? I can't see the option to generate metadata even from the root datahub user.
b
Click on the gear icon - privileges
p
Have already done this. Still can't see it to be enabled.
b
@incalculable-ocean-74010
i
Please do not cross post messages @purple-analyst-83660, makes it very hard to keep track.
As mentioned in the other thread, can you confirm whether the frontend & GMS containers have the
METADATA_SERVICE_AUTH_ENABLED
environment variable set to
true
?
p
@incalculable-ocean-74010 Apologies for posting it at two places. Will keep in mind in future. No, When I describe the frontend and gms pod I don't see
METADATA_SERVICE_AUTH_ENABLED
at all in the result. Also when I execute inside the pod and see environment variable, I dont see it to be true.
i
Then that is the issue, you need to deploy DataHub with the values.yaml that you specified such that the env var gets sets
use
--dry-run
when running the helm command to check what helm will do
p
Should the environment variable in dry run look like this, if its set?
That fixed it! Thanks for help. Really appreciate it.
i
Yes, that’s it