Skip to content

Remove Orbit remote management - #6320

Draft
francoisferrand wants to merge 1 commit into
development/9.5from
improvement/CLDSRV-1013-remove-remote-management
Draft

francoisferrand wants to merge 1 commit into
development/9.5from
improvement/CLDSRV-1013-remove-remote-management

Conversation

@francoisferrand

Copy link
Copy Markdown
Contributor

The Pensieve/Orbit remote-management flow (poll/push of the config overlay stored in the PENSIEVE bucket, decryption of service account secrets, rebuilding location constraints from the overlay) has been dead for a long time: zenko-operator sets REMOTE_MANAGEMENT_DISABLE and renders locationConfig.json itself, Orbit / Zenko 1.x are unsupported, and S3C never used it. Removing it lets Arsenal drop the pensieve credential utils and patchLocations exports (ARSN-653).

What goes away: config overlay handling, the management agent, the secure channel proxy, the Zenko instance-id user metadata tagging, the overlayVersion / managementAgent config, and node-forge. /_/report no longer returns a config object, since it only carried the overlay version.

What stays:

  • bin/metrics_server.js and a metrics-only websocket client in lib/management, because zenko-operator still deploys cloudserver-metrics-server.
  • The Config setters and the location-constraints-update event, which the location config reload path, bucketPut, the data wrapper and routeBackbeat still use.

Related: BB-896 (Backbeat), ZKOP-617 (removes the operator's secure channel proxy reconciler).

Issue: CLDSRV-1013

The Pensieve/Orbit remote-management flow (polling and pushing the
configuration overlay from the PENSIEVE bucket, decrypting service
account secrets, rebuilding location constraints from the overlay) has
been dead for a long time: zenko-operator sets REMOTE_MANAGEMENT_DISABLE
and renders locationConfig.json itself, Orbit / Zenko 1.x are no longer
supported, and S3C never used it. Keeping it around only forces Arsenal
to keep exporting the pensieve credential utils and patchLocations.

This drops everything that only existed for it: config overlay
handling, the management agent and secure channel proxy, the Zenko
instance-id user metadata tagging, the overlayVersion and
managementAgent config, and the node-forge dependency. The /_/report
endpoint no longer returns a `config` object as it only carried the
overlay version.

The metrics push client (bin/metrics_server.js and its websocket
client in lib/management) is kept, reduced to answering metrics
requests: zenko-operator still deploys cloudserver-metrics-server.

The Config setters (setLocationConstraints, setAuthDataAccounts, ...)
and the location-constraints-update event are kept: they are still used
by the location config reload path, bucketPut, the data wrapper and
routeBackbeat.

The management config unit test happened to reset config.locationConstraints
between suites, which was masking a leak in objectReplicationMD.js
(it replaced the real awsbackend location and then deleted it). That test
now restores the original entries.

Issue: CLDSRV-1013
@bert-e

bert-e commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Hello francoisferrand,

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 Oct 2, 2026

Copy link
Copy Markdown
Contributor

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

itemCounts: getObjectCount,
crrStats: crrStatsObj,
repStatus: results.getReplicationStates,
config: cleanup(config),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

tests/functional/report/checkRoutes.js still has should contain config, which fails now that /_/report has no config. The three should remove ... from config tests also become no-ops. Remove these tests in this PR (they run via yarn ft_management).

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.68%. Comparing base (155f4c0) to head (9cfb3ef).
⚠️ Report is 32 commits behind head on development/9.5.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
lib/management/push.js 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

Files with missing lines Coverage Δ
lib/Config.js 80.81% <ø> (+0.36%) ⬆️
lib/api/apiUtils/object/createAndStoreObject.js 87.34% <ø> (-0.16%) ⬇️
lib/api/initiateMultipartUpload.js 92.00% <ø> (-0.10%) ⬇️
lib/api/objectCopy.js 89.80% <ø> (-0.06%) ⬇️
lib/server.js 88.46% <ø> (+0.03%) ⬆️
lib/utilities/reportHandler.js 69.71% <ø> (-0.15%) ⬇️
lib/management/push.js 0.00% <0.00%> (-30.35%) ⬇️

... and 4 files with indirect coverage changes

@@                 Coverage Diff                 @@
##           development/9.5    #6320      +/-   ##
===================================================
+ Coverage            86.54%   87.68%   +1.13%     
===================================================
  Files                  213      206       -7     
  Lines                14606    14195     -411     
===================================================
- Hits                 12641    12447     -194     
+ Misses                1965     1748     -217     
Flag Coverage Δ
checksums-disabled-tests 35.64% <0.00%> (+0.25%) ⬆️
file-ft-tests 68.12% <0.00%> (-1.88%) ⬇️
file-ft-tests-null-compat 68.59% <0.00%> (-1.96%) ⬇️
kmip-ft-tests 28.21% <0.00%> (+0.04%) ⬆️
mongo-v0-ft-tests 69.29% <0.00%> (-1.90%) ⬇️
mongo-v1-ft-tests 69.29% <0.00%> (-1.85%) ⬇️
multiple-backend 36.41% <0.00%> (+0.26%) ⬆️
s3c-ft-tests-v0 66.11% <0.00%> (+1.05%) ⬆️
s3c-ft-tests-v0-null-compat 66.17% <0.00%> (+1.07%) ⬆️
s3c-ft-tests-v1 66.10% <0.00%> (+1.10%) ⬆️
sur-tests 36.95% <0.00%> (+0.27%) ⬆️
sur-tests-inflights 39.83% <0.00%> (+0.32%) ⬆️
unit 75.16% <0.00%> (+0.88%) ⬆️
utapi-v2-tests 35.59% <0.00%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants