admin: system api: fix FIPS status schema (cherry-pick #10110) (#10112)

admin: system api: fix FIPS status schema (#10110)

Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
gcp-cherry-pick-bot[bot]
2024-06-15 00:27:33 +09:00
committed by GitHub
parent 0c604ceba4
commit cb8379031a
3 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ class RuntimeDict(TypedDict):
platform: str platform: str
uname: str uname: str
openssl_version: str openssl_version: str
openssl_fips_mode: bool | None openssl_fips_enabled: bool | None
authentik_version: str authentik_version: str

View File

@ -47406,7 +47406,7 @@ components:
type: string type: string
openssl_version: openssl_version:
type: string type: string
openssl_fips_mode: openssl_fips_enabled:
type: boolean type: boolean
nullable: true nullable: true
authentik_version: authentik_version:
@ -47415,7 +47415,7 @@ components:
- architecture - architecture
- authentik_version - authentik_version
- environment - environment
- openssl_fips_mode - openssl_fips_enabled
- openssl_version - openssl_version
- platform - platform
- python_version - python_version

View File

@ -29,7 +29,7 @@ export class FipsStatusCard extends AdminStatusCard<SystemInfo> {
} }
getStatus(value: SystemInfo): Promise<AdminStatus> { getStatus(value: SystemInfo): Promise<AdminStatus> {
return value.runtime.opensslFipsMode return value.runtime.opensslFipsEnabled
? this.setStatus(msg("OK"), { ? this.setStatus(msg("OK"), {
icon: "fa fa-check-circle pf-m-success", icon: "fa fa-check-circle pf-m-success",
message: html`${msg("FIPS compliance: passing")}`, message: html`${msg("FIPS compliance: passing")}`,