Does adding auth and an authenticated user to melt...
# announcements
p
Does adding auth and an authenticated user to meltano’s ui automatically enable and add that user to airflow’s webserver config and enable auth as well, or are those two steps I need to do?
d
@paul_blankley Meltano doesn't do anything fancy with Airflow besides apply these settings when you run it through
meltano invoke airflow ...
: https://gitlab.com/meltano/meltano/blob/master/src/meltano/core/bundle/discovery.yml#L846-860, so you'd need to set up users and auth yourself. Meltano config for
airflow
directly maps to Airflow's own
airflow.cfg
config format, so if you'd like to set the
webserver.authenticate
setting to
true
(per https://airflow.apache.org/docs/stable/security.html#web-authentication), that'd look like:
Copy code
orchestrators:
- name: airflow
  config:
    webserver:
      authenticate: true
Those settings will only be applied when you run the plugin through
meltano invoke airflow
, of course. To create users, it looks like you'd want to use
meltano invoke airflow create_user ...
(per https://airflow.apache.org/docs/stable/cli-ref.html#create_user)