You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace the Jotform on the 451 page with the Kebabstack appeal form - #238
Replaces the Jotform appeal form on the denylist (451) error page with the Kebabstack form provided by IT.
appeal_section.html: the Kebabstack embed snippet plus an "Open form separately" link. The embed script inserts a self-resizing iframe that follows light/dark mode.
error_cause.rs: fills the form's data-context with domain (the domain the page was requested on) and canister_id (the affected canister), taken from the request's error context. This lets appeals that come in through custom domains be matched to a canister. The values go in without escaping, since an FQDN and a principal can't contain characters that matter in JSON or in an HTML attribute.
The canister ID box (shown on "canister not found" and "domain/canister mismatch" pages) is now turned on by its own canister_section flag. canister_id then holds the canister for every error, taken from the error if it carries one or else from the request, and both the box and the appeal form use it. The 451 page still doesn't show the box.
template.html: styles for the appeal section and the fallback link.
The appeal section on the denylist (451) error page now embeds the
Kebabstack form. The gateway fills in the form's context with the
domain the page was requested on and the affected canister ID, so
appeals coming in through custom domains can be matched to a canister.
The canister section now fills in {{CANISTER_ID}} only within itself,
as the appeal section uses the same placeholder.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
► src/routing/error_pages/components/appeal_section.html Replace hard-coded appeal iframe with a generic appeal section using embed script and context placeholders ► src/routing/error_pages/template.html Update styling for new appeal section and ensure consistent theming from light to dark
Enhancement
► src/routing/error_cause.rs Add canister_section flag to ErrorData and propagate canister_id for canister-related errors ► src/routing/error_pages/template.html (themed styling changes included in same file)
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The remotely hosted embed runs on gateway/custom-domain origins but is outside the snapshot, requiring human validation of its trust boundary and a successful Turnstile-protected appeal that preserves domain/canister attribution.
No open issues 🎉
What changed in this PR
Replaces Jotform with the Kebabstack appeal form on the gateway’s 451 denylist page, adding request context so appeals through custom domains can be matched to the affected canister.
Changes:
Adds the Kebabstack embed and an “Open form separately” fallback link.
Populates domain and canister context, with placeholder replacement scoped to each section.
Adds appeal-section styling and tests for context rendering.
File
Description
src/routing/error_pages/template.html
Adds styles for the appeal section and fallback link.
The canister ID box is now turned on with its own `canister_section`
flag, set by the two errors that showed it before. That frees
`canister_id` to hold the canister for every error: from the error if
it carries one, otherwise from the request. Both sections now fill
{{CANISTER_ID}} from it, and `appeal_canister_id` is gone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The remotely hosted embed script executes in canister and custom-domain origins, but its implementation is unavailable and appeal submission remains untested, requiring human security review and validation.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The separate-form fallback omits the domain and canister ID, losing the request attribution this change adds, particularly on custom domains where the canister ID is not otherwise visible.
The separate-form link drops both request-context values: they are attached only to the embed script, while this URL is identical for every blocked canister. On a custom domain, the canister ID also isn't visible in the hostname or the 451 page, so using the fallback loses the attribution this change adds. Preserve the context using the form's supported URL parameters, or display the domain and canister ID with instructions to include them when submitting separately.
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the Jotform appeal form on the denylist (451) error page with the Kebabstack form provided by IT.
appeal_section.html: the Kebabstack embed snippet plus an "Open form separately" link. The embed script inserts a self-resizing iframe that follows light/dark mode.error_cause.rs: fills the form'sdata-contextwithdomain(the domain the page was requested on) andcanister_id(the affected canister), taken from the request's error context. This lets appeals that come in through custom domains be matched to a canister. The values go in without escaping, since an FQDN and a principal can't contain characters that matter in JSON or in an HTML attribute.canister_sectionflag.canister_idthen holds the canister for every error, taken from the error if it carries one or else from the request, and both the box and the appeal form use it. The 451 page still doesn't show the box.template.html: styles for the appeal section and the fallback link.Rendered on a denylisted canister:
data-context='{"domain":"22b4i-4aaaa-aaaal-qlzxa-cai.gateway.icp","canister_id":"22b4i-4aaaa-aaaal-qlzxa-cai"}'Testing
cargo test --lib error_causepasses.No CSP changes needed, as the 451 response doesn't set a CSP header.
🤖 Generated with Claude Code