Repository navigation
fix(tier3): contain local Harbor directory transfers - #493
Conversation
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Independent source review completed at 04a02f0. Root reviewed the private staging, protected TMPDIR references, NUL-delimited file list, archive/source checks, and secure destination publication, and passed all 17 real transfer cases. A second reviewer passed 12 independent real cases plus actual unreadable-directory and self-TMPDIR source probes; no remaining source concern was identified. Combined #479 guard compatibility passes all 60 local-environment cases. Full lint and isolated wheel/sdist build pass. The six-module broad run recorded 594 passes, 8 skips and one unchanged timeout PID-readiness failure; both isolated variants reproduce on the untouched baseline main 90dfd5a. A passing full suite is not claimed. Current-head hosted CI is running; no paid evaluation was dispatched.
rng1995
left a comment
There was a problem hiding this comment.
Current-head adoption review: 62bcb61 is the exact clean automatic merge of reviewed 04a02f0 and main 81b1e27. Both local_environment.py and its complete test module are byte-for-byte identical to 04a02f0, so the independently reviewed transfer implementation, 17 real content/filter/source/cleanup regressions, and earlier 60-case #479 combined compatibility evidence are preserved. Those tests and the disclosed inherited timeout baseline reproduction were executed on the earlier reviewed source; a full rerun on this merge commit is not claimed. The new-head CI has started. #479 remains open and will be revalidated against actual main if it lands. No source change or main refresh was performed by this adoption review.
Summary
Harbor 0.25 local exclusion downloads fail when the SDK downloads its host
/tmparchive; filtered downloads fail while uploading their/tmpfile list. This inherited compatibility defect reproduces on main and on #479, independently of that PR's source-root guard (inline evidence).Stage each archive and NUL-delimited file list privately under the run's existing protected
TMPDIR, preserve Harbor's exclusion/include/exclude/protect semantics, and publish through the existing secure copier. Invalid sources fail before any command; failed directory scans propagate; unsafe destination links leave outputs unchanged. No general host/tmpaccess or global SDK setting is added. #479's source-root hardening is retained in combined validation; this PR does not duplicate its helper.Verification
make lintmake testmake buildValidation used locked Harbor 0.25.0, Python 3.12.13 on macOS, and source head 04a02f0:
TMPDIRprobes. Neither reviewer found a remaining source issue.make testis not claimed.make lint, changed-file formatting and diff checks pass. An isolated standard build produced both wheel and sdist. BSD tar was exercised locally; Linux CI supplies GNU tar coverage. No model request or paid evaluation was run.Release Impact
CHANGELOG.md