Commit c1d3c7d
feat: Remove frontend assets from the II backend canister and simplify canister initialization in testnets (#3693)
## Summary
Now that the frontend is served by the standalone
`internet_identity_frontend` canister, this PR removes the frontend
assets that were still bundled in the backend canister.
- **Backend no longer serves frontend assets** — removed `fixup_html`,
`ASSET_DIR`, `collect_assets`, and `/.well-known/webauthn` from the
backend; `get_static_assets` now only serves `/.config.did.bin`
(synchronized config) and `/.well-known/ic-domains` (custom domain
support for `backend.id.ai`)
- **Removed `fetch_root_key` from backend** — this config is now only on
the frontend canister
- **Frontend canister HTTP integration tests** — moved asset-serving,
certification, well-known endpoint, and caching tests from the backend
crate to `src/internet_identity_frontend/tests/integration/http.rs`;
backend HTTP tests now only cover `/.config.did.bin`,
`/.well-known/ic-domains`, and metrics
- **Build & CI updates** — build script split into separate
frontend/backend configs; CI downloads
`internet_identity_frontend.wasm.gz` for PocketIC tests; e2e matrix
simplified (removed `single`/`split` canister axis, frontend canister is
now always deployed)
- **Vite plugin cleanup** — removed utilities for the old bundled
approach; HTML body tags only inserted during dev builds
- **Test fixes** — removed `fetch_root_key` integration tests, defaulted
captcha config to `CaptchaDisabled`, frontend-specific security header
verification
## Test plan
- [x] Backend HTTP tests pass (`/.config.did.bin`,
`/.well-known/ic-domains`, metrics)
- [x] Frontend HTTP tests pass (asset serving, certification,
`/.well-known/webauthn`, `/.well-known/ic-domains`, caching)
- [x] E2E tests pass with standalone frontend canister
- [x] Clippy and formatting checks pass
- [x] TypeScript tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: sea-snake <sea-snake@outlook.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>1 parent 8bf90b3 commit c1d3c7d
File tree
51 files changed
+696
-1056
lines changed- .github/workflows
- scripts
- src
- canister_tests/src
- frontend/src
- lib
- components/wizards
- addAccessMethod/views
- auth/views
- migration/views
- flows
- generated
- stores
- utils
- authentication
- routes
- (new-styling)
- (pending-channel)/init-openid-authorize
- (resuming-channel)/resume-openid-authorize
- self-service
- iframe/webauthn
- vc-flow/index
- internet_identity_frontend
- src
- tests/integration
- internet_identity_interface/src/internet_identity
- internet_identity
- src
- storage/storable
- tests/integration
- config
- v2_api
- vc-api/src/generated
- vite-plugins/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
51 files changed
+696
-1056
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
| 378 | + | |
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
413 | 419 | | |
414 | 420 | | |
415 | 421 | | |
| |||
488 | 494 | | |
489 | 495 | | |
490 | 496 | | |
491 | | - | |
492 | 497 | | |
493 | 498 | | |
494 | 499 | | |
495 | 500 | | |
496 | 501 | | |
497 | 502 | | |
498 | 503 | | |
499 | | - | |
| 504 | + | |
500 | 505 | | |
501 | 506 | | |
502 | 507 | | |
| |||
567 | 572 | | |
568 | 573 | | |
569 | 574 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
| 575 | + | |
| 576 | + | |
574 | 577 | | |
575 | 578 | | |
576 | 579 | | |
577 | 580 | | |
578 | 581 | | |
579 | | - | |
| 582 | + | |
580 | 583 | | |
581 | 584 | | |
582 | 585 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 112 | | |
122 | 113 | | |
123 | 114 | | |
| |||
177 | 168 | | |
178 | 169 | | |
179 | 170 | | |
180 | | - | |
181 | 171 | | |
182 | 172 | | |
183 | 173 | | |
| |||
192 | 182 | | |
193 | 183 | | |
194 | 184 | | |
195 | | - | |
196 | 185 | | |
197 | 186 | | |
198 | 187 | | |
199 | 188 | | |
200 | | - | |
| 189 | + | |
201 | 190 | | |
202 | | - | |
| 191 | + | |
203 | 192 | | |
204 | 193 | | |
205 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
87 | 101 | | |
88 | 102 | | |
89 | 103 | | |
| |||
177 | 191 | | |
178 | 192 | | |
179 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
180 | 206 | | |
181 | 207 | | |
182 | 208 | | |
| |||
186 | 212 | | |
187 | 213 | | |
188 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
189 | 219 | | |
190 | 220 | | |
191 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 4 | + | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
13 | 8 | | |
14 | | - | |
| 9 | + | |
15 | 10 | | |
16 | 11 | | |
17 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
20 | 32 | | |
21 | 33 | | |
22 | 34 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
0 commit comments