Skip to content

feat(hostpolicy): add scoped preview access on current CMS history - #38

Merged
intel352 merged 1 commit into
mainfrom
feat/preview-agent-hook-current-cms-20261010
Oct 10, 2026
Merged

intel352 merged 1 commit into
mainfrom
feat/preview-agent-hook-current-cms-20261010

Conversation

@intel352

Copy link
Copy Markdown
Contributor

The released CMS history build cannot admit a narrowly scoped preview-view token. This ports the reviewed optional host-owned preview-access callback onto current main without replacing the saved-history implementation.

The callback runs after existing transport, canonical-domain and configured-password checks. Its ceiling permits canonical content GET/HEAD only; Basic verification, privileged routes, credential stripping and private response headers remain enforced. The added tests cover malformed hashes, route aliases, callback mutation, protected routes and separate preview tenants.

Source: current main 8a87321240c9b0638999135b18f84a5b7ed8f263; selected hook, documentation and tests from reviewed draft37 11b8bfe47c5919b14547555729a5a51c4abef8d3. Earlier draft37 remains untouched. Local validation is formatting, JavaScript-free source parsing and git diff --check; native CI and independent review are required at this exact head. No deployment, credentials or grants are created.

@intel352
intel352 marked this pull request as ready for review October 10, 2026 20:53
@intel352
intel352 merged commit b49dba3 into main Oct 10, 2026
4 checks passed
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