{% extends "setup/layout.html" %} {% block content %}

Step {{ current_step }} of {{ total_steps }}

GCP Authentication

{% if local_mode %}

Governor will use your local Google Cloud credentials to access BigQuery.

{% else %}

Choose your installation mode and how Governor authenticates with Google Cloud.

{% endif %}
{% if local_mode %} {# ── Local mode: auto-select Local Dev + ADC, no choices needed ── #} {% set selected_installation_mode = "local_dev" %} {% set selected_method = "adc" %}

Local development mode

Using your local Google Cloud credentials (gcloud CLI or service account).

{% else %} {# ── Cloud mode: show installation mode + auth method toggles ── #} {% set selected_installation_mode = installation_mode if installation_mode is defined else (state.installation_mode if state and state.installation_mode else "cloud") %}

Installation Mode

{# ── Auth method toggle ── #} {% set selected_method = auth_method if auth_method is defined else "json" %}
{% endif %} {# ── Required roles ── #}

Required IAM Roles

{% if errors and errors.credentials %}
{{ errors.credentials }}
{% endif %} {% if errors and errors.network %}
GCP API unreachable: {{ errors.network }}
{% endif %}
{# ── JSON inputs ── #}
or upload
{# ── ADC notice ── #}
{% if local_mode %}

No key file needed.

Governor uses your local Google Cloud credentials — either application-default credentials from gcloud auth application-default login or the service-account key referenced by GOOGLE_APPLICATION_CREDENTIALS. Ensure the identity has all four IAM roles above.

{% else %}

No key file needed.

Governor uses the service account attached to this Cloud Run service. Ensure it has all four IAM roles above.

Service account: detecting…
{% endif %}
{% endblock %}