-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Rules migration] Add Integrations column (#11387) #204639
base: main
Are you sure you want to change the base?
[Rules migration] Add Integrations column (#11387) #204639
Conversation
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
username: string, | ||
esClient: ElasticsearchClient, | ||
logger: Logger, | ||
private packageService?: PackageService |
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.
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.
I don't think it's the best approach to drill a hole through the ruleMigration classes whenever we need a new client/service from the context. But we can keep it this way until we implement a more generic way to get them.
...ons/security/plugins/security_solution/server/lib/siem_migrations/siem_migrations_service.ts
Outdated
Show resolved
Hide resolved
src/plugins/visualizations/public/legacy/embeddable/visualize_embeddable.tsx
Outdated
Show resolved
Hide resolved
x-pack/solutions/security/plugins/security_solution/common/siem_migrations/constants.ts
Show resolved
Hide resolved
@@ -396,6 +396,26 @@ paths: | |||
additionalProperties: | |||
$ref: '../../rule_migration.schema.yaml#/components/schemas/PrebuiltRuleVersion' | |||
|
|||
/internal/siem_migrations/rules/{migration_id}/integrations: |
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.
Do we have the {migration_id} in the path? I am confused
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.
This needs to be /internal/siem_migrations/rules/integrations
@@ -43,7 +44,7 @@ export interface PrebuiltRulesResults { | |||
* @param rulesIds The list of IDs to filter requested prebuilt rules. If not specified, all available prebuilt rules will be returned. | |||
* @returns | |||
*/ | |||
export const getPrebuiltRules = async ( | |||
export const getPrebuiltRulesByIds = async ( |
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.
Not sure about this rename, ruleIds
is an optional parameter
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.
will switch it back 👍
@@ -31,7 +31,7 @@ export class SiemMigrationsService { | |||
} | |||
|
|||
createRulesClient(params: SiemRuleMigrationsCreateClientParams): SiemRuleMigrationsClient { | |||
return this.rules.createClient(params); | |||
return this.rules.createClient({ ...params }); |
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.
why?
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.
this is leftover from my previous approach, where I. was passing packageService
here.. will clean it up
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.
LGTM!
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
History
cc @e40pud |
Summary
Internal link to the feature details
These changes add a functionality which enables related integrations functionality for migration rules:
Other tasks and fixes
Stats
=> byAuthor
=> bySeverity
=> byUpdated
)Note
This feature needs
siemMigrationsEnabled
experimental flag enabled to work.Screen recording