{# Step 1 — Google account / Application Default Credentials. No state to save here; it's a precondition check. If gcloud ADC isn't configured, show the command + a "Re-check" button that re-runs the probe. #} {% extends "setup/layout.html" %} {% block content %}

Step 1 · Sign in with Google

Governor Audit reads INFORMATION_SCHEMA.JOBS_BY_PROJECT using Application Default Credentials from your local gcloud. No service-account JSON. No browser OAuth.

{% if adc_ok %}

ADC detected

{% if principal %}

Signed in as {{ principal }}.

{% else %}

Application Default Credentials are loaded. (Couldn't read the principal email from the credentials object — that's normal for gcloud auth application-default login user OAuth tokens; the audit will still authenticate as your gcloud-active account at scan time.)

{% endif %}

Wrong account? Run gcloud auth application-default login with a different identity, then refresh.

{% else %}

No active gcloud principal detected

Run this in a terminal, then come back and click Re-check:

gcloud auth application-default login
{% if probe_message %}

{{ probe_message }}

{% endif %}
{% endif %}
{% endblock %}