store/cockpitApi: query for oscap customizations
Use the oscap & scap-security guide packages on the host to get the customizations for an OpenSCAP profile item.
This commit is contained in:
parent
12a2649198
commit
c7cd9e8de3
5 changed files with 93 additions and 10 deletions
|
|
@ -24,7 +24,11 @@ import {
|
|||
RHEL_10_BETA,
|
||||
RHEL_10,
|
||||
} from '../../../../constants';
|
||||
import { useGetOscapProfilesQuery } from '../../../../store/backendApi';
|
||||
import {
|
||||
useGetOscapProfilesQuery,
|
||||
useGetOscapCustomizationsQuery,
|
||||
useLazyGetOscapCustomizationsQuery,
|
||||
} from '../../../../store/backendApi';
|
||||
import { usePoliciesQuery, PolicyRead } from '../../../../store/complianceApi';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../store/hooks';
|
||||
import {
|
||||
|
|
@ -32,8 +36,6 @@ import {
|
|||
DistributionProfileItem,
|
||||
Filesystem,
|
||||
OpenScapProfile,
|
||||
useGetOscapCustomizationsQuery,
|
||||
useLazyGetOscapCustomizationsQuery,
|
||||
Services,
|
||||
} from '../../../../store/imageBuilderApi';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -12,12 +12,10 @@ import {
|
|||
} from '@patternfly/react-core';
|
||||
|
||||
import { RELEASES } from '../../../../constants';
|
||||
import { useGetOscapCustomizationsQuery } from '../../../../store/backendApi';
|
||||
import { PolicyRead, usePolicyQuery } from '../../../../store/complianceApi';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../store/hooks';
|
||||
import {
|
||||
OpenScapProfile,
|
||||
useGetOscapCustomizationsQuery,
|
||||
} from '../../../../store/imageBuilderApi';
|
||||
import { OpenScapProfile } from '../../../../store/imageBuilderApi';
|
||||
import {
|
||||
changeCompliance,
|
||||
selectCompliancePolicyID,
|
||||
|
|
|
|||
|
|
@ -16,9 +16,11 @@ import {
|
|||
COMPLIANCE_AND_VULN_SCANNING_URL,
|
||||
COMPLIANCE_URL,
|
||||
} from '../../../../constants';
|
||||
import { useBackendPrefetch } from '../../../../store/backendApi';
|
||||
import {
|
||||
useBackendPrefetch,
|
||||
useGetOscapCustomizationsQuery,
|
||||
} from '../../../../store/backendApi';
|
||||
import { useAppDispatch, useAppSelector } from '../../../../store/hooks';
|
||||
import { useGetOscapCustomizationsQuery } from '../../../../store/imageBuilderApi';
|
||||
import {
|
||||
ComplianceType,
|
||||
selectComplianceProfileID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue