Skip to content

Commit

Permalink
fixed add integration for security lake
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan committed Jun 7, 2024
1 parent a314120 commit 5a813f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file modified observabilityDashboards-2.13.0.zip
Binary file not shown.
10 changes: 9 additions & 1 deletion public/components/integrations/components/setup_integration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const addIntegration = async ({
if (!res) {
setLoading(false);
}
} else if (config.connectionType === 's3') {
} else if (config.connectionType === 's3' || config.connectionType === 'securityLake') {
const http = coreRefs.http!;

const assets: { data: ParsedIntegrationAsset[] } = await http.get(
Expand Down Expand Up @@ -221,6 +221,14 @@ const isConfigValid = (config: IntegrationSetupInputs, integration: IntegrationC
config.connectionLocation.startsWith('s3://') && config.checkpointLocation.startsWith('s3://')
);
}
if (config.connectionType === 'securityLake') {
if (integration.workflows && config.enabledWorkflows.length < 1) {
return false;
}
return (
config.checkpointLocation.startsWith('s3://')
);
}
return true;
};

Expand Down

0 comments on commit 5a813f5

Please sign in to comment.