@harnessio/react-chaos-manager-client 1.91.1 → 1.91.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chaos-manager/src/services/hooks/useCreateRiskRuleMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRiskRuleMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskRuleMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskRuleMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskScanQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useGetRiskScanQuery.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRiskExperimentRecommendationsQuery.d.ts +21 -1
- package/dist/chaos-manager/src/services/hooks/useListRiskExperimentRecommendationsQuery.js +5 -1
- package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListRiskScanRisksQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useSubmitRiskScanFindingsMutation.d.ts +32 -0
- package/dist/chaos-manager/src/services/hooks/useSubmitRiskScanFindingsMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskRuleMutation.d.ts +32 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskRuleMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +28 -0
- package/dist/chaos-manager/src/services/index.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultData.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeData.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultGetFaultResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceLinkedDiscoveredService.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceLinkedDiscoveredService.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesChaosServiceResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesCreateRequest.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesLinkedDiscoveredServiceRef.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesLinkedDiscoveredServiceRef.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesUpdateRequest.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseAgentConfiguration.d.ts +25 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseDataCollectionConfiguration.d.ts +16 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseDiscoveredServiceCodeRepositorySpec.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseDiscoveredServiceCodeRepositorySpec.js +4 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseDiscoveredServiceCollection.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/DatabaseDiscoveredServiceSpec.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseResourceWatchConfig.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseResourceWatchConfig.js +4 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseServiceCollection.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentJitProbe.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentJitProbe.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentJitProbeLink.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentJitProbeLink.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentTargetService.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentTargetService.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetExperimentRunResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimenttemplateFault.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ExperimenttemplateProbe.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/FaulttemplateFaultTemplate.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2GetKubernetesInfrastructureV2YamlRequest.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2RegisterInfrastructureV2Request.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/RiskCodeLocation.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RiskCodeLocation.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskCodeRepository.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskCodeRepository.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskDetectionMethod.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/RiskLinkedService.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskLinkedService.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskRiskDataSource.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSource.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSourceCodeRepository.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSourceCodeRepository.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanType.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/RiskServiceDetails.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/RiskTargetServiceType.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/RiskexperimentrecommendationsRiskExperimentRecommendationSpec.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesCreateRequest.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesCreateRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesUpdateRequest.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesUpdateRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansFindingError.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansFindingError.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceContext.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceContext.js +0 -3
- package/dist/chaos-manager/src/services/schemas/RiskscansRecommendationCounts.d.ts +3 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansRecommendationCounts.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansRiskScanResponse.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmitFindingsRequest.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmitFindingsRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmitFindingsResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmitFindingsResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmittedFinding.d.ts +13 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmittedFinding.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksBulkSaveSummary.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksBulkSaveSummary.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrenceDetail.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/V3DeleteResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/V3DeleteResponse.js +4 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
2
2
|
import type { MongodbInfrastructureType } from '../schemas/MongodbInfrastructureType';
|
|
3
|
+
import type { ChaosserviceLinkedDiscoveredService } from '../schemas/ChaosserviceLinkedDiscoveredService';
|
|
3
4
|
import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
|
|
4
5
|
import type { DatabaseDiscoveredServiceSpec } from '../schemas/DatabaseDiscoveredServiceSpec';
|
|
5
6
|
export interface ChaosservicesChaosServiceResponse {
|
|
@@ -18,6 +19,8 @@ export interface ChaosservicesChaosServiceResponse {
|
|
|
18
19
|
infrastructureType?: MongodbInfrastructureType;
|
|
19
20
|
isAvailable?: boolean;
|
|
20
21
|
isRemoved: boolean;
|
|
22
|
+
linkedDiscoveredService?: ChaosserviceLinkedDiscoveredService;
|
|
23
|
+
module?: string;
|
|
21
24
|
name: string;
|
|
22
25
|
namespace?: string;
|
|
23
26
|
/**
|
|
@@ -33,6 +36,7 @@ export interface ChaosservicesChaosServiceResponse {
|
|
|
33
36
|
* project id to access the resource
|
|
34
37
|
*/
|
|
35
38
|
projectIdentifier?: string;
|
|
39
|
+
repoURL?: string;
|
|
36
40
|
serviceType?: string;
|
|
37
41
|
spec?: DatabaseDiscoveredServiceSpec;
|
|
38
42
|
tags?: string[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MongodbInfrastructureType } from '../schemas/MongodbInfrastructureType';
|
|
2
|
+
import type { ChaosservicesLinkedDiscoveredServiceRef } from '../schemas/ChaosservicesLinkedDiscoveredServiceRef';
|
|
2
3
|
import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
|
|
3
4
|
export interface ChaosservicesCreateRequest {
|
|
4
5
|
agentId?: string;
|
|
@@ -8,6 +9,11 @@ export interface ChaosservicesCreateRequest {
|
|
|
8
9
|
identity?: string;
|
|
9
10
|
infrastructureId?: string;
|
|
10
11
|
infrastructureType?: MongodbInfrastructureType;
|
|
12
|
+
/**
|
|
13
|
+
* LinkedDiscoveredService optionally joins a runtime discovered service.
|
|
14
|
+
* It is only applied when the onboarded custom service type is CodeRepository.
|
|
15
|
+
*/
|
|
16
|
+
linkedDiscoveredService?: ChaosservicesLinkedDiscoveredServiceRef;
|
|
11
17
|
name?: string;
|
|
12
18
|
onboardingId?: string;
|
|
13
19
|
probes?: ChaosservicesServiceProbeAssociation[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { MongodbInfrastructureType } from '../schemas/MongodbInfrastructureType';
|
|
2
|
+
import type { ChaosservicesLinkedDiscoveredServiceRef } from '../schemas/ChaosservicesLinkedDiscoveredServiceRef';
|
|
1
3
|
import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
|
|
2
4
|
export interface ChaosservicesUpdateRequest {
|
|
3
5
|
agentId?: string;
|
|
@@ -6,6 +8,8 @@ export interface ChaosservicesUpdateRequest {
|
|
|
6
8
|
externalServiceId?: string;
|
|
7
9
|
identity?: string;
|
|
8
10
|
infrastructureId?: string;
|
|
11
|
+
infrastructureType?: MongodbInfrastructureType;
|
|
12
|
+
linkedDiscoveredService?: ChaosservicesLinkedDiscoveredServiceRef;
|
|
9
13
|
name?: string;
|
|
10
14
|
probes?: ChaosservicesServiceProbeAssociation[];
|
|
11
15
|
tags?: string[];
|
|
@@ -3,6 +3,31 @@ import type { DatabaseKubernetesAgentConfiguration } from '../schemas/DatabaseKu
|
|
|
3
3
|
import type { DatabaseMtlsConfiguration } from '../schemas/DatabaseMtlsConfiguration';
|
|
4
4
|
import type { DatabaseProxyConfiguration } from '../schemas/DatabaseProxyConfiguration';
|
|
5
5
|
export interface DatabaseAgentConfiguration {
|
|
6
|
+
/**
|
|
7
|
+
* AutoUpgradeDisabled is the per-agent upgrade policy toggle. Nil (or
|
|
8
|
+
* omitted) means auto-upgrade is on, so every agent document written
|
|
9
|
+
* before this field existed keeps behaving as if auto-upgrade were on.
|
|
10
|
+
* It rides the existing config update path rather than the dedicated
|
|
11
|
+
* upgrade-subdocument writer: unlike UpgradeState, this is user-facing
|
|
12
|
+
* policy, not scan/dispatch-owned bookkeeping.
|
|
13
|
+
*
|
|
14
|
+
* A pointer, deliberately: a plain bool cannot distinguish "the update
|
|
15
|
+
* request omitted this field" from "the update explicitly wants
|
|
16
|
+
* auto-upgrade back on" — both decode to false — so a config update
|
|
17
|
+
* that leaves the field out would be indistinguishable from one that
|
|
18
|
+
* re-enables it, and re-enabling would become permanently impossible
|
|
19
|
+
* after the first time it is disabled. Nil is "not specified, carry the
|
|
20
|
+
* prior value forward"; a non-nil value, true or false, is always an
|
|
21
|
+
* explicit instruction and always wins. See preserveAutoUpgradePolicy
|
|
22
|
+
* and IsAutoUpgradeDisabled.
|
|
23
|
+
*
|
|
24
|
+
* Deliberately not a three-value enum (auto/pinned/manual): CollectorImage
|
|
25
|
+
* above already pins with zero new code (DesiredImage returns it verbatim,
|
|
26
|
+
* so a pinned agent classifies as converged and never drifts), and
|
|
27
|
+
* auto-upgrade-off plus the manual-trigger endpoint already **is** manual
|
|
28
|
+
* — a second name for the same state.
|
|
29
|
+
*/
|
|
30
|
+
autoUpgradeDisabled?: boolean;
|
|
6
31
|
collectorImage?: string;
|
|
7
32
|
data: DatabaseDataCollectionConfiguration;
|
|
8
33
|
imagePullSecrets?: string[];
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
import type { DatabaseCronConfig } from '../schemas/DatabaseCronConfig';
|
|
2
|
+
import type { DatabaseResourceWatchConfig } from '../schemas/DatabaseResourceWatchConfig';
|
|
2
3
|
export interface DatabaseDataCollectionConfiguration {
|
|
3
4
|
blacklistedNamespaces?: string[];
|
|
5
|
+
/**
|
|
6
|
+
* CacheSyncTimeoutSec bounds how long the fast-path watcher waits for an
|
|
7
|
+
* informer's initial cache sync before proceeding (slow path still covers
|
|
8
|
+
* the kind). Server-driven like SlowPathIntervalSec.
|
|
9
|
+
*/
|
|
10
|
+
cacheSyncTimeoutSec?: number;
|
|
4
11
|
collectionWindowInMin?: number;
|
|
5
12
|
cron?: DatabaseCronConfig;
|
|
6
13
|
enableBatchResources?: boolean;
|
|
7
14
|
enableNodeAgent?: boolean;
|
|
8
15
|
enableOrphanedPod?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* NamespaceReconcileIntervalSec is how often a permanent agent's fast-path
|
|
18
|
+
* watcher re-resolves the observed namespace set (and re-fetches these
|
|
19
|
+
* timing values) so changes propagate to running collectors without a
|
|
20
|
+
* restart. Server-driven like SlowPathIntervalSec.
|
|
21
|
+
*/
|
|
22
|
+
namespaceReconcileIntervalSec?: number;
|
|
9
23
|
namespaceSelector?: string;
|
|
10
24
|
nodeAgentSelector?: string;
|
|
11
25
|
observedNamespaces?: string[];
|
|
26
|
+
slowPathIntervalSec?: number;
|
|
27
|
+
watchConfig?: DatabaseResourceWatchConfig[];
|
|
12
28
|
}
|
|
@@ -9,6 +9,7 @@ export interface DatabaseDiscoveredServiceCollection {
|
|
|
9
9
|
environmentIdentifier: string;
|
|
10
10
|
id: string;
|
|
11
11
|
identity: string;
|
|
12
|
+
lastSeenAt?: string;
|
|
12
13
|
name: string;
|
|
13
14
|
organizationIdentifier?: string;
|
|
14
15
|
parentUniqueId?: string;
|
|
@@ -17,7 +18,7 @@ export interface DatabaseDiscoveredServiceCollection {
|
|
|
17
18
|
removedAt?: string;
|
|
18
19
|
spec: DatabaseDiscoveredServiceSpec;
|
|
19
20
|
tags?: string[];
|
|
20
|
-
type: 'AmazonApplicationLoadBalancer' | 'AmazonClassicLoadBalancer' | 'AmazonEC2Instance' | 'AmazonLambda' | 'AmazonNetworkLoadBalancer' | 'AmazonRelationalDatabaseService' | 'Kubernetes' | 'LinuxVM' | 'LinuxVMProcess' | 'WindowsVM' | 'WindowsVMProcess';
|
|
21
|
+
type: 'AmazonApplicationLoadBalancer' | 'AmazonClassicLoadBalancer' | 'AmazonEC2Instance' | 'AmazonLambda' | 'AmazonNetworkLoadBalancer' | 'AmazonRelationalDatabaseService' | 'CodeRepository' | 'Kubernetes' | 'LinuxVM' | 'LinuxVMProcess' | 'WindowsVM' | 'WindowsVMProcess';
|
|
21
22
|
uniqueId?: string;
|
|
22
23
|
updatedAt?: string;
|
|
23
24
|
updatedBy?: string;
|
|
@@ -4,6 +4,7 @@ import type { DatabaseDiscoveredServiceAmazonEc2InstanceSpec } from '../schemas/
|
|
|
4
4
|
import type { DatabaseDiscoveredServiceAmazonLambdaSpec } from '../schemas/DatabaseDiscoveredServiceAmazonLambdaSpec';
|
|
5
5
|
import type { DatabaseDiscoveredServiceAmazonNetworkLoadBalancerSpec } from '../schemas/DatabaseDiscoveredServiceAmazonNetworkLoadBalancerSpec';
|
|
6
6
|
import type { DatabaseDiscoveredServiceAmazonRelationalDatabaseServiceSpec } from '../schemas/DatabaseDiscoveredServiceAmazonRelationalDatabaseServiceSpec';
|
|
7
|
+
import type { DatabaseDiscoveredServiceCodeRepositorySpec } from '../schemas/DatabaseDiscoveredServiceCodeRepositorySpec';
|
|
7
8
|
import type { DatabaseEnvironmentIdentity } from '../schemas/DatabaseEnvironmentIdentity';
|
|
8
9
|
import type { DatabaseServiceIdentity } from '../schemas/DatabaseServiceIdentity';
|
|
9
10
|
import type { DatabaseDiscoveredServiceKubernetesSpec } from '../schemas/DatabaseDiscoveredServiceKubernetesSpec';
|
|
@@ -22,6 +23,7 @@ export interface DatabaseDiscoveredServiceSpec {
|
|
|
22
23
|
amazonLambda?: DatabaseDiscoveredServiceAmazonLambdaSpec;
|
|
23
24
|
amazonNetworkLoadBalancer?: DatabaseDiscoveredServiceAmazonNetworkLoadBalancerSpec;
|
|
24
25
|
amazonRelationalDatabaseService?: DatabaseDiscoveredServiceAmazonRelationalDatabaseServiceSpec;
|
|
26
|
+
codeRepository?: DatabaseDiscoveredServiceCodeRepositorySpec;
|
|
25
27
|
fqdn?: string[];
|
|
26
28
|
harnessEnvironmentIdentity?: DatabaseEnvironmentIdentity;
|
|
27
29
|
harnessServiceIdentity?: DatabaseServiceIdentity;
|
|
@@ -13,11 +13,13 @@ export interface DatabaseServiceCollection {
|
|
|
13
13
|
creationTimestamp?: string;
|
|
14
14
|
deletionTimestamp?: string;
|
|
15
15
|
environmentIdentifier: string;
|
|
16
|
+
health?: string;
|
|
16
17
|
id: string;
|
|
17
18
|
kind: string;
|
|
18
19
|
labels?: {
|
|
19
20
|
[key: string]: string;
|
|
20
21
|
};
|
|
22
|
+
lastSeenAt?: string;
|
|
21
23
|
name: string;
|
|
22
24
|
namespace: string;
|
|
23
25
|
organizationIdentifier?: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ExperimentConditions } from '../schemas/ExperimentConditions';
|
|
2
|
+
import type { ExperimentJitProbe } from '../schemas/ExperimentJitProbe';
|
|
3
|
+
import type { ExperimentTargetService } from '../schemas/ExperimentTargetService';
|
|
2
4
|
import type { TemplateInputMinimum } from '../schemas/TemplateInputMinimum';
|
|
3
5
|
export interface ExperimentFaultRef {
|
|
4
6
|
/**
|
|
@@ -22,11 +24,19 @@ export interface ExperimentFaultRef {
|
|
|
22
24
|
*/
|
|
23
25
|
isEnterprise?: boolean;
|
|
24
26
|
isRemote?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* JitProbe configures just-in-time probe materialization from the service's associated probes
|
|
29
|
+
*/
|
|
30
|
+
jitProbe?: ExperimentJitProbe;
|
|
25
31
|
/**
|
|
26
32
|
* Name of the fault reference
|
|
27
33
|
*/
|
|
28
34
|
name?: string;
|
|
29
35
|
remoteInfraRef?: string;
|
|
36
|
+
/**
|
|
37
|
+
* TargetService is the optional chaos service targeted by this fault node
|
|
38
|
+
*/
|
|
39
|
+
targetService?: ExperimentTargetService;
|
|
30
40
|
/**
|
|
31
41
|
* Values to store the inputs
|
|
32
42
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface ExperimentJitProbe {
|
|
2
|
+
/**
|
|
3
|
+
* Enabled pulls the fault node's service-associated probes at runtime
|
|
4
|
+
*/
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* FromFaultStepIdentity is the fault step supplying the shared probe set; empty = own TargetService
|
|
8
|
+
*/
|
|
9
|
+
fromFaultStepIdentity?: string;
|
|
10
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ExperimentProbeActions } from '../schemas/ExperimentProbeActions';
|
|
2
2
|
import type { ExperimentConditions } from '../schemas/ExperimentConditions';
|
|
3
|
+
import type { ExperimentJitProbeLink } from '../schemas/ExperimentJitProbeLink';
|
|
3
4
|
import type { TemplateInputMinimum } from '../schemas/TemplateInputMinimum';
|
|
4
5
|
export interface ExperimentProbeRef {
|
|
5
6
|
/**
|
|
@@ -35,6 +36,10 @@ export interface ExperimentProbeRef {
|
|
|
35
36
|
* IsVerfied to verify the probe
|
|
36
37
|
*/
|
|
37
38
|
isVerified?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* JitProbe marks this probe as JIT-materialized and links it to the owning fault steps
|
|
41
|
+
*/
|
|
42
|
+
jitProbe?: ExperimentJitProbeLink;
|
|
38
43
|
/**
|
|
39
44
|
* Name of the probe
|
|
40
45
|
*/
|
|
@@ -9,6 +9,7 @@ import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperime
|
|
|
9
9
|
export interface ExperimentrunsGetExperimentRunResponse {
|
|
10
10
|
accountID: string;
|
|
11
11
|
actions?: ChaosExperimentRunAction[];
|
|
12
|
+
billingValue?: number;
|
|
12
13
|
completed?: boolean;
|
|
13
14
|
/**
|
|
14
15
|
* correlation id is used to debug micro svc communication
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ExperimentConditions } from '../schemas/ExperimentConditions';
|
|
2
|
+
import type { ExperimentJitProbe } from '../schemas/ExperimentJitProbe';
|
|
3
|
+
import type { ExperimentTargetService } from '../schemas/ExperimentTargetService';
|
|
2
4
|
import type { TemplateInputMinimum } from '../schemas/TemplateInputMinimum';
|
|
3
5
|
export interface ExperimenttemplateFault {
|
|
4
6
|
authEnabled?: boolean;
|
|
@@ -6,7 +8,15 @@ export interface ExperimenttemplateFault {
|
|
|
6
8
|
identity?: string;
|
|
7
9
|
infraId?: string;
|
|
8
10
|
isEnterprise?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* JitProbe configures just-in-time probe materialization from the service's associated probes
|
|
13
|
+
*/
|
|
14
|
+
jitProbe?: ExperimentJitProbe;
|
|
9
15
|
name?: string;
|
|
10
16
|
revision?: string;
|
|
17
|
+
/**
|
|
18
|
+
* TargetService is the optional chaos service targeted by this fault
|
|
19
|
+
*/
|
|
20
|
+
targetService?: ExperimentTargetService;
|
|
11
21
|
values?: TemplateInputMinimum[];
|
|
12
22
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ExperimentConditions } from '../schemas/ExperimentConditions';
|
|
2
|
+
import type { ExperimentJitProbeLink } from '../schemas/ExperimentJitProbeLink';
|
|
2
3
|
import type { TemplateInputMinimum } from '../schemas/TemplateInputMinimum';
|
|
3
4
|
export interface ExperimenttemplateProbe {
|
|
4
5
|
conditionsV2?: ExperimentConditions;
|
|
@@ -8,6 +9,10 @@ export interface ExperimenttemplateProbe {
|
|
|
8
9
|
infraId?: string;
|
|
9
10
|
isEnterprise?: boolean;
|
|
10
11
|
isRemote?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* JitProbe links this probe to JIT-materialized fault steps in the expanded manifest
|
|
14
|
+
*/
|
|
15
|
+
jitProbe?: ExperimentJitProbeLink;
|
|
11
16
|
name?: string;
|
|
12
17
|
remoteInfraRef?: string;
|
|
13
18
|
revision?: number;
|
package/dist/chaos-manager/src/services/schemas/InfraV2GetKubernetesInfrastructureV2YamlRequest.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export interface InfraV2GetKubernetesInfrastructureV2YamlRequest {
|
|
|
17
17
|
identifier?: InfraV2Identifiers;
|
|
18
18
|
identity?: string;
|
|
19
19
|
infraNamespace?: string;
|
|
20
|
+
infraNsExists?: boolean;
|
|
21
|
+
infraSaExists?: boolean;
|
|
20
22
|
insecureSkipVerify?: boolean;
|
|
21
23
|
label?: {
|
|
22
24
|
[key: string]: string;
|
package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export interface InfraV2KubernetesInfrastructureV2Details {
|
|
|
36
36
|
imageRegistry?: ImageRegistryImageRegistryV2;
|
|
37
37
|
infraID?: string;
|
|
38
38
|
infraNamespace?: string;
|
|
39
|
+
infraNsExists?: boolean;
|
|
40
|
+
infraSaExists?: boolean;
|
|
39
41
|
infraScope?: InfraV2InfraScope;
|
|
40
42
|
infraType?: InfraV2InfraType;
|
|
41
43
|
insecureSkipVerify?: boolean;
|
|
@@ -31,6 +31,8 @@ export interface InfraV2RegisterInfrastructureV2Request {
|
|
|
31
31
|
imageRegistry?: ImageRegistryImageRegistryV2;
|
|
32
32
|
infraID?: string;
|
|
33
33
|
infraNamespace?: string;
|
|
34
|
+
infraNsExists?: boolean;
|
|
35
|
+
infraSaExists?: boolean;
|
|
34
36
|
infraScope?: InfraV2InfraScope;
|
|
35
37
|
infraType?: InfraV2InfraType;
|
|
36
38
|
insecureSkipVerify?: boolean;
|
package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface InfraV2UpdateKubernetesInfrastructureV2Request {
|
|
|
25
25
|
identity?: string;
|
|
26
26
|
imageRegistry?: ImageRegistryImageRegistryV2;
|
|
27
27
|
infraNamespace?: string;
|
|
28
|
+
infraNsExists?: boolean;
|
|
29
|
+
infraSaExists?: boolean;
|
|
28
30
|
insecureSkipVerify?: boolean;
|
|
29
31
|
label?: {
|
|
30
32
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type RiskDetectionMethod = 'AI' | 'RiskAnalyzer';
|
|
1
|
+
export type RiskDetectionMethod = 'AI' | 'External' | 'RiskAnalyzer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type RiskRiskDataSource = 'ApplicationManifest';
|
|
1
|
+
export type RiskRiskDataSource = 'ApplicationManifest' | 'SourceCode';
|
|
@@ -2,6 +2,10 @@ import type { RiskRiskDataSource } from '../schemas/RiskRiskDataSource';
|
|
|
2
2
|
import type { RiskRiskRulePrompt } from '../schemas/RiskRiskRulePrompt';
|
|
3
3
|
export interface RiskRiskRuleSpec {
|
|
4
4
|
dataSource?: RiskRiskDataSource[];
|
|
5
|
+
/**
|
|
6
|
+
* Faults lists the chaos faults that can prove a risk raised by this rule.
|
|
7
|
+
*/
|
|
8
|
+
faults?: string[];
|
|
5
9
|
isSystem?: boolean;
|
|
6
10
|
prompt?: RiskRiskRulePrompt;
|
|
7
11
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { RiskScanSourceCodeRepository } from '../schemas/RiskScanSourceCodeRepository';
|
|
1
2
|
import type { RiskScanSourceServiceDiscovery } from '../schemas/RiskScanSourceServiceDiscovery';
|
|
2
3
|
import type { RiskScanSourcePipeline } from '../schemas/RiskScanSourcePipeline';
|
|
3
4
|
import type { RiskScanSourceProbeExecution } from '../schemas/RiskScanSourceProbeExecution';
|
|
4
5
|
export interface RiskScanSource {
|
|
6
|
+
codeRepository?: RiskScanSourceCodeRepository;
|
|
5
7
|
discoveryAgent?: RiskScanSourceServiceDiscovery;
|
|
6
8
|
pipeline?: RiskScanSourcePipeline;
|
|
7
9
|
probeExecution?: RiskScanSourceProbeExecution;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RiskLinkedService } from '../schemas/RiskLinkedService';
|
|
2
|
+
export interface RiskScanSourceCodeRepository {
|
|
3
|
+
branch?: string;
|
|
4
|
+
commitSHA?: string;
|
|
5
|
+
linkedServices?: RiskLinkedService[];
|
|
6
|
+
provider?: string;
|
|
7
|
+
/**
|
|
8
|
+
* RepoURL is normalised to host/org/repo (no scheme, credentials or .git).
|
|
9
|
+
*/
|
|
10
|
+
repoURL?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type RiskScanType = 'DiscoveryAgent' | 'PipelineExecution' | 'ProbeExecution';
|
|
1
|
+
export type RiskScanType = 'CodeRepository' | 'DiscoveryAgent' | 'PipelineExecution' | 'ProbeExecution';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { RiskCdService } from '../schemas/RiskCdService';
|
|
2
2
|
import type { RiskChaosService } from '../schemas/RiskChaosService';
|
|
3
|
+
import type { RiskCodeRepository } from '../schemas/RiskCodeRepository';
|
|
3
4
|
import type { RiskDiscoveredService } from '../schemas/RiskDiscoveredService';
|
|
4
5
|
export interface RiskServiceDetails {
|
|
5
6
|
cdService?: RiskCdService;
|
|
6
7
|
chaosService?: RiskChaosService;
|
|
8
|
+
codeRepository?: RiskCodeRepository;
|
|
7
9
|
discoveredService?: RiskDiscoveredService;
|
|
8
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type RiskTargetServiceType = 'CDService' | 'ChaosService' | 'DiscoveredService';
|
|
1
|
+
export type RiskTargetServiceType = 'CDService' | 'ChaosService' | 'CodeRepository' | 'DiscoveredService';
|
|
@@ -29,6 +29,10 @@ export interface RiskexperimentrecommendationsRiskExperimentRecommendationSpec {
|
|
|
29
29
|
riskRuleId?: string;
|
|
30
30
|
scanType?: RiskScanType;
|
|
31
31
|
severity?: RiskSeverity;
|
|
32
|
+
/**
|
|
33
|
+
* SeverityOrder is Severity.Order(), so a severity sort ranks Critical above Low.
|
|
34
|
+
*/
|
|
35
|
+
severityOrder?: number;
|
|
32
36
|
status?: RiskexperimentrecommendationsStatus;
|
|
33
37
|
workload?: RiskexperimentrecommendationsWorkload;
|
|
34
38
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RiskCategory } from '../schemas/RiskCategory';
|
|
2
|
+
import type { RiskSeverity } from '../schemas/RiskSeverity';
|
|
3
|
+
import type { RiskRiskRuleSpec } from '../schemas/RiskRiskRuleSpec';
|
|
4
|
+
export interface RiskrulesCreateRequest {
|
|
5
|
+
category: RiskCategory;
|
|
6
|
+
description?: string;
|
|
7
|
+
identity: string;
|
|
8
|
+
name: string;
|
|
9
|
+
severity: RiskSeverity;
|
|
10
|
+
spec?: RiskRiskRuleSpec;
|
|
11
|
+
tags?: string[];
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RiskCategory } from '../schemas/RiskCategory';
|
|
2
|
+
import type { RiskSeverity } from '../schemas/RiskSeverity';
|
|
3
|
+
import type { RiskRiskRuleSpec } from '../schemas/RiskRiskRuleSpec';
|
|
4
|
+
export interface RiskrulesUpdateRequest {
|
|
5
|
+
category: RiskCategory;
|
|
6
|
+
description?: string;
|
|
7
|
+
name: string;
|
|
8
|
+
severity: RiskSeverity;
|
|
9
|
+
spec?: RiskRiskRuleSpec;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { RiskCollectionSummary } from '../schemas/RiskCollectionSummary';
|
|
2
2
|
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
3
3
|
import type { RiskDetectionMethod } from '../schemas/RiskDetectionMethod';
|
|
4
|
+
import type { RiskscansRecommendationCounts } from '../schemas/RiskscansRecommendationCounts';
|
|
4
5
|
import type { RiskReportInfo } from '../schemas/RiskReportInfo';
|
|
5
6
|
import type { RiskScanResult } from '../schemas/RiskScanResult';
|
|
6
7
|
import type { RiskRiskSummary } from '../schemas/RiskRiskSummary';
|
|
@@ -29,6 +30,7 @@ export interface RiskscansRiskScanResponse {
|
|
|
29
30
|
*/
|
|
30
31
|
parentUniqueID?: string;
|
|
31
32
|
projectID?: string;
|
|
33
|
+
recommendationCounts?: RiskscansRecommendationCounts;
|
|
32
34
|
report?: RiskReportInfo;
|
|
33
35
|
result?: RiskScanResult;
|
|
34
36
|
retryCount?: number;
|