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

mito: add support for optional types #45

Merged
merged 2 commits into from
Nov 21, 2023
Merged

mito: add support for optional types #45

merged 2 commits into from
Nov 21, 2023

Conversation

efd6
Copy link
Collaborator

@efd6 efd6 commented Nov 2, 2023

This brings support for optional types as described here. For example (excerpted):

obj.?field.subfield
{?key: obj.?field.subfield}

and

[a, ?b, ?c] // return a list with either [a], [a, b], [a, b, c], or [a, c]

Point to consider: I've confirmed on the cel-discuss list that optional types are backwards compatible, so we could just have them always on, rather than configurable.

Please take a look.

This is the latest version with the internals we depend on. Upgrading to v0.18
will take more work.
@efd6 efd6 added the enhancement New feature or request label Nov 2, 2023
@efd6 efd6 requested a review from a team November 2, 2023 02:18
@efd6 efd6 self-assigned this Nov 2, 2023
@efd6 efd6 added the Team:Security-External Integrations Label for the Security External Integrations team label Nov 2, 2023
@efd6
Copy link
Collaborator Author

efd6 commented Nov 6, 2023

I have looked into v0.18 upgrade and it is reasonably straightforward. However, I think it would be prudent to wait a bit since the internals of CEL have changed significantly.

Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

We can try this out against our existing Fleet integrations via 8.12 snapshots before it ships in a Filebeat release.

@efd6
Copy link
Collaborator Author

efd6 commented Nov 11, 2023

I've changed strategy to be "always on".

@efd6 efd6 requested a review from andrewkroh November 11, 2023 23:42
@efd6 efd6 merged commit 3388273 into dev Nov 21, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Team:Security-External Integrations Label for the Security External Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants