axonius: fix orValue on non-optional field access in asset CEL programs#19445
Merged
Conversation
…EL programs The nine asset data streams accessed specific_data with a direct field reference and called orValue on the non-optional result. This worked with cel-go v0.25.0 but cel-go v0.28.0 (google/cel-go#1276, shipped in beats 8.19.16-SNAPSHOT via elastic/mito v1.23.2) correctly rejects orValue on non-optional types. Change the access to use optional field selection (.?) so that orValue receives an optional value as intended. The three data streams that already used optional access (adapter, user, gateway) are unaffected. Fixes elastic#19414 Fixes elastic#19415 Fixes elastic#19416 Fixes elastic#19417 Fixes elastic#19418 Fixes elastic#19419 Fixes elastic#19420 Fixes elastic#19421 Fixes elastic#19422 Fixes elastic#19423 Fixes elastic#19424 Fixes elastic#19425 Fixes elastic#19426 Fixes elastic#19427 Fixes elastic#19428 Fixes elastic#19429 Fixes elastic#19430 Fixes elastic#19431
Contributor
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
|
✅ All changelog entries have the correct PR link. |
🚀 Benchmarks reportTo see the full report comment with |
💚 Build Succeeded
cc @efd6 |
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
kcreddy
approved these changes
Jun 9, 2026
This was referenced Jun 9, 2026
|
Package axonius - 0.1.1 containing this change is available at https://epr.elastic.co/package/axonius/0.1.1/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots