-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ubuntu ansible remediation for dconf_gnome_banner_enabled #12292
Add ubuntu ansible remediation for dconf_gnome_banner_enabled #12292
Conversation
Hi @yunimoo. Thanks for your PR. I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This datastream diff is auto generated by the check Click here to see the full diffansible remediation for rule 'xccdf_org.ssgproject.content_rule_dconf_gnome_banner_enabled' differs.
--- xccdf_org.ssgproject.content_rule_dconf_gnome_banner_enabled
+++ xccdf_org.ssgproject.content_rule_dconf_gnome_banner_enabled
@@ -15,7 +15,7 @@
- no_reboot_needed
- unknown_strategy
-- name: Enable GNOME3 Login Warning Banner
+- name: Enable GNOME3 Login Warning Banner - Enable GNOME3 Login Warning Banner
ini_file:
dest: /etc/dconf/db/gdm.d/00-security-settings
section: org/gnome/login-screen
@@ -38,7 +38,7 @@
- no_reboot_needed
- unknown_strategy
-- name: Prevent user modification of GNOME banner-message-enabled
+- name: Enable GNOME3 Login Warning Banner - Prevent user modification of GNOME banner-message-enabled
lineinfile:
path: /etc/dconf/db/gdm.d/locks/00-security-settings-lock
regexp: ^/org/gnome/login-screen/banner-message-enable$
@@ -59,7 +59,7 @@
- no_reboot_needed
- unknown_strategy
-- name: Dconf Update
+- name: Enable GNOME3 Login Warning Banner - Dconf Update
command: dconf update
when: '"gdm" in ansible_facts.packages'
tags: |
🤖 A k8s content image for this PR is available at: Click here to see how to deploy itIf you alread have Compliance Operator deployed: Otherwise deploy the content and operator together by checking out ComplianceAsCode/compliance-operator and: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @yunimoo could you please rebase your PR based on latest master? That way we will get the Ubuntu tests running.
8239d0d
to
eb0beee
Compare
@yunimoo the ansible remediation is not passing the tests, could you take a look? |
Sure. I haven't had much bandwidth these past days but I'm noticing these errors are not the same as ones noted #12296. I'm able to spin up my containers for ubuntu 22.04 so will slowly start fixing any potential problems with tests. |
4edd9ac
to
d0c395e
Compare
The remediation was modified to enable the banner also in `greeter.dconf-defaults` and not only in the dconf database. This is to be consistent with the remediation in related rule `dconf_gnome_login_banner_text` and be better aligned with STIG V1R1.
d0c395e
to
01c96c4
Compare
Rebased this branch and removed |
Code Climate has analyzed commit 01c96c4 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 59.4% (0.0% change). View more on Code Climate. |
@yunimoo no need to remove the |
Ah, thank you. I was going about this incorrectly. Let me fix up the remediation script.
|
Description:
greeter.dconf-defaults
and not only in the dconf database, specifically for Ubuntu products.dconf_gnome_login_banner_text
and be better aligned with STIG V1R1.Original PR: #11089
Present Bash Remediation: #12042
Rationale:
Review Hints:
Build the product:
To test these changes with Ansible:
Checkout Manual STIG OVAL definitions, and use software like DISA STIG Viewer to view definitions.
For reference, please review the latest artifacts: https://public.cyber.mil/stigs/downloads/