Project

General

Profile

Actions

action #167260

closed

[security] Do not require FIPS_ENABLED variable for FIPS install tests

Added by emiler about 1 month ago. Updated 25 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
2024-09-24
Due date:
% Done:

100%

Estimated time:
4.00 h
Difficulty:

Description

Our FIPS install tests now, with a new logic, require FIPS_ENABLED variable set in order to execute fips_setup.pm cleanly. Having this variable on the install tests seems redundant though, since FIPS is not really enabled for the install jobs. Perhaps we could skip this requirement in this case.

If the logic gets changed, we should revert https://gitlab.suse.de/qe-security/osd-sle15-security/-/merge_requests/295 to clean up unused vars.


Related issues 1 (0 open1 closed)

Related to openQA Tests - action #167206: [security][x86-64][15-sp{4-6}] test fails in fips_setup: missing FIPS_ENABLED=1Resolvedemiler2024-09-24

Actions
Actions #1

Updated by emiler about 1 month ago

  • Related to action #167206: [security][x86-64][15-sp{4-6}] test fails in fips_setup: missing FIPS_ENABLED=1 added
Actions #2

Updated by amanzini about 1 month ago

  • Priority changed from Low to Normal

considering also https://suse.slack.com/archives/C044KDGKW58/p1727179296187759 I'm for dropping at least the first variable checks, if not both :)

before the fix, the check was (by mistake) basically a no-op, so a system with FIPS_ENABLED=1 and BOOT_HDD_IMAGE=0 would have FIPS installed. Now these checks prevents it for no real reason.

see also question at https://progress.opensuse.org/issues/167063#note-2

Actions #3

Updated by tjyrinki_suse about 1 month ago

  • Status changed from New to Workable

Seems correct, as ensure_fips_enabled anyway checks if FIPS was correctly enabled, that failing will instruct enough whether one should allow fips_setup to do the enabling in one's tests or if one should specify FIPS_INSTALLATION parameter to skip the setup and only check FIPS was already enabled by the installation.

Actions #4

Updated by tjyrinki_suse about 1 month ago

  • Estimated time set to 4.00 h
Actions #5

Updated by amanzini about 1 month ago

  • Assignee set to amanzini
Actions #7

Updated by amanzini about 1 month ago

  • Status changed from Workable to Feedback
Actions #8

Updated by amanzini about 1 month ago

  • Status changed from Feedback to Resolved

@emiler feel free to revert you MR if you prefer

Actions #9

Updated by amanzini 25 days ago

  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF