1
0
mirror of https://github.com/google/nomulus synced 2025-12-23 06:15:42 +00:00

Add a GCB script for monitoring ZFA accessibility (#2719)

This doesn't check for correctness (we have other scripts that do that)
but just that the service is available at all (the other scripts do not
do that).

This should, and will, be configured with a scheduled trigger in GCB (for us, in
the domain-registry-dev project) and configuration to send some sort of
pub/sub notification on failure (for us, this is already set up on
domain-registry-dev and it sends messages to the "Domain Registry
Notifications" chat channel.
This commit is contained in:
gbrodman
2025-03-14 16:35:39 -04:00
committed by GitHub
parent 5645b2e218
commit 3cc10bfe0d

View File

@@ -0,0 +1,22 @@
# This runs a simple dig request against the provided ZFA server and TLD
# to verify that the server is up and responding to zone file requests.
#
# This build should be run on a schedule, with pub/sub notifications configured
# so that some sort of alert is fired on failure.
#
# To manually trigger a build on GCB, run:
# gcloud builds submit --config cloudbuild-monitor-zfa.yaml --substitutions \
# _ZFA_SERVER_IP=X.X.X.X,_TLD=gmail
steps:
# Note: the AXFR request should fail because we don't have the key,
# but the request itself should go through
- name: 'ubuntu'
entrypoint: '/bin/bash'
args:
- -c
- |
set -e
apt-get update
apt-get install dnsutils -y
dig @${_ZFA_SERVER_IP} ${_TLD} axfr | grep "Transfer failed"