-
Notifications
You must be signed in to change notification settings - Fork 474
Update dependency on elastic-package #987
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
Conversation
@ycombinator @rw-access I can't figure out which format of security_rule is correct: Please look at the "rule_id" and "id". |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
Oh! I didn't realize spec was validating anything other than JSON so the spec was out of date. The format inside the integration that's structured like a SO is correct. |
Thanks @rw-access for clarifying this. It seems that we need to fix the package-spec. |
@@ -175,7 +175,7 @@ | |||
], | |||
"references": [ | |||
{ | |||
"id": "mongodb-MongoDB-search", |
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.
These changes seem unrelated to the security rule naming changes?
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.
Linting failed. It seems that the spec hasn't been updated.
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.
Ah, I see. You're referring to the commit name.
@@ -22,7 +22,7 @@ | |||
"https://developer.okta.com/docs/reference/api/event-types/" | |||
], | |||
"risk_score": 21, | |||
"rule_id": "000047bb-b27a-47ec-8b62-ef1a5d2c9e19", | |||
"rule_id": "rule-000047bb-b27a-47ec-8b62-ef1a5d2c9e19", |
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.
wait this isn't right. I don't understand why this happened
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.
We have a rule that ID should consistent with filename. Do you prefer to go the other way round, I mean to rename the file?
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.
The rule ID can't change, it's defined elsewhere. So we could change the filename. That's fine with me.
I don't really understand why it's a hard and fast requirement or why the change is necessary, to be honest.
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.
It's for readability and clarity purposes. We encountered misnaming in the past, e.g. "access-logs-dashboard.json" which contains "error-logs-overview". This way we simplify navigating through resources.
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.
Fixed
@@ -36,6 +36,6 @@ | |||
"type": "query", | |||
"version": 5 | |||
}, | |||
"id": "000047bb-b27a-47ec-8b62-ef1a5d2c9e19", | |||
"id": "rule-000047bb-b27a-47ec-8b62-ef1a5d2c9e19", |
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.
Or this change
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.
Fixed
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. thanks for your patience @mtojek
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.
This PR bumps up dependency on the elastic-package (changes around semantic validation of spec).