docs(deploy-to-cloud-engine): pin the II derivation origin at first deploy - #340
Open
yhabib wants to merge 1 commit into
Open
docs(deploy-to-cloud-engine): pin the II derivation origin at first deploy#340yhabib wants to merge 1 commit into
yhabib wants to merge 1 commit into
Conversation
…eploy The engine console now names an app's canister address as the origin an Internet Identity app should derive from (dfinity/control-panel#3394, #3398). Canisters are the user's to write, so the agent deploying them is the one that has to get this right, and it is not recoverable later: a domain that has already collected sign-ins cannot be repointed at a derivation origin without orphaning every account made under it. The engine-specific part is which URL to use. The console derives the address from the canister marked __META_MAIN_CANISTER: "true" — the same canister whose __META_BASE_URL Step 2 already sets — so the value the agent needs is one it has computed by that point. Mechanics (derivationOrigin, .well-known/ii-alternative-origins, the _headers entry the static-site recipe needs) stay in internet-identity; this only points there. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Skill Validation ReportValidating skill: /home/runner/work/icskills/icskills/skills/deploy-to-cloud-engineStructure
Frontmatter
Tokens
Markdown
Tokens
Content Analysis
Contamination Analysis
Result: 1 warning Project Checks |
This was referenced Aug 7, 2026
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
The engine console now shows an app's canister address and names it as the origin an Internet Identity app should derive from (dfinity/control-panel#3394, dfinity/control-panel#3398). The console can only tell the user — the canisters are the user's to write, so the agent deploying them is the one that has to act. And it cannot be fixed later: a domain that has already collected sign-ins cannot be repointed at a derivation origin without orphaning every account made under it.
Changes
__META_MAIN_CANISTER: "true"as the one whose address to use — that is what the console derives the address from (ApplicationDetailView.svelte), and it is the same URL Step 2 already sets as__META_BASE_URL.internet-identityand linked to it.Eval 17 — Adversarial: II app on an engine with a custom domain planned (WITH 4/4 | WITHOUT 2/4)
The baseline hits the exact failure the pitfall is for: it says there is "nothing to do" now and to set
derivationOriginlater when the custom domain is added, which is the point where it can no longer be done without losing accounts.An earlier version of this prompt scored 4/4 on both arms. I retargeted it at the engine-specific part (which canister, which URL) instead of the general II fact, which the baseline already knows.
Prev. #339