-
Notifications
You must be signed in to change notification settings - Fork 21
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
Remove patterns-base-fips from SLFO base containers #2062
base: main
Are you sure you want to change the base?
Conversation
Created a staging project on OBS for 16.0: home:defolos:BCI:Staging:16.0:16.0-2062 Build ResultsRepository
Repository
Repository
Repository
Repository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=16.0 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/16.0/16.0-2062/ tox -- -n auto The following images can be pulled from the staging project:
|
This is pulling crypto-policies and we have base-fips now instead.
ab10773
to
30c364d
Compare
Created a staging project on OBS for 7: home:defolos:BCI:Staging:SLE-15-SP7:7-2062 Build ResultsRepository
Repository
Repository
Repository
Repository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=15.7 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp7/7-2062/ tox -- -n auto The following images can be pulled from the staging project:
|
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.
okay
match os_version: | ||
case OsVersion.SP3: | ||
return f"{os_version.pretty_os_version_no_dash} FIPS-140-2" | ||
case OsVersion.SP4 | OsVersion.SP5 | OsVersion.SP6: | ||
case ( | ||
OsVersion.SP4 | ||
| OsVersion.SP5 | ||
| OsVersion.SP6 | ||
| OsVersion.SP7 | ||
| OsVersion.SLE16_0 | ||
): | ||
return f"{os_version.pretty_os_version_no_dash} FIPS-140-3" | ||
case _: | ||
raise NotImplementedError(f"Unsupported os_version: {os_version}") |
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.
Wouldn't this be a bit simpler:
def _get_fips_pretty_name(os_version: OsVersion) -> str:
if os_version == OsVersion.SP3:
return f"{os_version.pretty_os_version_no_dash} FIPS-140-2"
if os_version.is_sle15 or os_version.is_slfo:
return f"{os_version.pretty_os_version_no_dash} FIPS-140-3"
raise NotImplementedError(f"Unsupported os_version: {os_version}")
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.
yes, we can do that.
30c364d
to
c6bc266
Compare
c6bc266
to
2ac96be
Compare
Created a staging project on OBS for Tumbleweed: home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-2062 Build ResultsRepository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=tumbleweed TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-2062/ tox -- -n auto The following images can be pulled from the staging project:
|
This is pulling crypto-policies and we have base-fips now instead.