Skip to content

Security: Enable GPG signature verification for ROCm/AMDGPU repositories #1262

Open
@coderabbitai

Description

@coderabbitai

Summary

The ROCm and AMDGPU repository configurations in Dockerfiles have GPG checking disabled (gpgcheck=0), which compromises supply-chain security by allowing unverified packages to be installed.

Problem

In jupyter/rocm/tensorflow/ubi9-python-3.12/Dockerfile.rocm around lines 56-66, both ROCm and AMDGPU repositories are configured with gpgcheck=0, which disables signature verification. This means:

  • Package authenticity cannot be verified
  • Compromised repository infrastructure could serve malicious packages
  • Supply-chain attacks become easier to execute

Proposed Solution

Enable GPG signature verification for both repositories:

  1. Set gpgcheck=1 for both ROCm and AMDGPU repositories
  2. Import AMD's GPG keys before installing packages:
    • rpm --import https://repo.radeon.com/rocm/rocm.gpg.key
    • Import appropriate key for AMDGPU repository

Acceptance Criteria

  • GPG checking is enabled for ROCm repository
  • GPG checking is enabled for AMDGPU repository
  • AMD GPG keys are imported before package installation
  • Repository configurations are updated across all ROCm images
  • Build process continues to work with signature verification enabled

Related

This issue affects supply-chain security and should be prioritized for implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions