Skip to content
This repository was archived by the owner on Oct 11, 2026. It is now read-only.

fix(blog): validate post fields and identity - #183

Merged
KyleJune merged 1 commit into
mainfrom
codex/182-blog-post-fields
Oct 3, 2026
Merged

KyleJune merged 1 commit into
mainfrom
codex/182-blog-post-fields

Conversation

@KyleJune

@KyleJune KyleJune commented Oct 3, 2026

Copy link
Copy Markdown
Member

Why

The blog tutorial forwarded unchecked JSON to its post service. Non-string fields could be persisted, and extra caller fields could replace a record's ID while its KV key stayed unchanged. Validate object/string inputs, project title/content, and retain service-owned identity and metadata. The matching tutorial chapter now teaches the same boundary.

Verification

  • The actual mounted tutorial regression uses native private in-memory KV. Before the fix, 10 compatibility steps passed and 32 intended type/identity/storage assertions failed; all 42 now pass with normal sanitizers.
  • Native Windows: full deno task check, exact parallel package tests (68 tests / 978 steps), and complete blog tests (4 suites / 45 steps) passed.
  • Owned Ubuntu: full check, actual CI coverage task (68 / 978), and complete blog tests (4 / 45) passed on identical final content; dependency lock unchanged.
  • Independent source/documentation and test/resource working reviews are clear. Final committed-SHA review follows publication.

Risk

Door: two-way. Invalid modeled fields now return 400, and unrelated keys are ignored. The tutorial remains public; existing minimum lengths, partial/empty updates and stored legacy properties are preserved. No data migration is included.

Closes

Closes #182

@KyleJune
KyleJune merged commit f7dcfc1 into main Oct 3, 2026
10 checks passed
@KyleJune
KyleJune deleted the codex/182-blog-post-fields branch October 3, 2026 10:20
@KyleJune

KyleJune commented Oct 3, 2026

Copy link
Copy Markdown
Member Author

fix(blog): validate post fields and identity — final committed content reviewed at fb1a81ad0e4575b0fd8080f557397079cceeda14, tree 249c31a20c0b02a55b7e32ac78f50e9de53687b9.

Independent source/error/compatibility and chapter-parity, test/resource, and whole-change reviews are CLEAR at this exact pin. The four committed files match the validated content; the package is clean and its dependency lock is unchanged.

Final native Windows full check, exact parallel package tests (68 tests / 978 steps), and complete blog tests (4 suites / 45 steps) passed. The separate owned Ubuntu checkout passed full check, the actual CI coverage task (68 / 978), and complete blog tests (4 / 45) on identical content. The actual tutorial request/private native KV regression had 10 passing controls and 32 intended failures before the fix; all 42 steps pass afterward. Every locally owned operation and process has joined.

The PR merged at f7dcfc1 after its exact-head checks passed. This records final content review and local validation; the exact-main workflow and actual immutable release are separate verification steps. The public tutorial keeps its existing authentication policy and partial/empty update behavior, with no stored-data migration.

KyleJune pushed a commit that referenced this pull request Oct 3, 2026
## [0.17.10](0.17.9...0.17.10) (2026-10-03)

### Bug Fixes

* **blog:** validate post fields and identity ([#183](#183)) ([f7dcfc1](f7dcfc1)), closes [#182](#182)
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.17.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Validate blog tutorial post fields and identity

1 participant