Skip to content

[Backport release/3.0.0] Update container security dependencies - #7812

Merged
kellyguo11 merged 1 commit into
isaac-sim:release/3.0.0from
kellyguo11:codex/backport-mr7-container-security-release-3.0.0
Sep 15, 2026
Merged

kellyguo11 merged 1 commit into
isaac-sim:release/3.0.0from
kellyguo11:codex/backport-mr7-container-security-release-3.0.0

Conversation

@kellyguo11

@kellyguo11 kellyguo11 commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Ports the focused security updates from internal MR7 onto develop.

  • Updates GitPython, Pillow, and PyArrow security selections and refreshes the lockfile.
  • Installs a checksum-verified Git LFS 3.8.0 executable in both container images.
  • Adds offline regression coverage for dependency pins and the Git LFS installer.
  • Includes the IsaacLab changelog fragment.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Release backport

Backport of #7811

Validation

  • Nine security dependency tests pass.
  • pyproject.toml and uv.lock parse successfully.
  • Git LFS installer passes bash syntax validation.
  • Focused pre-commit hooks pass.

Checklist

  • I have read and understood the contribution guidelines
  • I have run the pre-commit checks
  • I have made corresponding changelog changes
  • My changes generate no new warnings
  • I have added tests that prove the fix is effective
  • I have added a changelog fragment for the touched package
  • My name already exists in CONTRIBUTORS.md

@kellyguo11
kellyguo11 requested a review from a team September 15, 2026 07:08
@github-actions github-actions Bot added isaac-lab Related to Isaac Lab team infrastructure labels Sep 15, 2026
@kellyguo11

Copy link
Copy Markdown
Contributor Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Sep 15, 2026
@greptile-apps

greptile-apps Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The PR appears safe to merge, with two non-blocking improvements recommended for the new installer tests.

Findings

  1. P2 Architecture subtests share previous results ▶
  2. P2 Vendor checksum rejection remains untested ▶

Summary

Backports focused container dependency updates to release/3.0.0.

  • Raises the GitPython and Pillow minimum versions, updates the PyArrow pin, and refreshes the corresponding lock entries.
  • Replaces distro Git LFS installation in both images with a shared checksum-verified 3.8.0 installer that configures system filters and preserves documentation and notices.
  • Updates dependency-cache inputs and kitless CI coverage, adds offline regression tests, and includes a changelog fragment.
  • Two non-blocking test improvements would strengthen architecture isolation and vendor-checksum failure coverage.

Reviews (1) · Last reviewed commit: "[OMPE-106305] Update Isaac Lab container..."

Comment on lines +142 to +145
for architecture, checksum in hashes.items():
with self.subTest(architecture=architecture):
self.env["TEST_ARCH"] = architecture
result = self._run()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Architecture subtests share previous results

Both architecture runs append to the same events and checksums files. The arm64 assertions for removal ordering, notice installation, and system filter configuration can therefore be satisfied by the earlier amd64 run, masking an arm64-specific regression that skips those operations. Clear both logs before each invocation so the assertions check only the current run.

Suggested change
for architecture, checksum in hashes.items():
with self.subTest(architecture=architecture):
self.env["TEST_ARCH"] = architecture
result = self._run()
for architecture, checksum in hashes.items():
with self.subTest(architecture=architecture):
(self.root / "events").write_text("", encoding="utf-8")
(self.root / "checksums").write_text("", encoding="utf-8")
self.env["TEST_ARCH"] = architecture
result = self._run()

Comment on lines +156 to +162
def test_bad_checksum_cannot_remove_or_install_anything(self):
self.env["TEST_CHECKSUM"] = "fail"
result = self._run()
self.assertNotEqual(result.returncode, 0)
events = (self.root / "events").read_text()
self.assertNotIn("remove ", events)
self.assertNotIn("install ", events)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Vendor checksum rejection remains untested

Setting TEST_CHECKSUM to fail makes the first, binary-archive check fail, so this test never reaches the vendor checksum. Removing vendor verification entirely would still leave the suite green. Make the mock distinguish the two archives and add a case where the binary checksum succeeds but the vendor checksum fails. Assert that the installer exits before extracting the vendor archive or removing/installing packages.

@isaaclab-review-bot isaaclab-review-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isaac Lab Review Bot

The dependency and Git LFS security updates are consistently applied, but the new regression check covering both Dockerfiles is not triggered when Dockerfile.base alone changes.

  • Design and architecture: The shared checksum-verified Git LFS installer is used by both container images and included in the dependency-cache hash. However, the kit-less workflow is the added execution path for the regression test, and its change detector omits docker/Dockerfile.base, leaving that side of the two-image contract unenforced for base-only edits.
  • API: No Python public APIs, CLI arguments, or configuration fields change. The dependency manifest and lockfile consistently reflect the updated GitPython, Pillow, and PyArrow selections.
  • Implementation: The installer verifies architecture and checksums before removing or installing Git LFS, preserves notices, and is exercised through offline tests. Add docker/Dockerfile.base to the kit-less workflow change patterns, or otherwise ensure the assertion covering that file runs when it changes.

Minor fixes needed. Posted 1 actionable finding inline.

Automated review; human maintainers own approval decisions.

^docker/docker-compose\.yaml$ :: Kit-less Compose definition
^docker/test/test_container_profiles\.py$ :: Kit-less profile tests
^docker/test/test_dockerfile_nonroot\.py$ :: Dockerfile contract tests
^docker/test/test_security_dependencies\.py$ :: Container dependency tests

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Suggestion · Design Architecture — Dockerfile.base guard never triggered by its own edits

The new test asserts that docker/Dockerfile.base still copies and runs install_git_lfs.sh, but this workflow is the only place the test is invoked and its change-detection list matches only ^docker/Dockerfile\.kitless$. An edit that drops the verified installer from Dockerfile.base would not run this job, so the guard silently never fires for that file. Add a Dockerfile.base pattern or scope the assertion to the kit-less image.

@kellyguo11
kellyguo11 merged commit c0bf0ec into isaac-sim:release/3.0.0 Sep 15, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants