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
Commit 3c6b73b
Browse filesBrowse the repository at this point in the historyBrowse files
|`ACKNOWLEDG_FORGE_MAX_ARTIFACT_ENTRIES`|`500000`| Most entries in an artifact (including inner tarballs'). CI's test results reach about 170,000|
114
+
|`ACKNOWLEDG_FORGE_MAX_EXTRACTED_BYTES`| 2 GiB | Largest extracted artifact (including stored, compressed inner tarballs, but not their unextracted contents) |
115
+
|`ACKNOWLEDG_FORGE_MAX_ARTIFACT_ENTRIES`|`500000`| Most ZIP entries in an artifact. Inner tarballs are checked when read|
116
116
|`ACKNOWLEDG_FORGE_MAX_ARTIFACT_DIRECTORY_BYTES`| 64 MiB | Largest artifact zip central directory, which is read into memory whole (about 106 bytes per entry in CI's test results) |
117
117
|`ACKNOWLEDG_FORGE_MAX_DIFF_BYTES`| 64 MiB | Largest diff of a pull request's `tests/`, which is held in memory and copied more than once: raising it may need a higher `mem_limit` for the service ([`compose.yaml`](compose.yaml)) |
118
118
|`ACKNOWLEDG_FORGE_MAX_SPARSE_PATTERNS`|`20000`| Most sparse-checkout patterns in a review's worktree (up to two per test). Checking out takes time proportional to patterns times paths |
Copy file name to clipboardExpand all lines: dev_tools/services/acknowledg-forge/SANDBOXING.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -279,7 +279,7 @@ sequenceDiagram
279
279
Note over S: check out its merge-base,<br/>symlinks as plain files
280
280
Note over S: check_plain_tree(worktree)
281
281
S->>F: download the CI artifact (size-capped)
282
-
Note over S: extract it: no links, no escaping paths,<br/>inner tarballs size-capped
282
+
Note over S: extract it: no links or escaping paths,<br/>stored inner tarballs size-capped
283
283
S->>B: edg-rematerialize-test-run diff
284
284
Note over B: worktree read-only,<br/>build-staging writable,<br/>time-limited
285
285
B-->>S: output, exit status
@@ -512,9 +512,9 @@ them. Several layers keep the service from reading through one:
512
512
writes, which also may not hold hard links.
513
513
- The section's directories, including the bench baselines a pull request
514
514
supplies, must be real directories.
515
-
- CI artifacts may not contain links or escaping paths, nor may the
516
-
`.rt.tar.gz`files inside them. Reading those tarballs later refuses link
517
-
members as well.
515
+
- CI artifact ZIPs may not contain links or escaping paths. When a reviewer
516
+
opens a `.rt.tar.gz`file inside one, its entries are checked for links
517
+
and devices, excessive counts, and oversized members.
518
518
- The handlers open files through `ConfinedPath`, which opens each path
519
519
component with `O_NOFOLLOW` relative to the last, so a symlink anywhere
520
520
on the way is refused, even one created after a check. A refused path
@@ -525,8 +525,10 @@ them. Several layers keep the service from reading through one:
525
525
526
526
| Resource | Limit |
527
527
| --- | --- |
528
-
| Artifact download |`ACKNOWLEDG_FORGE_MAX_ARTIFACT_BYTES` (256 MiB), also counting the decompressed size of inner tarballs |
529
-
| Artifact entries |`ACKNOWLEDG_FORGE_MAX_ARTIFACT_ENTRIES` (500,000), counting inner tarballs' too; and its zip's central directory, `ACKNOWLEDG_FORGE_MAX_ARTIFACT_DIRECTORY_BYTES` (64 MiB), checked before zipfile reads it |
| Extracted artifact |`ACKNOWLEDG_FORGE_MAX_EXTRACTED_BYTES` (2 GiB), counting the stored size of inner tarballs, not their unextracted contents |
530
+
| Artifact entries |`ACKNOWLEDG_FORGE_MAX_ARTIFACT_ENTRIES` (500,000) for ZIP entries, 10,000 per inner tarball when opened; and its zip's central directory, `ACKNOWLEDG_FORGE_MAX_ARTIFACT_DIRECTORY_BYTES` (64 MiB), checked before zipfile reads it |
531
+
| Inner tarball member | 64 MiB per member when a reviewer opens a tarball |
530
532
| A pull request's diff of `tests/`|`ACKNOWLEDG_FORGE_MAX_DIFF_BYTES` (64 MiB) |
531
533
| A review worktree's sparse-checkout patterns |`ACKNOWLEDG_FORGE_MAX_SPARSE_PATTERNS` (20,000) |
532
534
| A file read for a reviewer | 64 MiB; a larger one fails the request |
0 commit comments