Skip to content

Comments

Remove deprecated routes#8982

Merged
aduth merged 1 commit intomainfrom
aduth-rm-legacy-2fa-route
Aug 17, 2023
Merged

Remove deprecated routes#8982
aduth merged 1 commit intomainfrom
aduth-rm-legacy-2fa-route

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Aug 11, 2023

🛠 Summary of changes

Removes route configurations associated with previous renames that had kept a redirect in place for initial deploy, but hadn't followed-up with removal of the redirect.

Follow-up to:

I checked traffic in production.log for the affected paths and there's essentially no traffic for them in the past week. What little traffic exists appears to be largely vulnerability probing (URLs containing strange query parameters, "xss" and the like).

📜 Testing Plan

Expect that valid URLs are still reachable.

@aduth aduth force-pushed the aduth-rm-legacy-2fa-route branch from 0195614 to 8e27728 Compare August 11, 2023 14:57
Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for doing this cleanup. I wasn't sure how long to keep the deprecated routes in place, and checking the logs is a good way to do it.

Copy link
Contributor

@theabrad theabrad left a comment

Choose a reason for hiding this comment

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

LGTM

@aduth
Copy link
Contributor Author

aduth commented Aug 11, 2023

I wasn't sure how long to keep the deprecated routes in place, and checking the logs is a good way to do it.

Yeah, my assumption would generally be that authenticated routes would only need to have some backwards-compatibility for the deploy during which the rename is happening, since we don't "remember" the URL during sign-in to need to be able to support linking from third-parties (LG-3737).

There are a handful of other redirects that are pretty old that I might have thought were meant to be some "entrypoint" that we wanted to continue supporting, but even these I'm not sure are necessary / receive any traffic. Some like https://secure.login.gov/profile/reactivate are just straight-up broken already.

get '/profile', to: redirect('/account')
get '/profile/reactivate', to: redirect('/account/reactivate')
get '/profile/verify', to: redirect('/account/verify')

@aduth
Copy link
Contributor Author

aduth commented Aug 11, 2023

There are a handful of other redirects that are pretty old that I might have thought were meant to be some "entrypoint" that we wanted to continue supporting, but even these I'm not sure are necessary / receive any traffic. Some like https://secure.login.gov/profile/reactivate are just straight-up broken already.

cc @zachmargolis in case you have opinions / can even remember from #1407 😄

@aduth
Copy link
Contributor Author

aduth commented Aug 11, 2023

I'm going to put this back in draft because removing the routes has revealed that some views still use the legacy path helpers, so we'll want to update those in a separate deploy.

@aduth
Copy link
Contributor Author

aduth commented Aug 11, 2023

I'm going to put this back in draft because removing the routes has revealed that some views still use the legacy path helpers, so we'll want to update those in a separate deploy.

Separate changes in #8990

@aduth
Copy link
Contributor Author

aduth commented Aug 15, 2023

I'll need to rebase this, but it should be unblocked now as #8990 is live in production as of today's release.

changelog: Internal, Code Quality, Remove deprecated (renamed) URL definitions
@aduth aduth force-pushed the aduth-rm-legacy-2fa-route branch from b93dbbd to 32ce010 Compare August 16, 2023 15:43
@aduth aduth marked this pull request as ready for review August 16, 2023 15:43
@zachmargolis
Copy link
Contributor

cc @zachmargolis in case you have opinions / can even remember from #1407 😄

I do not remember! Looks like I was worried about preserving old links, but since you checked the logs and these aren't used, sounds like we can remove!

@aduth aduth merged commit 807b15c into main Aug 17, 2023
@aduth aduth deleted the aduth-rm-legacy-2fa-route branch August 17, 2023 14:08
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.

5 participants