-
Notifications
You must be signed in to change notification settings - Fork 461
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
[AWS] Migrate AWS package to ecs@mappings #10223
Conversation
@efd6, @andrewkroh : As part of the migration of AWS to ECS@mappings. In the AWS waf data stream, the pipeline test fails with the below error. And that's correct, for the web category the allowed list is as seen in the error message.
AWS WAF pipeline default.yml
Would it be ok to stick to the allowed list ? |
@ishleenk17 I think that would a case of the tail wagging the dog; the list there is the expected term not the allowed term, but EP is being unreasonably strict. We had the same issue with ti_opencti (note in particular this line which differs from the stricter option) and in that case we were able to allow them by adding the expected values to the fields definition. It does not appear to be possible to do this in this case; this is because /cc @jsoriano |
Or if wanted only when
Another option would be to override the definition of the web
EP is more strict than it could be in this and many other cases. We do this to encourage consistency and reduce the chances of having problematic situations. For the interpretation of expected vs allowed, we could ignore We could add some toggle to disable these validations, but as mentioned above, there seem to be also reasonable options to fix this specific issue, or circumvent the validations by overriding the definitions of these fields. |
@efd6 : I would go ahead with this option, as we don't add a new category, we just add the expected values to this category.
|
Thanks @ishleenk17 I'm OK with that. |
@ishleenk17 @jsoriano Getting this error from elastic-package while doing the suggested changes in ecs.yml file |
@harnish-elastic what version of elastic-package are you using? I cannot reproduce this failure locally, and in CI I only see these errors:
This would need to be addressed too, by converting the field to array. And given that this needs to be converted to array, I would consider the first option in #10223 (comment) instead of overriding the definition. But as you prefer. @ishleenk17 why do you consider an issue to add a category? |
@jsoriano I am currently using
Mb. I have resolved those errors related to Let me push the suggested changes.
|
@harnish-elastic you are right, this field is not in the package-spec, I think I had tried it but I had surely done something wrong, sorry for the confusion. We would need to make some changes to support this. What do you think about the option of adding |
Sure, let me give a try to your proposal! |
I have opened an issue to support the override of |
Since, event.category doesn't support overriding of expected values, lets go ahead with addition of API to the category. |
🚀 Benchmarks reportTo see the full report comment with |
I don't think "api" matches the semantics of a WAF, but "web" only matches it just barely, so I guess this is something that needs to happen. |
The |
Updated, thanks! |
…ws-ecs-migration Conflicts: packages/aws/changelog.yml packages/aws/docs/elb.md
/test |
2 similar comments
/test |
/test |
💚 Build Succeeded
History
|
Quality Gate passedIssues Measures |
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.
Changes look good!
Hey @elastic/obs-ds-hosted-services, Can someone please have a look and provide Codeowner approval so that we can proceed to merge this PR as soon as possible! |
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
Package aws - 2.17.0 containing this change is available at https://epr.elastic.co/search?package=aws |
Proposed commit message
Command
Checklist
changelog.yml
file.