{# Adapted from packages/web/src/governor_web/templates/configurations/new.html @ 19455c57c5a9 Stripped to the single difference governor-audit cares about: GCP project + BigQuery region as plain text inputs. No manifest source picker, no GCS bucket picker, no GitHub repo, no schedule fields, no detection-rule pickers. Submit POSTs to /admin/configurations which runs the same ADC probe + save_config code path the CLI's `init` command runs. #} {% extends "layout.html" %} {% block content %}

Setup

Configure Audit Target

Set the GCP project and BigQuery region governor-audit will scan. Submitting runs one read-only INFORMATION_SCHEMA.SCHEMATA query against your project to verify Application Default Credentials work.

{% if errors and errors.get('_general') %}
{{ errors['_general'] }}
{% endif %} {% if active_principal %}
Signed in as {{ active_principal }} · governor-audit will use these gcloud Application Default Credentials.
{% else %}
Run gcloud auth application-default login in your terminal first, then reload this page. governor-audit reads ADC; no service-account JSON, no GitHub auth, no GCS bucket.
{% endif %} {% if discovery_error %}
{{ discovery_error }}
{% endif %}
{% if gcp_projects %} {% for project in gcp_projects %} {% endfor %} {% endif %}

{% if gcp_projects %} Pick from the list (sourced from your gcloud ADC) or type any project ID. Manual entry always works. {% else %} Must match the GCP project ID grammar (^[a-z][-a-z0-9]{4,28}[a-z0-9]$). {% endif %}

{% if errors and errors.get('gcp_project_id') %}

{{ errors['gcp_project_id'] }}

{% endif %}

BigQuery location slug — e.g. us, eu, australia-southeast1. Lowercased on save.

{% if errors and errors.get('bigquery_region') %}

{{ errors['bigquery_region'] }}

{% endif %}

~2s — runs one INFORMATION_SCHEMA.SCHEMATA query against your project.

{% endblock %}