Repository navigation
feat(dialect-rustfs-admin): register pool maintenance and hot-reload native routes - #1669
Open
loverustfs wants to merge 1 commit into
Open
loverustfs wants to merge 1 commit into
loverustfs wants to merge 1 commit into
Conversation
overtrue
requested changes
Nov 29, 2026
overtrue
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed the generated dialect, inventory, and validator changes in this PR:
Code Assessment
- Admin v3 Pool Maintenance & Hot-Reload Routes (
crates/goldens/src/migration_inventory/rustfs_admin_routes_native.json,crates/dialect-rustfs-admin/src/native/ops/get_v3_pools_maintenance_status.rs,post_v3_pools_*.rs): Route count (413 -> 419),MultipleActions(anyOf(admin:ServerInfo, admin:Decommission)) onGET /rustfs/admin/v3/pools/maintenance/status,sigv4-admin(admin:Decommission) with buffered bodies on the 5POSTroutes, and census assertions incrates/dialect-rustfs-admin/tests/integration/census.rsare consistent. - MFA Enroll Body Alignment (
xtask/src/rustfs_admin_dialect/rulings.rs,crates/dialect-rustfs-admin/src/native/ops/post_v3_account_mfa_enroll.rs,xtask/src/rustfs_admin_dialect/form_tests.rs): Updatingmfa_mutation("/rustfs/admin/v3/account/mfa/enroll", true)toRequestBodyMode::Streaming(caller_secret: true) aligns cleanly withAccountMfaEnrollHandler. any_ofNative Authority Validation (scripts/rustfs_metadata_listing_routes.py,scripts/test_metadata_listing_routes.py):native_claimed_routesproperly validatesAuthRequirement::any_of(...), ensures >= 2 distinct actions, checks wire-to-AdminActionvariant mappings, and fails closed if the wildcard arm does not returnAccessDenied.
Blocking Issue
- CI
Static checks(Role verdicts) failed (mergeStateStatus: BLOCKED):scripts/check_role_verdicts.shrequires a visible## Role Verdictssection in the PR description, followed by a fresh pull-request event (e.g., an empty/follow-up commit after editing the PR body) so the workflow re-evaluates with the updated payload.
Once ## Role Verdicts is added and Static checks passes, this is ready to approve and merge.
loverustfs
force-pushed
the
feat/pool-hot-reload-maintenance
branch
from
November 29, 2026 08:38
27fd39a to
370f872
Compare
overtrue
reviewed
Nov 29, 2026
overtrue
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed the follow-up commit 370f872eee and updated PR description:
## Role Verdicts& Source Metadata:## Role Verdictsis now present in the PR description, andcrates/dialect-rustfs-admin/src/native/extensions.rsupdatesRUSTFS_SOURCE_COMMIT(d5ebd1a6) and evidence URLs cleanly.POOLS_MAINTENANCE_STATUSRuling & Tests (xtask/src/rustfs_admin_dialect/rulings.rs,form_tests.rs,tests.rs):POOLS_MAINTENANCE_STATUS(GET /rustfs/admin/v3/pools/maintenance/status->MultipleActions,anyOf(admin:ServerInfo, admin:Decommission)) and the newnative_pool_maintenance_status_is_any_of_server_info_and_decommissionunit tests look solid, with the native dialect file count updated (20 -> 27).- Pending CI Verification: Multiple required CI jobs (
Static checks,Clippy,Test,Workspace tests 1/3,README and API examples, etc.) failed withapt-getconnection/521errors againstarchive.ubuntu.com/security.ubuntu.com, so this commit has not yet passed CI. Holding approval until the failed CI workflows are re-run and green.
Contributor
Author
|
Hi @overtrue — thanks for the review! The transient Ubuntu mirror jobs on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Registers the 6 new RustFS pool maintenance mode and zero-downtime live hot-reload Admin v3 routes in the native RustFS admin route inventory (
rustfs_admin_routes_native.json,413 -> 419routes) and generates theirrustfs-gateway-dialect-rustfs-adminnative operations:GET /rustfs/admin/v3/pools/maintenance/status(MultipleActions:any_of(["admin:ServerInfo", "admin:Decommission"]))POST /rustfs/admin/v3/pools/maintenance/enter(sigv4-admin:admin:Decommission)POST /rustfs/admin/v3/pools/maintenance/exit(sigv4-admin:admin:Decommission)POST /rustfs/admin/v3/pools/config/check(sigv4-admin:admin:Decommission)POST /rustfs/admin/v3/pools/preflight(sigv4-admin:admin:Decommission)POST /rustfs/admin/v3/pools/reload(sigv4-admin:admin:Decommission)Also aligns
mfa_mutation("/rustfs/admin/v3/account/mfa/enroll", true)with upstreamAccountMfaEnrollHandler's step-up request body, and extendsscripts/rustfs_metadata_listing_routes.py(native_claimed_routes) with fail-closed validation forAuthRequirement::any_of(...)on native control-plane operations.Companion PRs:
Verification
Role Verdicts
any_ofcollector parser inscripts/rustfs_metadata_listing_routes.py, and generateddialect-rustfs-adminnative op modules — no break foundBreaking Change
Checklist
cargo xtask verify)went red. The PR description names which ones (
native_pool_maintenance_status_is_any_of_server_info_and_decommission,native_dialect_assembles_and_declares_pool_maintenance_and_hot_reload_routes,test_eighteen_native_routes_with_pool_maintenance_any_of_and_decommission_actions)BREAKINGand a migration pathunsafeintroducedinventory/linkmeintroduced#[non_exhaustive]added to a DTO