This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.1.4. コンテナーイメージの署名
Red Hat は、Red Hat Container Registry でイメージの署名を提供します。これらの署名は、Machine Config Operator (MCO) を使用して OpenShift Container Platform 4 クラスターにプルされる際に自動的に検証されます。
Quay.io は OpenShift Container Platform を設定するほとんどのイメージを提供し、リリースイメージのみが署名されます。リリースイメージは承認済みの OpenShift Container Platform イメージを参照するため、サプライチェーン攻撃からの一定レベルの保護が得られます。ただし、ロギング、モニターリング、サービスメッシュなどの OpenShift Container Platform への拡張機能の一部は、Operator Lifecycle Manager (OLM) から Operator として提供されます。それらのイメージは、Red Hat Ecosystem Catalog Container イメージ レジストリーから提供されます。
Red Hat レジストリーとインフラストラクチャー間のイメージの整合性を確認するには、署名の検証を有効にします。
1.4.1. Red Hat Container Registry の署名の検証の有効化 リンクのコピーリンクがクリップボードにコピーされました!
コンテナーの署名の検証を有効にするには、レジストリー URL を sigstore にリンクし、次にイメージを検証するキーを指定するためのファイルが必要です。
手順
レジストリー URL を sigstore にリンクし、イメージの検証に使用するキーを指定するためのファイルを作成します。
policy.json
ファイルを作成します。Copy to Clipboard Copied! Toggle word wrap Toggle overflow registry.access.redhat.com.yaml
ファイルを作成します。cat <<EOF > registry.access.redhat.com.yaml docker: registry.access.redhat.com: sigstore: https://access.redhat.com/webassets/docker/content/sigstore EOF
$ cat <<EOF > registry.access.redhat.com.yaml docker: registry.access.redhat.com: sigstore: https://access.redhat.com/webassets/docker/content/sigstore EOF
Copy to Clipboard Copied! Toggle word wrap Toggle overflow registry.redhat.io.yaml
ファイルを作成します。cat <<EOF > registry.redhat.io.yaml docker: registry.redhat.io: sigstore: https://registry.redhat.io/containers/sigstore EOF
$ cat <<EOF > registry.redhat.io.yaml docker: registry.redhat.io: sigstore: https://registry.redhat.io/containers/sigstore EOF
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
マシン設定テンプレートに使用される
base64
でエンコードされた形式でファイルを設定します。export ARC_REG=$( cat registry.access.redhat.com.yaml | base64 -w0 ) export RIO_REG=$( cat registry.redhat.io.yaml | base64 -w0 ) export POLICY_CONFIG=$( cat policy.json | base64 -w0 )
$ export ARC_REG=$( cat registry.access.redhat.com.yaml | base64 -w0 ) $ export RIO_REG=$( cat registry.redhat.io.yaml | base64 -w0 ) $ export POLICY_CONFIG=$( cat policy.json | base64 -w0 )
Copy to Clipboard Copied! Toggle word wrap Toggle overflow エクスポートされたファイルをワーカーノードのディスクに書き込むマシン設定を作成します。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 作成されたマシン設定を適用します。
oc apply -f 51-worker-rh-registry-trust.yaml
$ oc apply -f 51-worker-rh-registry-trust.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow エクスポートしたファイルをマスターノードのディスクに書き込むマシン設定を作成します。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow マスターマシン設定の変更をクラスターに適用します。
oc apply -f 51-master-rh-registry-trust.yaml
$ oc apply -f 51-master-rh-registry-trust.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow