Skip to content

Fix security_rule format - #175

Merged
mtojek merged 2 commits into
elastic:masterfrom
mtojek:fix-security-rule
May 13, 2021
Merged

Fix security_rule format#175
mtojek merged 2 commits into
elastic:masterfrom
mtojek:fix-security-rule

Conversation

@mtojek

@mtojek mtojek commented May 13, 2021

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR fixes the expected format of security rules.

Why is it important?

We need to properly validate IDs.

Checklist

Related issues

@mtojek mtojek self-assigned this May 13, 2021
@mtojek
mtojek requested a review from ycombinator May 13, 2021 14:48
@elasticmachine

elasticmachine commented May 13, 2021

Copy link
Copy Markdown

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #175 updated

  • Start Time: 2021-05-13T14:49:45.018+0000

  • Duration: 2 min 18 sec

  • Commit: 5eb274e

Trends 🧪

Image of Build Times

@ycombinator ycombinator left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@mtojek
mtojek merged commit 8f9ce2a into elastic:master May 13, 2021
continue
}

if ruleID != objectID {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no reason these have to match.

The rule_id is only relevant to the Security solution.
The top level id is the saved object ID. It's possible that in the future we want better named SO ids. But we can loosen up this spec up then if that happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants