casey
06/04/2021, 5:42 PMdouwe_maan
06/04/2021, 5:45 PMdouwe_maan
06/04/2021, 5:45 PMIf you will be running Meltano UI behind a front-end (reverse) proxy that will be responsible for SSL termination (HTTPS), it is recommended that you enable the `ui.session_cookie_secure` setting so that session cookies used for authentication are only sent along with secure requests.
You may also need to change the `ui.forwarded_allow_ips` setting to get Meltano UI to realize it should use theURL scheme rather thanhttpsin the URLs it builds.http
casey
06/04/2021, 5:45 PMdouwe_maan
06/04/2021, 5:46 PMX-Forwarded-Proto: https header?casey
06/04/2021, 5:47 PMcasey
06/04/2021, 8:25 PMtcpdump in the container shows what the GCP docs state: that the GCP load balancer adds that header:
X-Forwarded-For: 198.133.8.30, 35.208.200.11
X-Forwarded-Proto: httpsdouwe_maan
06/04/2021, 8:27 PMdouwe_maan
06/04/2021, 8:27 PMui.forwarded_allow_ips setting isn't sticking for some reasoncasey
06/04/2021, 8:29 PMcasey
06/04/2021, 8:31 PM"MELTANO_PROJECT_READONLY",
"MELTANO_DISABLE_TRACKING",
"MELTANO_DATABASE_URI",
"MELTANO_UI_SESSION_COOKIE_SECURE"
"MELTANO_UI_SERVER_NAME"
"MELTANO_UI_FORWARDED_ALLOW_IPS"douwe_maan
06/04/2021, 8:33 PMmeltano config meltano shows ui.forwarded_allow_ips as * ?casey
06/04/2021, 8:46 PM"forwarded_allow_ips": "127.0.0.1", even though, in meltano.yml, it's an asterisk:
root@ledp-vm:/project# grep forwarded meltano.yml
forwarded_allow_ips: '*'
Should I not be quoting the asterisk?douwe_maan
06/04/2021, 8:46 PMdouwe_maan
06/04/2021, 8:46 PMforwarded_allow_ips at the top level of meltano.yml, or nested under ui:?douwe_maan
06/04/2021, 8:47 PMui: , or with ui. as the prefix on that linecasey
06/04/2021, 8:48 PMdouwe_maan
06/04/2021, 8:48 PMcasey
06/04/2021, 8:48 PMuidouwe_maan
06/04/2021, 8:48 PMmeltano config meltano list, I think it'll show up under "Custom" settings at the bottomdouwe_maan
06/04/2021, 8:48 PMcasey
06/04/2021, 8:50 PMui...
ui.workers [env: MELTANO_UI_WORKERS, WORKERS, WEB_CONCURRENCY] current value: 4 (default)
ui.forwarded_allow_ips [env: MELTANO_UI_FORWARDED_ALLOW_IPS, FORWARDED_ALLOW_IPS] current value: '127.0.0.1' (default)
ui.readonly [env: MELTANO_UI_READONLY, MELTANO_READONLY] current value: False (default)casey
06/04/2021, 8:50 PMdouwe_maan
06/04/2021, 8:50 PMcasey
06/04/2021, 9:00 PMdouwe_maan
06/04/2021, 9:03 PM