Consider moving cryptopolicy related rules from fips group to crypto group

オープン
#13,852 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
領域
security

調査の方向性

PR 13840、fips と crypto の group.yaml ファイル、および fips_crypto_subpolicy、fips_custom_stig_sub_policy、場合によっては fips_crypto_policy_symlinks の定義と remediation を確認してください。グループの適用可能性とルールの順序、特に fips:stig remediation パスを確認してください。完了とは、ルールが意図されたグループ配置、適用可能性、および機能する remediation の順序になっていることを意味します。

索引モデルが issue の本文から書いたものです。

説明

triaged

This issue is a follow-up to https://github.com/ComplianceAsCode/content/pull/13840
Basically, currently we have three rules which are located in the fips group and at the same time they are related to specific modifications of cryptopolicies.

  • fips_crypto_subpolicy
  • fips_custom_stig_sub_policy
  • and possibly also fips_crypto_policy_symlinks

Before the PR mentioned above was merged, the whole fips group had a platform in group.yaml which made it inapplicable in containers, bootc systems etc.
And this mostly makes sense because FIPS mode is achieved differently in containers and immutable systems.
The PR was rather a quick fix.
I think that ideally rules mentioned above should be moved to the crypto group which has no applicability restrictions.
And at the same time, the applicability of rules in the fips group could return back to the group.yml.
The thing which remains to be solved is to later ensure proper rule ordering in the crypto group. Especially the rule fips_custom_stig_sub_policy caused problems when it was placed after the general configure_crypto_policy rule. The problem was that when remediating (imagebuilder), the remediation of configure_crypto_policy could fail in case the fips:stig is configured, because it tries to configure policy which does not exist yet.
Of course, this would not happen if fips:stig would be shipped directly in the distro.
Ideas and comments welcomed.

主要言語
Shell
スター
2.8k
フォーク
847
平均マージ
3日 7時間
マージ済み PR(30日)
88

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ComplianceAsCode/content のほかの issue

ComplianceAsCode/content の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。