Skip to content

Remove CannedScriptExecutionAction endpoint - #3314

Open
CydeWeys wants to merge 1 commit into
google:masterfrom
CydeWeys:delete-canned-script-action
Open

CydeWeys wants to merge 1 commit into
google:masterfrom
CydeWeys:delete-canned-script-action

Conversation

@CydeWeys

@CydeWeys CydeWeys commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

CannedScriptExecutionAction (/_dr/task/executeCannedScript) is a temporary admin scratchpad hook whose most recent contents were a one-off Gmail Reply-To experiment for b/510340944 (now resolved). Leaving an ad-hoc scratchpad endpoint permanently wired in production accumulates stale experimental code (including an uninjected invoiceReplyToEmailAddress field and a Thread.sleep(1000) call) and attracts repeated external scanner reports against historical versions of the class (e.g., #3011 / #3085).

  • Delete CannedScriptExecutionAction and remove its Dagger binding in RequestComponent and routing entry in routing.txt.
  • Remove the now-unused @Parameter("replyTo") and @Parameter("receiver") providers from BatchModule.
  • Remove the experimental 4-argument GmailClient constructor added for b/510340944 and simplify the now-redundant null check on outgoingEmailAddressWithUsername in GmailClient.toMimeMessage().

BUG= http://b/591119551


This change is Reviewable

CannedScriptExecutionAction (/_dr/task/executeCannedScript) is a
temporary admin scratchpad hook whose most recent contents were a
one-off Gmail Reply-To experiment for b/510340944 (now resolved).
Leaving an ad-hoc scratchpad endpoint permanently wired in production
accumulates stale experimental code (including an uninjected
invoiceReplyToEmailAddress field and a Thread.sleep(1000) call) and
attracts repeated external scanner reports against historical versions
of the class.

- Delete CannedScriptExecutionAction and remove its Dagger binding in
  RequestComponent and routing entry in routing.txt.
- Remove the now-unused @parameter("replyTo") and
  @parameter("receiver") providers from BatchModule.
- Remove the experimental 4-argument GmailClient constructor added for
  b/510340944 and simplify the now-redundant null check on
  outgoingEmailAddressWithUsername in GmailClient.toMimeMessage().

BUG= http://b/591119551
@CydeWeys
CydeWeys requested a review from weiminyu December 4, 2026 21:21
@CydeWeys
CydeWeys enabled auto-merge December 4, 2026 21:21

This branch has not been deployed

No deployments
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.

1 participant