Skip to content
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

[Security Solution] [Cases] Remove dynamic mappings for 3rd party cases mappings #97754

Merged
merged 2 commits into from
Apr 21, 2021

Conversation

stephmilovic
Copy link
Contributor

@stephmilovic stephmilovic commented Apr 20, 2021

Summary

Resolves #97661
Meta https://github.com/elastic/sdh-security-team/issues/121

For cases mappings to third party connectors, we have "preferred fields" to map to for each 3rd party unless the user had another field selected as required and our preferred field is not required. However, the action executor did not allow dynamic fields for the mappings, causing a bug.

The bug has been fixed by only mapping to our preferred fields. If the user has a required field and they try posting from Cases, they will get an error from the third party telling them a case was made without all required fields, hopefully leading the user to make the fields non-required

Note: dynamic fields will actually be a thing in the future when we have bidirectionality

Checklist

@stephmilovic stephmilovic added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Feature:Cases Cases feature v7.14.0 v7.13.0 v7.12.2 labels Apr 20, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@stephmilovic stephmilovic merged commit efaaa40 into elastic:master Apr 21, 2021
@stephmilovic stephmilovic deleted the fix-mappings branch April 21, 2021 17:22
stephmilovic added a commit to stephmilovic/kibana that referenced this pull request Apr 21, 2021
stephmilovic added a commit to stephmilovic/kibana that referenced this pull request Apr 21, 2021
spalger pushed a commit to spalger/kibana that referenced this pull request Apr 21, 2021
spalger pushed a commit that referenced this pull request Apr 22, 2021
…es mappings (#97754) (#97927)

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
@spalger
Copy link
Contributor

spalger commented Apr 22, 2021

Since this went into the 7.12 branch I took care of backporting it to 7.13, since the 7.x backport was merged after the new 7.13 branch was created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Cases Cases feature release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v7.12.2 v7.13.0 v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Cases] Automatic mapping can lead to errors when pushing a case to an external service
5 participants