Skip to content

feat(tenancy): qualify the object storage provider - #201

Merged
Yoshiofthewire merged 1 commit into
masterfrom
feat/tenancy-provider-qualification
Nov 25, 2026
Merged

Yoshiofthewire merged 1 commit into
masterfrom
feat/tenancy-provider-qualification

Conversation

@Yoshiofthewire

@Yoshiofthewire Yoshiofthewire commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

In one line: kynotes-server qualify-object-store checks that a bucket really does what multi mode's object runtime assumes. CI now runs it against the suite's real versioned S3 server.

What changed

  • A new command reads the replica's own KYNOTES_BLOB_S3_* environment, using the bounded direct/_FILE credential reader from Prepare bounded primary-object credentials #197. It reports what the bucket proved.
  • Checks run on a throwaway qualify/<random>/ prefix, which is deleted whether the run passes or fails:
    • signatures are verified;
    • a second If-None-Match: * PUT is refused and does not replace the object;
    • LastModified is present and within 5 minutes of this host's clock (the orphan sweep ages objects by provider time);
    • a prefix delete leaves no version or delete marker.
  • Versioning is reported, not required: Delete and Purge remove every version either way.
  • A new CI job, object-store, starts the pinned SeaweedFS with versioning on (the KyCalendar / ky-primitives pattern). It runs the test in both the normal and FIPS profiles, and the required test job now needs it.
  • Needs the ky-primitives pin Fence late object PUTs out of org purge and GC (multi startup still refused) #199 brought in (b55ca6d: PutIfAbsent, LastModified). Fence late object PUTs out of org purge and GC (multi startup still refused) #199 is merged, so this targets master.

Review this

Checked: the test against real SeaweedFS 4.52 on Major (normal and FIPS), with a disposable container removed by a trap. Full race, FIPS and PG17 suites on K hosts (below). Also vet, gofmt, actionlint, govulncheck, no-binaries, strong-crypto Compose, and the docs book (287 links). Five mutations each fail the test (below).
Not checked: SigV4 request-age refusal, and with it the late-PUT window's provider bound. The shared client exposes no signer clock, so proving it needs a ky-primitives option; the spec records this. Credential scope (that the key reaches only this bucket) is IAM policy and isn't probed. No hosted provider has been qualified yet.

You need to: nothing for merge. Before multi startup, run qualify-object-store against the chosen provider.

Detail

The test puts a verified TLS reverse proxy in front of the real server and makes it lie in one way at a time:

  • turns a 412 into a 200;
  • serves other bytes after refusing a PUT;
  • drops Last-Modified;
  • answers version deletes without deleting;
  • answers a bad signature with a 404.

Each lie must fail at its own step. A skewed clock and wrong credentials must fail too, and nothing may be left under qualify/.

Mutations (each fails): signature check off, conditional check off, LastModified check off, skew check off, replaced-bytes check off. The unmutated run passes.

Commands
At head d4f85e6. Its tree is identical to the tested a2f4b50, which sat on #199's head ed3735b before the rebase onto master fc5b878:

  • TestProviderQualificationOnVersionedS3 against SeaweedFS 4.52 (pinned digest, versioning on), normal and FIPS: pass on Major, container removed by a trap.
  • Mutations: 5 of 5 killed (signatures, conditional, LastModified, skew, replaced bytes); the unmutated run passes.
  • Full make test, normal and FIPS: exit 0 on Major (no K host free). PostgreSQL 17 CI suites: exit 0 on kjob k80.
  • vet, gofmt, actionlint, govulncheck, no-binaries, strong-crypto Compose, docs book plus links (287): pass.
  • GitHub CI at d4f85e6: all checks pass, including the new object-store job. Security reviewer cleared; Reviewer Guide reports no major issues.

🤖 Generated with Claude Code

qualify-object-store runs blobstore.QualifyProvider with the replica's
object environment and bounded credential reader. On a throwaway prefix
it proves that signatures are verified, If-None-Match: * is refused
without replacing the object, LastModified is present within five
minutes, and a prefix delete leaves no version or marker. It reports
versioning.

The CI object-store job runs it against the suite's versioned SeaweedFS
behind a TLS proxy that lies in one way at a time. SigV4 request-age
refusal stays unproven: the shared client has no signer clock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Yoshiofthewire

Copy link
Copy Markdown
Member Author

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪

🧪 PR contains tests

⚡ No major issues detected


Advisory only: this comment never gates the pull request.
gpt-6.1-sol using pr-agent on behalf of Yoshi

@Yoshiofthewire

Copy link
Copy Markdown
Member Author

Security review - cleared

Detail withheld: this repository is public, and posting an unfixed finding here would be public disclosure. The full report was posted to the hand-off board at https://myslop.urlxl.us/f/pr-reviewer-busnes-app-kynotes-server-201, where it is readable by the operator and expires seven days after the last post.


gpt-6.1-sol using security-audit on behalf of Yoshi

@Yoshiofthewire

Copy link
Copy Markdown
Member Author

Autonomous review - 1/1 personas cleared

  • security: cleared

Merging remains a human decision; this bot never approves.


gpt-6.1-sol using security-audit on behalf of Yoshi

@Yoshiofthewire
Yoshiofthewire merged commit eba624a into master Nov 25, 2026
15 checks passed
@Yoshiofthewire
Yoshiofthewire deleted the feat/tenancy-provider-qualification branch November 25, 2026 05:24
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