docs(custom-domains): name the ordering trap in the II pitfall - #341
Open
yhabib wants to merge 1 commit into
Open
docs(custom-domains): name the ordering trap in the II pitfall#341yhabib wants to merge 1 commit into
yhabib wants to merge 1 commit into
Conversation
Pitfall 9 described the symptom (II principals change with the origin) and pointed at internet-identity for the fix, but omitted the part that decides whether the fix is still available: it has to happen before the domain collects sign-ins. Once accounts exist under the new domain, repointing it at a derivation origin orphans them. Also names the canister address as the origin to pin, so the reader is not left to pick, and drops the "switching from a canister URL" framing — the canister address does not go away when a custom domain is added. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Skill Validation ReportValidating skill: /home/runner/work/icskills/icskills/skills/custom-domainsStructure
Frontmatter
Markdown
Tokens
Content Analysis
Contamination Analysis
Result: passed Project Checks |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
Pitfall 9 described the symptom — II principals depend on the origin, so a custom domain changes them — and pointed at
internet-identityfor the fix. It left out the part that decides whether the fix is still available: it has to happen before the domain collects sign-ins. Once accounts exist under the new domain, repointing it orphans them. That ordering is what the engine console now warns about on the add-domain form (dfinity/control-panel#3394).Changes
Eval 9 — Adversarial: custom domain on an app that already has II users (WITH 4/4 | WITHOUT 2/4)
The baseline knows principals are per-origin but gives half the fix —
ii-alternative-originswithoutderivationOrigin— which on its own does nothing.Prev. #339