Skip to content

ra/sa: Remove deprecated UpdateRegistration methods#7911

Merged
jprenken merged 15 commits intomainfrom
updatereg-3
Jan 14, 2025
Merged

ra/sa: Remove deprecated UpdateRegistration methods#7911
jprenken merged 15 commits intomainfrom
updatereg-3

Conversation

@jprenken
Copy link
Copy Markdown
Contributor

@jprenken jprenken commented Jan 4, 2025

This is the final stage of #5554: removing the old, combined UpdateRegistration flow, which has been replaced by UpdateRegistrationContact and UpdateRegistrationKey. Those new functions have their own tests.

The RA's UpdateRegistration function no longer has any callers (as of #7827's deployment), so it is safely deployable to remove it from the SA too, and its request from gRPC.

Fixes #5554

@jprenken jprenken marked this pull request as ready for review January 7, 2025 19:06
@jprenken jprenken requested a review from a team as a code owner January 7, 2025 19:06
@jprenken jprenken requested a review from aarongable January 7, 2025 19:06
Copy link
Copy Markdown
Contributor

@aarongable aarongable left a comment

Choose a reason for hiding this comment

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

LGTM with one comment on the sa test.

Comment thread sa/sa_test.go Outdated
jsha and others added 8 commits January 9, 2025 22:22
For now, run alongside the `fpm` build and create `boulder-newpkg-*`
packages. If these packages work, we'll eliminate the `fpm` build.
Also move the ShutdownStopTimeout stanza next to timeout, and make the
comment the same across the multiple components. In the future we may
want to factor out some of the common config fields into a struct that
can be embedded.
Remove the gates for the paused and revokedCertificates tables, which
are now live and in `config`. Refine the documentation for the
orderModelv2 migration.
Add mustTime and mustTimestamp, each of which parses a time in a simple
format and panics if it cannot be parsed.

Also, make the intent of each check in the GetRevokedCerts tests a
little clearer by starting with a basicRequest, and then defining
variations in terms of that request.

Fix the "different issuer" case in `TestGetRevokedCerts`, which was not
actually setting a different issuer.
There were a bunch of places that had `TODO(#7153)`; that issue is now
closed, so let's tidy up.
Feedback from SRE was to just go straight to the new packaging.

Also, fix the Architecture field of the .deb to be amd64 (Debian
requires this specific value), and check that we are building on x86_64
OR amd64.
@jprenken jprenken requested a review from aarongable January 10, 2025 06:24
@beautifulentropy beautifulentropy self-requested a review January 10, 2025 20:47
Comment thread sa/sa_test.go
jprenken and others added 2 commits January 10, 2025 21:11
Co-authored-by: Aaron Gable <aaron@letsencrypt.org>
aarongable
aarongable previously approved these changes Jan 13, 2025
Copy link
Copy Markdown
Member

@beautifulentropy beautifulentropy left a comment

Choose a reason for hiding this comment

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

You have a couple of conflicts with main, happy to re-ack once those are fixed.

Copy link
Copy Markdown
Contributor

@aarongable aarongable left a comment

Choose a reason for hiding this comment

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

LGTM. Make sure you spell things out a bit more in the PR description (particularly that you're deleting both implementations and gRPC methods, in both the RA and the SA, and that it's safe to do so even though the RA method calls the SA method because nothing calls the RA method anymore), and remove the "DO NOT MERGE" line from the final commit message because it's no longer relevant at that point.

@jprenken jprenken merged commit 2e1f733 into main Jan 14, 2025
@jprenken jprenken deleted the updatereg-3 branch January 14, 2025 21:54
jprenken added a commit that referenced this pull request Jul 7, 2025
We stopped actively using `LockCol` in the `registrations` table in #7911, and `DEFAULT`ed inserts to 0 in #7935.

Part of #7934
jprenken added a commit that referenced this pull request Jul 8, 2025
We stopped actively using `LockCol` in the `registrations` table in
#7911, and `DEFAULT`ed inserts to 0 in #7935.

Part of #7934
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.

Simplify RA and SA Registration-modifying codepaths

4 participants