Skip to content

Fix Scanner fleet evidence and IAM lifecycle probes - #186

Open
overtrue wants to merge 17 commits into
mainfrom
codex/scanner-acceptance-3385
Open

overtrue wants to merge 17 commits into
mainfrom
codex/scanner-acceptance-3385

Conversation

@overtrue

@overtrue overtrue commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

The SSD run in rustfs/backlog#3385 exposed incorrect Scanner observations. The status handler reports lifetime work in each node’s metrics.source_work. Read all four signed endpoints, retain the counters seen before a node restarts, and use the published usage epoch and cycle. Check the corrupted part on its original physical drive while the workload runs, so a completed transition can release its local shards. Keep the deep-scan journal and end-to-end payload checks.

Count keys with historical versions behind a delete marker. Discover mirrored buckets in both directions only for exact fixture names confirmed absent before the run. Drain the source versions while the tier is registered, then remove the tier and its bucket.

IAM-102 and IAM-103 now read the location of a disposable bucket. The built-in readonly policy allows that operation. On the original fleet the previous positive probe returned AccessDenied for ListBuckets both before disable and after re-enable.

Verification

94 Scanner, usage, and security harness tests passed. The local shard test writes a real file, verifies that the injected copy fails the hash check, and restores its original contents. The existing receipt gate still rejects incomplete evidence. The physical rerun is tracked in backlog #3385.

On the original SSD fleet, the damaged shard returned to its pre-injection digest. The signed readiness check was reaching the first node while the second node was restarting. The case now polls the node it restarted, selects all fixture objects for inspection, records per-object heal events, and writes an object before enabling bucket replication. It verifies the replica contents and waits for real work across all six sources. The tier source cases now provision MQTT before deployment and write a terminal receipt on interrupted setup. S3C-1206 cleans only the buckets it created if tier registration fails. The focused suites passed 111 tests, followed by 29 Scanner tests including the restarted-peer regression.

The OIDC provider now starts on a run-owned Docker bridge. All four original nodes fetched the same discovery document from the pinned Keycloak image. The provider container, network, and generated realm were removed. A simulated startup failure produced a terminal infrastructure result with the package identity, no installed binary digest, and verified cleanup. The OIDC, source-procedure and tier MQTT suites passed 25 tests.

The existing-object bucket sample now waits for the original version to reach COMPLETED on its site mirror, verifies the mirror digest, and lists the distinct operator target before enabling the bucket rule. The final read names the same version. This keeps initial site enrollment from satisfying the bucket-repair check. The Scanner usage and all-in-one test modules passed 84 tests. The previous SSD run copied the sample with the expected digest but recorded zero bucket-repair admissions.

The merged catalog includes the chart checkpoint restore case. The Iceberg procedure now commits with the returned table UUID, sends a stale token against existing metadata files, requires HTTP 409 with CommitFailedException, and reloads the committed location. The config probe requires HTTP 401 or 403 for an unauthenticated request. Seven table tests passed, and the catalog, implementation review and registry checks passed. Live SSD receipts are tracked separately in rustfs/backlog#3385.

The original SSD run of USAGE-09 sampled the same certified cycle six times. The case now sustains real overwrites between observations, compares counters and certificates across distinct publications, and checks a new inventory once writes stop. All 88 Scanner tests and the six hosted checks passed. The hardware rerun is tracked in rustfs/backlog#3385.

The SSH rolling test now verifies the service's MainPID before and after the planned crash. Ten rolling harness tests passed, including cases for an absent or replaced process.

The Ceph runner resolves the actual Python package in the checkout and keeps its historical baseline across the package rename. On the original four-node fleet the upstream JUnit contained 537 successful cases. The profile accepted 484 and classified 53 as vendor-specific. Mint now runs each supported SDK from its own directory, passes its two required log paths, and checks that each target produced records. It retains SDK process failures after earlier successes and removes each temporary credentials file. Ten conformance harness tests and six hosted checks passed at this head. The separate six-SDK hardware run is tracked in backlog #3385.

The five-client run on the original four nodes passed 38 of 50 cases. The distro boto3 1.34.46 rejected conditional PUT arguments before sending a request. All five clients also lacked the KMS key required by SDK-09 and SDK-10. The preflight now checks both conditional PUT fields. SDK-03 uses directory-to-directory rclone copy, checks the immutable error, and reads the original bytes back. On rclone 1.60.1 the old command returned success and overwrote the file. The corrected command returned an immutable-file error and preserved the bytes. All seven runner tests passed on the jump host, including the negative controls. Six hosted checks passed at e2c1c1d69. The SSD rerun will verify the shared KMS key through writes and readbacks on all four nodes.

At 971ff8c2d the SDK matrix checks the client identity and requires exactly one result per case. Only SDK-10 may skip when KMS is disabled. A client timeout now produces a failed report. The runner clears the private rclone configuration and continues with the next client. All nine runner tests passed locally with boto3 and botocore 1.44.15, including the ten-operation boto3 run against the test server. All six hosted checks passed at 971ff8c2d.

A loopback test ran the generated rclone driver with a stand-in client. Before 166e1fbe2, the client kept its connection open after the driver timed out. The runner now terminates the native driver's POSIX process group. The same test observed the connection close. All ten SDK runner tests and 88 Scanner tests passed locally. Changes to the harness or its tests now trigger S3 Script Tests. At 24b6aba9c, Ubuntu ran all ten tests, including the boto3 contract and the child cleanup check. The job fails before running tests if its pinned boto3 model lacks conditional writes. Linux test log

The original four-node SSD rerun is pending.

Latest Scanner catalog

Commit c5d8707 includes the new USAGE-23 registration from #188. It binds one native assertion to the Scanner receiver test for signed progress across different worker and leader publication epochs. The catalog has 454 cases, one more than the previous revision. Both reviewed source hashes were recomputed after the merge. The 158 historical migration rows retain their earlier results.

All 58 Scanner usage tests, 30 all-in-one Scanner tests and 10 SDK harness tests passed locally with boto3 and botocore 1.43.19. The shell harness, catalog check and migration review passed as well. The original four-node SSD run is tracked in backlog #3385.

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