第9章 RHEL Image Builder を使用した FIPS モードの有効化
カスタマイズしたイメージを作成し、FIPS 対応の RHEL イメージを起動できます。イメージを作成する前に、ブループリント内の fips ディレクティブの値を変更する必要があります。
前提条件
-
root ユーザーまたは
weldrグループのメンバーであるユーザーとしてログインしている。
手順
次の内容を含む、Tom’s Obvious, Minimal Language (TOML) 形式のプレーンテキストファイルを作成します。
name = "system-fips-mode-enabled" description = "blueprint with FIPS enabled " version = "0.0.1" [customizations] fips = true [[customizations.user]] name = "admin" password = "admin" groups = ["users", "wheel"]ブループリントを RHEL Image Builder サーバーにインポートします。
# composer-cli blueprints push <blueprint-name>.toml既存のブループリントをリスト表示して、作成されたブループリントが正常にインポートされて存在するかどうかを確認します。
# composer-cli blueprints show <blueprint-name>ブループリントに記載されているコンポーネントおよびバージョンと、その依存関係が有効かどうかを確認します。
# composer-cli blueprints depsolve <blueprint-name>カスタマイズした RHEL イメージをビルドします。
# composer-cli compose start \ <blueprint-name> \ <image-type> \イメージのステータスを確認します。
# composer-cli compose status … $ <UUID> FINISHED <date> <blueprint-name> <blueprint-version> <image-type> …イメージをダウンロードします。
# composer-cli compose image <UUID>RHEL Image Builder により、イメージがカレントディレクトリーパスにダウンロードされます。UUID 番号とともにイメージサイズが表示されます。
$ <UUID-image-name.type>: <size> MB
検証
- ブループリントで設定したユーザー名とパスワードを使用してシステムイメージにログインします。
FIPS モードが有効になっているかどうかを確認します。
$ fips-mode-setup --check FIPS mode is enabled.