Repository navigation
Conversation
…a check The Docker images made the venv lib and bin world-writable so CI, which runs the image as the runner's uid, could install test-only packages into it. Make them writable by the isaaclab group (gid 1000) instead, and add that group to the CI containers with --group-add 1000. The PyPI metadata check resolved the newest packaging release and allowed source builds. Pin it to the locked version and pass --no-build.
The release metadata check installed packaging from the index at run time, so its only lock was a version pin: SonarQube S8544 asks for a dependency locked to verified hashes. The check needs packaging only to find direct URL requirements, which PEP 508 writes as "name @ url" before any marker. Detect that with the standard library and run the script with the runner's python3, so the step installs nothing.
|
run-ci |
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Implementation (1). Other reviewed categories look good.
- PR description: The title and security scope match the diff, but the documentation checklist omits tooling changes; correct that wording and keep image-build and host-UID validation marked pending, with no performance comparison needed.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: The string search accepts malformed requirements such as
torch==, allowing invalid metadata through the release gate; restore PEP 508 syntax validation without an unlocked installation. - Style consistency: Style consistency looks good.
- Test quality: Test quality looks good.
Significant concerns. Posted 1 inline finding.
Automated review; human maintainers own approval decisions.
| # A PEP 508 direct reference is "name [extras] @ url [; marker]": its "@" comes before the marker, where a | ||
| # registry requirement has none. Standard library only, so the release check installs nothing. | ||
| requirements = metadata.get_all("Requires-Dist", []) | ||
| direct_urls = [requirement for requirement in requirements if "@" in requirement.split(";")[0]] |
There was a problem hiding this comment.
🔴 Critical · Implementation — Keep validating requirement syntax
Malformed Requires-Dist values such as torch== now pass because they contain no @; Requirement previously rejected them. The release gate can approve invalid metadata. Use a locked, offline PEP 508 parser.
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThe PR limits venv writes to the owning group and removes the package installation from the release metadata check.
Acknowledged deferral: Reviews (1) · Last reviewed commit: "Check release wheel metadata without ins..." · Reviewed by Greptile |
Summary
Fixes the four SonarQube vulnerabilities deferred from the 3.0.0 GA. The Docker images no longer make the virtual environment world-writable, and the release wheel metadata check no longer installs an unlocked package.
Description
Fixes NVBug 6937519
Dockerfile.baseandDockerfile.curobo). The images made the venv'slibandbinworld-writable so that CI, which runs the image as the runner's uid, could install test-only packages. They are now writable by group 1000, the venv's group, and the CIdocker runcalls (run_tests.sh,multi_gpu_host_launcher.sh) add--group-add 1000.wheel.yml). The check installedpackagingfrom the index, unpinned and with source builds allowed, only to find direct URL requirements. It now uses the standard library, since PEP 508 puts a direct reference's@before any marker, and runs withpython3, so the step installs nothing.isaaclab.sh) no longer applies: Make uv the only installation workflow #8128 removed the file.Tests:
isaac-lab:latest-mainwith world-write removed from the venv, uid 4321 in group 1000 installs a package and uid 4322 outside it getsEACCES.test_pypi_metadata_validator_rejects_direct_urls: 4 passed, with two marker and extras cases added. Withpython3 -I -S, the script accepts registry pins and rejects URL, URL with extras and marker, and Git URL requirements.--userpath; this PR's CI runs both.Not changed:
wheel.ymlalso runsuv run --no-project --python 3.12 --with pytestfor the resolution test. It was added in #8905 after the scan and falls under the same rule; locking it needs a dependency group inuv.lock, so it is left for a follow-up.Suggested reviewer: kellyguo11 (filed the deferral).
Type of change
Release backport
mainScreenshots
Not applicable.
Checklist
pre-commitchecks withuv run isaaclab --formatsource/<pkg>/changelog.d/for every touched package: a.skipfragment, since only a test changesCONTRIBUTORS.mdor my name already exists there