Skip to content

Prepare bounded primary-object credentials - #197

Merged
Yoshiofthewire merged 1 commit into
masterfrom
feat/tenancy-object-credentials
Nov 24, 2026
Merged

Yoshiofthewire merged 1 commit into
masterfrom
feat/tenancy-object-credentials

Conversation

@Yoshiofthewire

Copy link
Copy Markdown
Member

Prepare the selected primary-object credentials and construct the real shared S3 client without network I/O or persistent state. Hosted startup remains refused, and maintenance and single-tenant paths keep their behavior.

  • Read each credential from its environment value or _FILE alternative. Refuse both forms set, empty/multiline/oversized input, and missing/nonregular files; errors disclose setting names only.
  • Keep credentials out of shared fingerprints, settings, local key/store creation and printable client state. Validate the actual endpoint/bucket/region through the exported shared client; retain HTTPS and normal TLS verification.
  • Keep this preparation separate from ordinary startup and maintenance loading. No object-backend selection, route/GC/purge binding, private S3 client or unmerged shared API is introduced.
  • Record the unresolved delayed remote-PUT fate after PG-lock loss in the existing plan/design/as-built/DOX/assurance records. The shared wire API does not select a product erasure protocol; native-PG recovery transport remains an explicit owner decision.

Review this: replica_objects.go owns credential/file/error boundaries; replica_objects_test.go owns refusal/redaction and fingerprint/startup evidence; the existing plan states remaining erasure/runtime gates. Generated assets and supported standalone operator workflows are unchanged.

Checked: exact head dd45f6effd50a931aed3c113bb50e4d869acdab3: affected race compilation first; whole-repo build/vet; normal/FIPS races on SQLite/PostgreSQL 17.12 for credential/fingerprint/config/restore cases, complete blobstore tests and selected API/golden/read-version/refused-save regressions. Includes mixed direct/file sources, ambiguous/empty/size/multiline/path/type refusal, secret-safe errors/formatting, cross-org/part boundaries and independent-pool identity/claim evidence. PG-only checks run on PG; their explicit SQLite skips are not counted as executions. mdBook, 285 local links and strong-crypto compose pass. Exact archive source hashes remained unchanged; session62907 actually exited0.

Not checked: full required checks are queued behind Major's integration lock from immutable exact-source test material, session13680; queued is not passed. New CI/security/Guide gates are pending. No provider/late-PUT erasure, native-PG backup transport, hosted runtime/lifecycle or readiness claim.

Decided for you: credential values/files are bounded at 64 KiB; regular files may have one trailing LF/CRLF. Explicitly setting both forms, even empty, refuses ambiguity. Provider credential format/strength remains provider-owned.

You need to: review after #196. Dispatcher retains watching and merge authority; existing staff/operator interface approvals and all launch/startup gates remain. Select and qualify the Notes late-PUT fencing resolution and native-PG recovery contract before their dependent runtime work.

Detail

Stacked on #196 at 476590ff4ae4734caa20d89044f4b5ff86aabe2d, consuming merged shared #77 (79823f9). Shared #78's conditional-create/age/ETag API is published but unmerged and is not pinned here. No signing/transport copy, new dependency or volume fallback.

Exact archive SHA-256 b4bb71a4ef5a5f42fae99ff87beb4eb5ba1ae4da09e231c053168db6f435b949; its commit ID and all 1,568 blobs matched git. Local Linux archive verification uses no checkout or second writer, Go1.27.4/default toolchain policy, verified dependencies and persistent caches, the host's /tmp/ky-integ-test.lock, 6 GiB/no-swap/400% CPU scope and blank relays. Owned UTF8/C/C PG17.12 fixture cleaned on exit. Major full verification uses the separately verified immutable archive at ~/.local/state/kynotes-tenancy/verification/dd45f6e-full; every earlier frozen worktree/job remains preserved.

The selected credential forms already belong to tenancy N15. This PR prepares their boundary without exposing a supported startup workflow. README/manual/installer behavior stays unchanged after DOX review; the strong-crypto key-boundary table and existing design/plan/assurance contracts describe the preparation and its limits.

🤖 Generated with Claude Code

Read the selected environment or credential-file forms and construct the real shared S3 client without I/O, persistent state or startup selection. Refuse ambiguous, empty, multiline, nonregular and oversized sources without disclosing credentials or paths. Keep credentials separate from maintenance and replica fingerprints.

Record remaining delayed-PUT erasure qualification and native PostgreSQL recovery decisions in the existing design/plan; do not select a protocol or consume unmerged shared APIs. Cover successful mixed sources, refusal/redaction and startup fences with executable checks.

Co-Authored-By: GPT 6.1 Sol <noreply@openai.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: 2 🔵🔵⚪⚪⚪

🧪 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-197, 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

Base automatically changed from feat/tenancy-object-backend to master November 24, 2026 00:46
@Yoshiofthewire
Yoshiofthewire merged commit 69cbd5c into master Nov 24, 2026
10 checks passed
@Yoshiofthewire
Yoshiofthewire deleted the feat/tenancy-object-credentials branch November 24, 2026 00:55
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