1

Yesterday, we set up an airflow environment in the GCP composer. However, when I click on the Airflow web UI link, I get an error 403, with the note:

'403. That's an error.
That's all we know'

I cannot seem to solve the issue. I have tried restarting the airflow environment/server, and also ensure that my ip is added to the web access control, but nothing works.

Can anyone help?

MC7836
  • 84
  • 8
  • Do you have sufficient permissions to access the Web UI? You can find more about access controls to Web UI from here https://cloud.google.com/composer/docs/composer-2/airflow-rbac – Syam Sankar Oct 21 '22 at 02:18
  • I did bullet point 2 under Register users in the Airflow UI. Not sure what else is needed. I got granted as many rights as I could find in the documentation ... – MC7836 Oct 21 '22 at 05:57
  • Can you paste the output of below command? Replace PROJECT_ID with Composer project id and UI_USER with the email id of the user who is trying to access the Web UI `gcloud projects get-iam-policy PROJECT_ID --flatten="bindings[].members" --format='table(bindings.role)' --filter="bindings.members:user:UI_USER"` – Syam Sankar Oct 21 '22 at 07:11

2 Answers2

1

To solve it, in your cloud composer instance, go to environment configuration, next, go to the section Network configuration, and edit the Web server access control by adding your IP address (https://www.ipaddress.my/).

Be sure to follow your organization's policy before doing this.

Andresse Njeungoue
  • 608
  • 1
  • 5
  • 19
0

The end result was adding my ipV6 to the composer airflow environment, and not my ipV4.

MC7836
  • 84
  • 8