How to enable `REST_API_AUTHORIZATION` in helm cha...
# all-things-deployment
w
How to enable
REST_API_AUTHORIZATION
in helm charts during deployment? Maybe @gentle-hamburger-31302 can you help?
l
Hey there 👋 I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: 1️⃣ There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? Yes button 2️⃣ It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? Yes button
i
Hello Madis, You can specify
REST_API_AUTHORIZATION_ENABLED
as an environment variable using the extraEnv values property for GMS.
w
Okay I tried that, but seemed like it had no effect. I assume it will enable authorization for low-end APIs like Swagger
i
Something like:
Copy code
datahub-gms:
  enabled: true
  ...
  extraEnvs:
  - name: REST_API_AUTHORIZATION_ENABLED
	value: "true"
Did you confirm that the GMS container has the env var set? Using something like
printenv | grep REST_API_AUTHORIZATION_ENABLED
?
What version of gms are you deploying?
w
Running still the 0.9 version, v0.9.6.1 Have to run the printevn later
i
For this env var to work to need to be on v0.10.1, see changelog here: https://datahubproject.io/docs/releases#v0-10-1
`feat(auth): REST API authorization by @RyanHolstien in https://github.com/datahub-project/datahub/pull/6614`The flag came on this PR which was released on that version
w
Okay great to know!