Skip to content

Add hostname allowlist and revoked cert hash columns to Registrar - #3249

Merged
anomaly2104 merged 4 commits into
google:masterfrom
anomaly2104:epp-cert-hostname-schema
Oct 27, 2026
Merged

anomaly2104 merged 4 commits into
google:masterfrom
anomaly2104:epp-cert-hostname-schema

Conversation

@anomaly2104

@anomaly2104 anomaly2104 commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Schema-only change for authenticating EPP client certificates by hostname instead of by pinned fingerprint (go/epp-cert-hostname-auth). Adds two nullable text[] columns to Registrar:

  • allowed_epp_client_certificate_hostnames: hostnames a registrar has authorized; a CA-issued certificate naming one of them in its SAN is accepted at EPP login.
  • revoked_client_certificate_hashes: SHA-256 hashes of certificates the registrar has revoked; rejected at login regardless of mechanism.

Nothing reads the columns yet; the entity and login changes follow in a separate PR once this has been deployed, per the two-PR schema rule in db/README.md.

TAG=agy
CONV=2d7c1c2a-4714-4670-84a9-9c5670f8afc3
BUG=http://b/573177136


This change is Reviewable

Schema-only change for authenticating EPP client certificates by hostname
instead of by pinned fingerprint (go/epp-cert-hostname-auth). Adds two
nullable text[] columns to Registrar:

- allowed_epp_client_certificate_hostnames: hostnames a registrar has
  authorized; a CA-issued certificate naming one of them in its SAN is
  accepted at EPP login.
- revoked_client_certificate_hashes: SHA-256 hashes of certificates the
  registrar has revoked; rejected at login regardless of mechanism.

Nothing reads the columns yet; the entity and login changes follow in a
separate PR once this has been deployed, per the two-PR schema rule in
db/README.md.

TAG=agy
CONV=2d7c1c2a-4714-4670-84a9-9c5670f8afc3
BUG=http://b/573177136

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements a database schema migration (PR #1 of the 2-PR split mandate) by adding two new columns, allowed_epp_client_certificate_hostnames and revoked_client_certificate_hashes, to the Registrar table. The changes include the new Flyway migration script (V232), an updated Flyway index, updates to the golden schema file, and regenerated ER diagrams. No Java ORM changes are included, adhering to the database consistency guidelines. There are no review comments to evaluate, and I have no additional feedback to provide.

@anomaly2104
anomaly2104 requested a review from CydeWeys October 15, 2026 04:12
@anomaly2104
anomaly2104 enabled auto-merge October 15, 2026 11:49

@gbrodman gbrodman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gbrodman reviewed 5 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on CydeWeys and ptkach).

@anomaly2104
anomaly2104 disabled auto-merge October 27, 2026 08:11
@anomaly2104
anomaly2104 added this pull request to the merge queue Oct 27, 2026
Merged via the queue into google:master with commit c047d33 Oct 27, 2026
16 checks passed
@anomaly2104
anomaly2104 deleted the epp-cert-hostname-schema branch October 27, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants