Skip to content

ARSN-671: route the notification-destination requests - #2744

Merged
bert-e merged 3 commits into
development/8.7from
improvement/ARSN-671-route-notification-destination
Nov 4, 2026
Merged

bert-e merged 3 commits into
development/8.7from
improvement/ARSN-671-route-notification-destination

Conversation

@anurag4DSB

@anurag4DSB anurag4DSB commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Teaches Arsenal's request router about the five new tenant destination calls, so that CloudServer can serve them later.

Intent: why does this change exist?

CloudServer serves the five tenant destination calls at the service root, addressed by a name query parameter, and Arsenal's routing does not know them: today a service-root PUT, POST or DELETE gets 405, and GET /?notification-destination lists buckets.

System impact: what's affected, including downstream?

No behavior changes unless the caller of routes() sets the new optional notificationDestinationRoutes: true, and nothing sets it outside the D1 epic branches. CloudServer will set it from its D1 flag, in the change that defines the five handlers, because its callApiMethod calls the handler with no existence check. The existing route files are untouched; the new behavior lives in its own routeNotificationDestination.ts.

Preserved behavior: what explicitly stays the same?

With the field unset or false, every request keeps today's answer, which the tests check for the service root and for a bucket request with the query. With it on, OPTIONS keeps its CORS answer, website endpoints keep their own route, and a bare GET / still lists the buckets.

Intended change: what's different after this PR?

With the field on, PUT|POST|GET|DELETE /?notification-destination&name=<name> reach notificationDestinationCreate|Update|Get|Delete (200, 200, 200 with XML, 204), and a GET with no name reaches notificationDestinationList. A request that also names a bucket or a key gets MethodNotAllowed, so a misaddressed call never reaches bucketDelete or another bucket call; this holds while the decision on bucket-style host names stays open, and accepting them later breaks no client. A missing or empty name gets InvalidArgument before authorization, so the wildcard resource built without a name is authorized only for the list.

Verification: how do we know this worked, or how would we know if it didn't?

New route tests fail on the test commit and pass with the code, including a production-mode test that a non-boolean value stays off; the full unit suite passes, as do tsc, lint and the prettier check. As on the base, yarn test exits 1 after the open-handle warning of requestUtils.spec.js.

The bucket notification destination calls are served at the service
root with the notification-destination query. With the routes option
off or unset, every such request keeps today's answer. With it on, the
five calls reach their API methods, and a bucket, a key, a website
host, a missing name or OPTIONS get the answers of the plan. The tests
of the new route fail on the base, because it does not exist yet.
Add the optional notificationDestinationRoutes field to the routes
params. Only when a caller sets it to true, routes() sends a
service-root request with the notification-destination query, on a
REST endpoint and with any method but OPTIONS, to the new
routeNotificationDestination. The existing route files do not change.

The new route rejects a bucket or a key with MethodNotAllowed, so a
misaddressed call never reaches a bucket call, and a missing name with
InvalidArgument before authorization, so that the wildcard resource is
only ever authorized for the list.
@codecov

codecov Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.59%. Comparing base (ef187af) to head (84255fa).
⚠️ Report is 12 commits behind head on development/8.7.

Additional details and impacted files
@@                 Coverage Diff                 @@
##           development/8.7    #2744      +/-   ##
===================================================
+ Coverage            75.50%   75.59%   +0.09%     
===================================================
  Files                  226      227       +1     
  Lines                18641    18678      +37     
  Branches              3897     3909      +12     
===================================================
+ Hits                 14074    14120      +46     
+ Misses                4562     4553       -9     
  Partials                 5        5              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@anurag4DSB
anurag4DSB marked this pull request as ready for review November 3, 2026 12:03
@anurag4DSB
anurag4DSB requested review from a team, nicolas2bert and tmacro November 3, 2026 12:05
D1 Arsenal work ships as the new 8.7 minor line, so the package
version on development/8.7 moves from 8.6.1 to 8.7.0.
@anurag4DSB

Copy link
Copy Markdown
Contributor Author

Just added a package.json bump so not asking for re-review

@anurag4DSB

Copy link
Copy Markdown
Contributor Author

/approve

Base automatically changed from improvement/ARSN-668-bucketnotif-iam-actions to development/8.7 November 4, 2026 10:14
@bert-e

bert-e commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Hello anurag4dsb,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval ⭐
/bypass_build_status Bypass the build and test status ⭐
/bypass_commit_size Bypass the check on the size of the changeset TBA ⭐
/bypass_incompatible_branch Bypass the check on the source branch prefix ⭐
/bypass_jira_check Bypass the Jira issue check ⭐
/bypass_peer_approval Bypass the pull request peers' approval ⭐
/bypass_leader_approval Bypass the pull request leaders' approval ⭐
/bypass_source_branch_lineage Bypass the cross-branch contamination check ⭐
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request.
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@bert-e

bert-e commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

In the queue

The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.

The changeset will be merged in:

  • ✔️ development/8.7

The following branches will NOT be impacted:

  • development/6.4
  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.1
  • development/8.2
  • development/8.3
  • development/8.4
  • development/8.5
  • development/8.6

This pull request does not target the following hotfix branch(es) so they
will be left untouched:

  • hotfix/7.10.1
  • hotfix/7.10.47
  • hotfix/7.70.25
  • hotfix/7.10.4
  • hotfix/7.4.8
  • hotfix/7.5.0
  • hotfix/7.4.7
  • hotfix/7.9.0
  • hotfix/7.10.57
  • hotfix/7.4.1
  • hotfix/7.10.36
  • hotfix/7.4.5
  • hotfix/6.4.7
  • hotfix/7.10.29
  • hotfix/7.2.0
  • hotfix/7.7.0
  • hotfix/8.2.48
  • hotfix/7.6.0
  • hotfix/7.70.14
  • hotfix/7.10.3
  • hotfix/7.70.20
  • hotfix/7.70.4
  • hotfix/7.8.0
  • hotfix/7.10.46
  • hotfix/7.4.9
  • hotfix/7.10.0
  • hotfix/7.4.2
  • hotfix/7.4.6
  • hotfix/7.10.31
  • hotfix/7.4.3
  • hotfix/7.4.0
  • hotfix/7.4.10
  • hotfix/7.4.4
  • hotfix/7.10.43
  • hotfix/7.10.2

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of the admin team will
contact you to help resolve the matter.

IMPORTANT

Please do not attempt to modify this pull request.

  • Any commit you add on the source branch will trigger a new cycle after the
    current queue is merged.
  • Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of the admin team now.

The following options are set: approve

@bert-e

bert-e commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/8.7

The following branches have NOT changed:

  • development/6.4
  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.1
  • development/8.2
  • development/8.3
  • development/8.4
  • development/8.5
  • development/8.6

Please check the status of the associated issue ARSN-671.

Goodbye anurag4dsb.

@bert-e
bert-e merged commit 4430895 into development/8.7 Nov 4, 2026
12 checks passed
@bert-e
bert-e deleted the improvement/ARSN-671-route-notification-destination branch November 4, 2026 10:26
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.

4 participants