diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index d8e7771008f2..6a1154e001b2 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -469,6 +469,7 @@ otherwise no tag is added. {issue}42208[42208] {pull}42403[42403] - Add Fleet status updating to HTTP JSON input. {issue}44282[44282] {pull}44365[44365] - Segregated `max_workers` from `batch_size` in the azure-blob-storage input. {issue}44491[44491] {pull}44992[44992] - Add support for relationship expansion to EntraID entity analytics provider. {issue}43324[43324] {pull}44761[44761] +- Update CEL mito extensions to v1.21.0. {issue}40762[40762] {pull}45107[45107] *Auditbeat* diff --git a/NOTICE.txt b/NOTICE.txt index 238f85921ed6..786cf5468dda 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -4649,11 +4649,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2 -Version: v1.36.4 +Version: v1.36.5 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2@v1.36.4/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2@v1.36.5/LICENSE.txt: Apache License @@ -4861,11 +4861,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2@v1.36 -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2/config -Version: v1.29.16 +Version: v1.29.17 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/config@v1.29.16/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/config@v1.29.17/LICENSE.txt: Apache License @@ -5073,11 +5073,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/confi -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2/credentials -Version: v1.17.69 +Version: v1.17.70 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/credentials@v1.17.69/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/credentials@v1.17.70/LICENSE.txt: Apache License @@ -5285,11 +5285,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/crede -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2/feature/ec2/imds -Version: v1.16.31 +Version: v1.16.32 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/feature/ec2/imds@v1.16.31/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/feature/ec2/imds@v1.16.32/LICENSE.txt: Apache License @@ -8677,11 +8677,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/servi -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2/service/sts -Version: v1.33.21 +Version: v1.34.0 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/service/sts@v1.33.21/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/service/sts@v1.34.0/LICENSE.txt: Apache License @@ -8889,11 +8889,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/servi -------------------------------------------------------------------------------- Dependency : github.com/aws/smithy-go -Version: v1.22.2 +Version: v1.22.4 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/smithy-go@v1.22.2/LICENSE: +Contents of probable licence file $GOMODCACHE/github.com/aws/smithy-go@v1.22.4/LICENSE: Apache License @@ -15556,11 +15556,11 @@ limitations under the License. -------------------------------------------------------------------------------- Dependency : github.com/elastic/mito -Version: v1.19.0 +Version: v1.21.0 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/elastic/mito@v1.19.0/LICENSE: +Contents of probable licence file $GOMODCACHE/github.com/elastic/mito@v1.21.0/LICENSE: Apache License @@ -17641,11 +17641,11 @@ Contents of probable licence file $GOMODCACHE/github.com/gomodule/redigo@v1.8.3/ -------------------------------------------------------------------------------- Dependency : github.com/google/cel-go -Version: v0.19.0 +Version: v0.25.0 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/google/cel-go@v0.19.0/LICENSE: +Contents of probable licence file $GOMODCACHE/github.com/google/cel-go@v0.25.0/LICENSE: Apache License @@ -29847,11 +29847,11 @@ THE SOFTWARE. -------------------------------------------------------------------------------- Dependency : cel.dev/expr -Version: v0.20.0 +Version: v0.23.1 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/cel.dev/expr@v0.20.0/LICENSE: +Contents of probable licence file $GOMODCACHE/cel.dev/expr@v0.23.1/LICENSE: Apache License @@ -38328,11 +38328,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go -Version: v1.55.5 +Version: v1.55.7 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go@v1.55.5/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go@v1.55.7/LICENSE.txt: Apache License @@ -38752,11 +38752,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/aws/p -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2/internal/configsources -Version: v1.3.35 +Version: v1.3.36 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.35/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/internal/configsources@v1.3.36/LICENSE.txt: Apache License @@ -38964,11 +38964,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/inter -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 -Version: v2.6.35 +Version: v2.6.36 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.35/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2@v2.6.36/LICENSE.txt: Apache License @@ -39600,11 +39600,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/inter -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding -Version: v1.12.3 +Version: v1.12.4 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding@v1.12.3/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding@v1.12.4/LICENSE.txt: Apache License @@ -40024,11 +40024,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/servi -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2/service/internal/presigned-url -Version: v1.12.16 +Version: v1.12.17 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url@v1.12.16/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url@v1.12.17/LICENSE.txt: Apache License @@ -40448,11 +40448,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/servi -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2/service/sso -Version: v1.25.4 +Version: v1.25.5 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/service/sso@v1.25.4/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/service/sso@v1.25.5/LICENSE.txt: Apache License @@ -40660,11 +40660,11 @@ Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/servi -------------------------------------------------------------------------------- Dependency : github.com/aws/aws-sdk-go-v2/service/ssooidc -Version: v1.30.2 +Version: v1.30.3 Licence type (autodetected): Apache-2.0 -------------------------------------------------------------------------------- -Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/service/ssooidc@v1.30.2/LICENSE.txt: +Contents of probable licence file $GOMODCACHE/github.com/aws/aws-sdk-go-v2/service/ssooidc@v1.30.3/LICENSE.txt: Apache License diff --git a/docs/reference/filebeat/filebeat-input-cel.md b/docs/reference/filebeat/filebeat-input-cel.md index f24e40af3d49..a85ff352c02f 100644 --- a/docs/reference/filebeat/filebeat-input-cel.md +++ b/docs/reference/filebeat/filebeat-input-cel.md @@ -117,7 +117,7 @@ After completion of a program’s execution it should return a single object wit 1. The `events` field must be present, but may be empty or null. If it is not empty, it must only have objects as elements. The field should be an array, but in the case of an error condition in the CEL program it is acceptable to return a single object instead of an array; this will will be wrapped as an array for publication and an error will be logged. If the single object contains a key, "error", the error value will be used to update the status of the input to report to Elastic Agent. This can be used to more rapidly respond to API failures. 2. If `cursor` is present it must be either be a single object or an array with the same length as events; each element *i* of the `cursor` will be the details for obtaining the events at and beyond event *i* in the `events` array. If the `cursor` is a single object it is will be the details for obtaining events after the last event in the `events` array and will only be retained on successful publication of all the events in the `events` array. -3. If `rate_limit` is present it must be a map with numeric fields `rate` and `burst`. The `rate_limit` field may also have a string `error` field and other fields which will be logged. If it has an `error` field, the `rate` and `burst` will not be used to set rate limit behavior. The [Limit](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Limit), and [Okta Rate Limit policy](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#OktaRateLimit) and [Draft Rate Limit policy](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#DraftRateLimit) documentation show how to construct this field. +3. If `rate_limit` is present it must be a map with numeric fields `rate` and `burst`. The `rate_limit` field may also have a string `error` field and other fields which will be logged. If it has an `error` field, the `rate` and `burst` will not be used to set rate limit behavior. The [Limit](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Limit), and [Okta Rate Limit policy](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#OktaRateLimit) and [Draft Rate Limit policy](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#DraftRateLimit) documentation show how to construct this field. 4. The evaluation is repeated with the new state, after removing the events field, if the "want_more" field is present and true, and a non-zero events array is returned. If the "want_more" field is present after a failed evaluation, it is set to false. @@ -133,116 +133,122 @@ The CEL input will log the complete state after evaluation when logging at the D As noted above the `cel` input provides functions, macros, and global variables to extend the language. -* [Collections](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Collections) +* [AWS v4 request signing](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#AWS) - * [Collate](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Collate-Collections) - * [Drop](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Drop-Collections) - * [Drop Empty](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Drop_Empty-Collections) - * [Flatten](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Flatten-Collections) - * [Front](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Front-Collections) - * [Keys](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Keys-Collections) - * [Max](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Max-Collections) - * [Min](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Min-Collections) - * [Sum](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Sum-Collections) - * [Tail](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Tail-Collections) - * [Values](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Values-Collections) - * [With](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-With-Collections) - * [With Replace](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-With_Replace-Collections) - * [With Update](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-With_Update-Collections) - * [Zip](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Zip-Collections) + * [Sign AWS from env](https://pkg.go.dev/github.com/elastic/mito/lib#hdr-Sign_AWS_from_env-AWS) + * [Sign AWS from shared credentials](https://pkg.go.dev/github.com/elastic/mito/lib#hdr-Sign_AWS_from_shared_credentials-AWS) + * [Sign AWS from static credentials](https://pkg.go.dev/github.com/elastic/mito/lib#hdr-Sign_AWS_from_static_credentials-AWS) -* [Crypto](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Crypto) +* [Collections](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Collections) - * [Base64](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Base64-Crypto) - * [Base64 Decode](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Base64_Decode-Crypto) - * [Base64 Raw](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Base64_Raw-Crypto) - * [Base64 Raw Decode](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Base64_Raw_Decode-Crypto) - * [Hex](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Hex-Crypto) - * [Hex Decode](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Hex_Decode-Crypto) - * [MD5](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-MD5-Crypto) - * [SHA-1](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-SHA_1-Crypto) - * [SHA-256](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-SHA_256-Crypto) - * [HMAC](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-HMAC-Crypto) - * [UUID](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-UUID-Crypto) + * [Collate](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Collate-Collections) + * [Drop](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Drop-Collections) + * [Drop Empty](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Drop_Empty-Collections) + * [Flatten](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Flatten-Collections) + * [Front](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Front-Collections) + * [Keys](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Keys-Collections) + * [Max](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Max-Collections) + * [Min](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Min-Collections) + * [Sum](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Sum-Collections) + * [Tail](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Tail-Collections) + * [Values](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Values-Collections) + * [With](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-With-Collections) + * [With Replace](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-With_Replace-Collections) + * [With Update](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-With_Update-Collections) + * [Zip](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Zip-Collections) -* [File](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#File) — the file extension is initialized with MIME handlers for "application/gzip", ["application/x-ndjson"](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#NDJSON), ["application/zip"](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Zip), ["text/csv; header=absent"](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#CSVNoHeader), and ["text/csv; header=present"](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#CSVHeader). +* [Crypto](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Crypto) - * [Dir](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Dir-File) - * [File](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-File-File) + * [Base64](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Base64-Crypto) + * [Base64 Decode](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Base64_Decode-Crypto) + * [Base64 Raw](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Base64_Raw-Crypto) + * [Base64 Raw Decode](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Base64_Raw_Decode-Crypto) + * [Hex](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Hex-Crypto) + * [Hex Decode](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Hex_Decode-Crypto) + * [MD5](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-MD5-Crypto) + * [SHA-1](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-SHA_1-Crypto) + * [SHA-256](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-SHA_256-Crypto) + * [HMAC](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-HMAC-Crypto) + * [UUID](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-UUID-Crypto) -* [HTTP](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#HTTP) +* [File](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#File) — the file extension is initialized with MIME handlers for "application/gzip", ["application/x-ndjson"](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#NDJSON), ["application/zip"](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Zip), ["text/csv; header=absent"](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#CSVNoHeader), and ["text/csv; header=present"](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#CSVHeader). - * [HEAD](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-HEAD-HTTP) - * [GET](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-GET-HTTP) - * [GET Request](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-GET_Request-HTTP) - * [POST](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-POST-HTTP) - * [POST Request](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-POST_Request-HTTP) - * [Request](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Request-HTTP) - * [Basic Authentication](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Basic_Authentication-HTTP) - * [Do Request](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Do_Request-HTTP) - * [Parse URL](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Parse_URL-HTTP) - * [Format URL](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Format_URL-HTTP) - * [Parse Query](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Parse_Query-HTTP) - * [Format Query](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Format_Query-HTTP) + * [Dir](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Dir-File) + * [File](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-File-File) -* [JSON](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#JSON) +* [HTTP](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#HTTP) - * [Encode JSON](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Encode_JSON-JSON) - * [Decode JSON](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Decode_JSON-JSON) - * [Decode JSON Stream](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Decode_JSON_Stream-JSON) + * [HEAD](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-HEAD-HTTP) + * [GET](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-GET-HTTP) + * [GET Request](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-GET_Request-HTTP) + * [POST](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-POST-HTTP) + * [POST Request](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-POST_Request-HTTP) + * [Request](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Request-HTTP) + * [Basic Authentication](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Basic_Authentication-HTTP) + * [Do Request](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Do_Request-HTTP) + * [Parse URL](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Parse_URL-HTTP) + * [Format URL](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Format_URL-HTTP) + * [Parse Query](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Parse_Query-HTTP) + * [Format Query](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Format_Query-HTTP) -* [XML](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#XML) — the XML extension is initialized with XML schema definitions provided via the `xsd` configuration option. +* [JSON](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#JSON) - * [Decode XML](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Decode_XML-XML) + * [Encode JSON](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Encode_JSON-JSON) + * [Decode JSON](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Decode_JSON-JSON) + * [Decode JSON Stream](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Decode_JSON_Stream-JSON) -* [Limit](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Limit) — the rate limit extension is initialized with [Okta (as "okta")](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#OktaRateLimit) and the [Draft Rate Limit (as "draft")](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#DraftRateLimit) policies. +* [XML](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#XML) — the XML extension is initialized with XML schema definitions provided via the `xsd` configuration option. - * [Rate Limit](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Rate_Limit-Limit) + * [Decode XML](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Decode_XML-XML) -* [MIME](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#MIME) — the MIME extension is initialized with MIME handlers for "application/gzip", ["application/x-ndjson"](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#NDJSON), ["application/zip"](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Zip), ["text/csv; header=absent"](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#CSVNoHeader), and ["text/csv; header=present"](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#CSVHeader). +* [Limit](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Limit) — the rate limit extension is initialized with [Okta (as "okta")](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#OktaRateLimit) and the [Draft Rate Limit (as "draft")](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#DraftRateLimit) policies. - * [MIME](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-MIME-MIME) + * [Rate Limit](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Rate_Limit-Limit) -* [Regexp](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Regexp) — the regular expression extension is initialized with the patterns specified in the user input configuration via the `regexp` field. +* [MIME](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#MIME) — the MIME extension is initialized with MIME handlers for "application/gzip", ["application/x-ndjson"](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#NDJSON), ["application/zip"](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Zip), ["text/csv; header=absent"](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#CSVNoHeader), and ["text/csv; header=present"](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#CSVHeader). - * [RE Match](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-RE_Match) - * [RE Find](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-RE_Find) - * [RE Find All](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-RE_Find_All) - * [RE Find Submatch](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-RE_Find_Submatch) - * [RE Find All Submatch](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-RE_Find_All_Submatch) - * [RE Replace All](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-RE_Replace_All) + * [MIME](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-MIME-MIME) -* [Printf](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Printf) +* [Regexp](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Regexp) — the regular expression extension is initialized with the patterns specified in the user input configuration via the `regexp` field. - * [Sprintf](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Sprintf-Printf) + * [RE Match](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-RE_Match) + * [RE Find](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-RE_Find) + * [RE Find All](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-RE_Find_All) + * [RE Find Submatch](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-RE_Find_Submatch) + * [RE Find All Submatch](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-RE_Find_All_Submatch) + * [RE Replace All](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-RE_Replace_All) -* [Strings](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Strings) +* [Printf](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Printf) - * [String Methods](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-String_Methods-Strings) - * [String List Methods](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-String_List_Methods-Strings) - * [Bytes Methods](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Bytes_Methods-Strings) + * [Sprintf](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Sprintf-Printf) -* [Time](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Time) +* [Strings](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Strings) - * [Format](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Format-Time) - * [Parse Time](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Parse_Time-Time) - * [Global Variables](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Global_Variables-Time) + * [String Methods](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-String_Methods-Strings) + * [String List Methods](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-String_List_Methods-Strings) + * [Bytes Methods](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Bytes_Methods-Strings) -* [Try](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Try) +* [Time](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Time) - * [Try](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Try-Try) - * [Is Error](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Is_Error-Try) + * [Format](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Format-Time) + * [Parse Time](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Parse_Time-Time) + * [Global Variables](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Global_Variables-Time) -* [Debug](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#Debug) — the debug handler registers a logger with the name extension `cel_debug` and calls to the CEL `debug` function are emitted to that logger. +* [Try](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Try) - * [Debug](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#hdr-Debug) + * [Try](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Try-Try) + * [Is Error](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Is_Error-Try) + +* [Debug](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#Debug) — the debug handler registers a logger with the name extension `cel_debug` and calls to the CEL `debug` function are emitted to that logger. + + * [Debug](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#hdr-Debug) In addition to the extensions provided in the packages listed above, a global variable `useragent` is also provided which gives the user CEL program access to the filebeat user-agent string. By default, this value is assigned to all requests' user-agent headers unless the CEL program has already set the user-agent header value. Programs wishing to not provide a user-agent, should set this header to the empty string, `""`. Host environment variables are made available via the global map `env`. Only environment variables that have been allow listed via the `allowed_environment` configuration list are visible to the CEL program. -The CEL environment enables the [optional types](https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes) library using the version defined [here](https://pkg.go.dev/github.com/elastic/mito@v1.19.0/lib#OptionalTypesVersion). +The CEL environment enables the [optional types](https://pkg.go.dev/github.com/google/cel-go/cel#OptionalTypes) library using the version defined [here](https://pkg.go.dev/github.com/elastic/mito@v1.21.0/lib#OptionalTypesVersion). Additionally, it supports authentication via Basic Authentication, Digest Authentication or OAuth2. diff --git a/go.mod b/go.mod index 71194ce5e0e9..e685e3e249bc 100644 --- a/go.mod +++ b/go.mod @@ -22,9 +22,9 @@ require ( github.com/akavel/rsrc v0.8.0 // indirect github.com/apoydence/eachers v0.0.0-20181020210610-23942921fe77 // indirect github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 - github.com/aws/aws-sdk-go-v2 v1.36.4 - github.com/aws/aws-sdk-go-v2/config v1.29.16 - github.com/aws/aws-sdk-go-v2/credentials v1.17.69 + github.com/aws/aws-sdk-go-v2 v1.36.5 + github.com/aws/aws-sdk-go-v2/config v1.29.17 + github.com/aws/aws-sdk-go-v2/credentials v1.17.70 github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.45.2 github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.50.2 github.com/aws/aws-sdk-go-v2/service/costexplorer v1.51.1 @@ -36,7 +36,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.26.5 github.com/aws/aws-sdk-go-v2/service/s3 v1.80.2 github.com/aws/aws-sdk-go-v2/service/sqs v1.38.7 - github.com/aws/aws-sdk-go-v2/service/sts v1.33.21 + github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 github.com/blakesmith/ar v0.0.0-20150311145944-8bd4349a67f2 github.com/cavaliergopher/rpm v1.2.0 github.com/cespare/xxhash/v2 v2.3.0 @@ -164,12 +164,12 @@ require ( github.com/Azure/azure-storage-blob-go v0.15.0 github.com/aerospike/aerospike-client-go/v7 v7.7.1 github.com/apache/arrow/go/v17 v17.0.0 - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.79 github.com/aws/aws-sdk-go-v2/service/apigateway v1.31.3 github.com/aws/aws-sdk-go-v2/service/apigatewayv2 v1.28.3 github.com/aws/aws-sdk-go-v2/service/health v1.30.3 - github.com/aws/smithy-go v1.22.2 + github.com/aws/smithy-go v1.22.4 github.com/dgraph-io/badger/v4 v4.6.0 github.com/elastic/bayeux v1.0.5 github.com/elastic/ebpfevents v0.7.0 @@ -180,7 +180,7 @@ require ( github.com/elastic/go-freelru v0.16.0 github.com/elastic/go-quark v0.3.0 github.com/elastic/go-sfdc v0.0.0-20241010131323-8e176480d727 - github.com/elastic/mito v1.19.0 + github.com/elastic/mito v1.21.0 github.com/elastic/mock-es v0.0.0-20240712014503-e5b47ece0015 github.com/elastic/sarama v1.19.1-0.20250603175145-7672917f26b6 github.com/elastic/tk-btf v0.1.0 @@ -191,7 +191,7 @@ require ( github.com/go-resty/resty/v2 v2.13.1 github.com/gofrs/uuid/v5 v5.2.0 github.com/golang-jwt/jwt/v5 v5.2.2 - github.com/google/cel-go v0.19.0 + github.com/google/cel-go v0.25.0 github.com/googleapis/gax-go/v2 v2.14.0 github.com/gorilla/handlers v1.5.1 github.com/gorilla/mux v1.8.0 @@ -238,7 +238,7 @@ require ( require ( aqwari.net/xml v0.0.0-20210331023308-d9421b293817 // indirect - cel.dev/expr v0.20.0 // indirect + cel.dev/expr v0.23.1 // indirect cloud.google.com/go/auth v0.13.0 // indirect cloud.google.com/go/auth/oauth2adapt v0.2.6 // indirect cloud.google.com/go/compute/metadata v0.6.0 // indirect @@ -266,17 +266,18 @@ require ( github.com/apache/arrow/go/v15 v15.0.2 // indirect github.com/apache/thrift v0.20.0 // indirect github.com/armon/go-radix v1.0.0 // indirect + github.com/aws/aws-sdk-go v1.55.7 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 // indirect github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.3 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 // indirect github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 // indirect github.com/benbjohnson/clock v1.3.0 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bluekeyes/go-gitdiff v0.7.1 // indirect diff --git a/go.sum b/go.sum index 7409ddf24bc7..fa095579c32c 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ aqwari.net/xml v0.0.0-20210331023308-d9421b293817 h1:+3Rh5EaTzNLnzWx3/uy/mAaH/dGI7svJ6e0oOIDcPuE= aqwari.net/xml v0.0.0-20210331023308-d9421b293817/go.mod h1:c7kkWzc7HS/t8Q2DcVY8P2d1dyWNEhEVT5pL0ZHO11c= -cel.dev/expr v0.20.0 h1:OunBvVCfvpWlt4dN7zg3FM6TDkzOePe1+foGJ9AXeeI= -cel.dev/expr v0.20.0/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= +cel.dev/expr v0.23.1 h1:K4KOtPCJQjVggkARsjG9RWXP6O4R73aHeJMa/dmCQQg= +cel.dev/expr v0.23.1/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.116.0 h1:B3fRrSDkLRt5qSHWe40ERJvhvnQwdZiHu0bJOpldweE= @@ -177,24 +177,24 @@ github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= -github.com/aws/aws-sdk-go v1.55.5 h1:KKUZBfBoyqy5d3swXyiC7Q76ic40rYcbqH7qjh59kzU= -github.com/aws/aws-sdk-go v1.55.5/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= -github.com/aws/aws-sdk-go-v2 v1.36.4 h1:GySzjhVvx0ERP6eyfAbAuAXLtAda5TEy19E5q5W8I9E= -github.com/aws/aws-sdk-go-v2 v1.36.4/go.mod h1:LLXuLpgzEbD766Z5ECcRmi8AzSwfZItDtmABVkRLGzg= +github.com/aws/aws-sdk-go v1.55.7 h1:UJrkFq7es5CShfBwlWAC8DA077vp8PyVbQd3lqLiztE= +github.com/aws/aws-sdk-go v1.55.7/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= +github.com/aws/aws-sdk-go-v2 v1.36.5 h1:0OF9RiEMEdDdZEMqF9MRjevyxAQcf6gY+E7vwBILFj0= +github.com/aws/aws-sdk-go-v2 v1.36.5/go.mod h1:EYrzvCCN9CMUTa5+6lf6MM4tq3Zjp8UhSGR/cBsjai0= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 h1:zAybnyUQXIZ5mok5Jqwlf58/TFE7uvd3IAsa1aF9cXs= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10/go.mod h1:qqvMj6gHLR/EXWZw4ZbqlPbQUyenf4h82UQUlKc+l14= -github.com/aws/aws-sdk-go-v2/config v1.29.16 h1:XkruGnXX1nEZ+Nyo9v84TzsX+nj86icbFAeust6uo8A= -github.com/aws/aws-sdk-go-v2/config v1.29.16/go.mod h1:uCW7PNjGwZ5cOGZ5jr8vCWrYkGIhPoTNV23Q/tpHKzg= -github.com/aws/aws-sdk-go-v2/credentials v1.17.69 h1:8B8ZQboRc3uaIKjshve/XlvJ570R7BKNy3gftSbS178= -github.com/aws/aws-sdk-go-v2/credentials v1.17.69/go.mod h1:gPME6I8grR1jCqBFEGthULiolzf/Sexq/Wy42ibKK9c= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31 h1:oQWSGexYasNpYp4epLGZxxjsDo8BMBh6iNWkTXQvkwk= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.31/go.mod h1:nc332eGUU+djP3vrMI6blS0woaCfHTe3KiSQUVTMRq0= +github.com/aws/aws-sdk-go-v2/config v1.29.17 h1:jSuiQ5jEe4SAMH6lLRMY9OVC+TqJLP5655pBGjmnjr0= +github.com/aws/aws-sdk-go-v2/config v1.29.17/go.mod h1:9P4wwACpbeXs9Pm9w1QTh6BwWwJjwYvJ1iCt5QbCXh8= +github.com/aws/aws-sdk-go-v2/credentials v1.17.70 h1:ONnH5CM16RTXRkS8Z1qg7/s2eDOhHhaXVd72mmyv4/0= +github.com/aws/aws-sdk-go-v2/credentials v1.17.70/go.mod h1:M+lWhhmomVGgtuPOhO85u4pEa3SmssPTdcYpP/5J/xc= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32 h1:KAXP9JSHO1vKGCr5f4O6WmlVKLFFXgWYAGoJosorxzU= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.32/go.mod h1:h4Sg6FQdexC1yYG9RDnOvLbW1a/P986++/Y/a+GyEM8= github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.79 h1:mGo6WGWry+s5GEf2GLfw3zkHad109FQmtvBV3VYQ8mA= github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.79/go.mod h1:siwnpWxHYFSSge7Euw9lGMgQBgvRyym352mCuGNHsMQ= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35 h1:o1v1VFfPcDVlK3ll1L5xHsaQAFdNtZ5GXnNR7SwueC4= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.35/go.mod h1:rZUQNYMNG+8uZxz9FOerQJ+FceCiodXvixpeRtdESrU= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35 h1:R5b82ubO2NntENm3SAm0ADME+H630HomNJdgv+yZ3xw= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.35/go.mod h1:FuA+nmgMRfkzVKYDNEqQadvEMxtxl9+RLT9ribCwEMs= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 h1:SsytQyTMHMDPspp+spo7XwXTP44aJZZAC7fBV2C5+5s= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36/go.mod h1:Q1lnJArKRXkenyog6+Y+zr7WDpk4e6XlR6gs20bbeNo= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 h1:i2vNHQiXUvKhs3quBR6aqlgJaiaexz/aNvdCktW/kAM= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36/go.mod h1:UdyGa7Q91id/sdyHPwth+043HhmP6yP9MBHgbZM0xo8= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 h1:bIqFDwgGXXN1Kpp99pDOdKMTTb5d2KyU5X/BZxjOkRo= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3/go.mod h1:H5O/EsxDWyU+LP/V8i5sm8cxoZgc2fdNR9bxlOFrQTo= github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.35 h1:th/m+Q18CkajTw1iqx2cKkLCij/uz8NMwJFPK91p2ug= @@ -217,12 +217,12 @@ github.com/aws/aws-sdk-go-v2/service/health v1.30.3 h1:calnqWx6QS7sSy50SkYxnvw5I github.com/aws/aws-sdk-go-v2/service/health v1.30.3/go.mod h1:EdJbR2a/rKOvTtMwmGuO1uvqDAw2xttLLbbyO+uaIP4= github.com/aws/aws-sdk-go-v2/service/iam v1.42.1 h1:w41T3NvOJdpMeuAd3sXKGDj9hC3Gl2l/Ijl6WRAtkWg= github.com/aws/aws-sdk-go-v2/service/iam v1.42.1/go.mod h1:JNyIvyaNq8HVkFePaU5lki3CTDa5YeGMZm+yeQBynko= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3 h1:eAh2A4b5IzM/lum78bZ590jy36+d/aFLgKF/4Vd1xPE= -github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.3/go.mod h1:0yKJC/kb8sAnmlYa6Zs3QVYqaC8ug2AbnNChv5Ox3uA= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4 h1:CXV68E2dNqhuynZJPB80bhPQwAKqBWVer887figW6Jc= +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.4/go.mod h1:/xFi9KtvBXP97ppCz1TAEvU1Uf66qvid89rbem3wCzQ= github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.3 h1:VHPZakq2L7w+RLzV54LmQavbvheFaR2u1NomJRSEfcU= github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.7.3/go.mod h1:DX1e/lkbsAt0MkY3NgLYuH4jQvRfw8MYxTe9feR7aXM= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16 h1:/ldKrPPXTC421bTNWrUIpq3CxwHwRI/kpc+jPUTJocM= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.16/go.mod h1:5vkf/Ws0/wgIMJDQbjI4p2op86hNW6Hie5QtebrDgT8= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17 h1:t0E6FzREdtCsiLIoLCWsYliNsRBgyGD/MCK571qk4MI= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.17/go.mod h1:ygpklyoaypuyDvOM5ujWGrYWpAK3h7ugnmKCU/76Ys4= github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16 h1:2HuI7vWKhFWsBhIr2Zq8KfFZT6xqaId2XXnXZjkbEuc= github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.16/go.mod h1:BrwWnsfbFtFeRjdx0iM1ymvlqDX1Oz68JsQaibX/wG8= github.com/aws/aws-sdk-go-v2/service/organizations v1.38.4 h1:c9K/EJ59uX93DPV1KAlNPDVBEi9HNEH8pnnauJrl1IA= @@ -235,14 +235,14 @@ github.com/aws/aws-sdk-go-v2/service/s3 v1.80.2 h1:T6Wu+8E2LeTUqzqQ/Bh1EoFNj1u4j github.com/aws/aws-sdk-go-v2/service/s3 v1.80.2/go.mod h1:chSY8zfqmS0OnhZoO/hpPx/BHfAIL80m77HwhRLYScY= github.com/aws/aws-sdk-go-v2/service/sqs v1.38.7 h1:hbOlzaZYwfKhLss4XhjtcEQkVCI6BnzzYF+Wrlhtv/w= github.com/aws/aws-sdk-go-v2/service/sqs v1.38.7/go.mod h1:cSnwA6RKvtcl0f7ORIrOdSVV6XQmdAHUDAxuQRGF/kw= -github.com/aws/aws-sdk-go-v2/service/sso v1.25.4 h1:EU58LP8ozQDVroOEyAfcq0cGc5R/FTZjVoYJ6tvby3w= -github.com/aws/aws-sdk-go-v2/service/sso v1.25.4/go.mod h1:CrtOgCcysxMvrCoHnvNAD7PHWclmoFG78Q2xLK0KKcs= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2 h1:XB4z0hbQtpmBnb1FQYvKaCM7UsS6Y/u8jVBwIUGeCTk= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.2/go.mod h1:hwRpqkRxnQ58J9blRDrB4IanlXCpcKmsC83EhG77upg= -github.com/aws/aws-sdk-go-v2/service/sts v1.33.21 h1:nyLjs8sYJShFYj6aiyjCBI3EcLn1udWrQTjEF+SOXB0= -github.com/aws/aws-sdk-go-v2/service/sts v1.33.21/go.mod h1:EhdxtZ+g84MSGrSrHzZiUm9PYiZkrADNja15wtRJSJo= -github.com/aws/smithy-go v1.22.2 h1:6D9hW43xKFrRx/tXXfAlIZc4JI+yQe6snnWcQyxSyLQ= -github.com/aws/smithy-go v1.22.2/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg= +github.com/aws/aws-sdk-go-v2/service/sso v1.25.5 h1:AIRJ3lfb2w/1/8wOOSqYb9fUKGwQbtysJ2H1MofRUPg= +github.com/aws/aws-sdk-go-v2/service/sso v1.25.5/go.mod h1:b7SiVprpU+iGazDUqvRSLf5XmCdn+JtT1on7uNL6Ipc= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3 h1:BpOxT3yhLwSJ77qIY3DoHAQjZsc4HEGfMCE4NGy3uFg= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.30.3/go.mod h1:vq/GQR1gOFLquZMSrxUK/cpvKCNVYibNyJ1m7JrU88E= +github.com/aws/aws-sdk-go-v2/service/sts v1.34.0 h1:NFOJ/NXEGV4Rq//71Hs1jC/NvPs1ezajK+yQmkwnPV0= +github.com/aws/aws-sdk-go-v2/service/sts v1.34.0/go.mod h1:7ph2tGpfQvwzgistp2+zga9f+bCjlQJPkPUmMgDSD7w= +github.com/aws/smithy-go v1.22.4 h1:uqXzVZNuNexwc/xrh6Tb56u89WDlJY6HS+KC0S4QSjw= +github.com/aws/smithy-go v1.22.4/go.mod h1:t1ufH5HMublsJYulve2RKmHDC15xu1f26kHCp/HgceI= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= @@ -408,8 +408,8 @@ github.com/elastic/gopacket v1.1.20-0.20241002174017-e8c5fda595e6 h1:VgOx6omXIMK github.com/elastic/gopacket v1.1.20-0.20241002174017-e8c5fda595e6/go.mod h1:riddUzxTSBpJXk3qBHtYr4qOhFhT6k/1c0E3qkQjQpA= github.com/elastic/gosigar v0.14.3 h1:xwkKwPia+hSfg9GqrCUKYdId102m9qTJIIr7egmK/uo= github.com/elastic/gosigar v0.14.3/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= -github.com/elastic/mito v1.19.0 h1:rrJ8GR6SniJ/KieB5j8kDTNf5vAIJOtKiAz4hcfP1LU= -github.com/elastic/mito v1.19.0/go.mod h1:f+W7LJ18FGwjVGmbXlOLVYsAbuVAtqqMkgdh0Sf00W0= +github.com/elastic/mito v1.21.0 h1:4Xr3D9pyjzxK/EnJooy9an/7jGXMhPCF2t+/O4GzDwQ= +github.com/elastic/mito v1.21.0/go.mod h1:h1V+8B62+DXsu0TstJkjsTh5ewJIDJlwzxPkP3HBM9s= github.com/elastic/mock-es v0.0.0-20240712014503-e5b47ece0015 h1:z8cC8GASpPo8yKlbnXI36HQ/BM9wYjhBPNbDjAWm0VU= github.com/elastic/mock-es v0.0.0-20240712014503-e5b47ece0015/go.mod h1:qH9DX/Dmflz6EAtaks/+2SsdQzecVAKE174Zl66hk7E= github.com/elastic/pkcs8 v1.0.0 h1:HhitlUKxhN288kcNcYkjW6/ouvuwJWd9ioxpjnD9jVA= @@ -560,8 +560,8 @@ github.com/golang/snappy v1.0.0 h1:Oy607GVXHs7RtbggtPBnr2RmDArIsAefDwvrdWvRhGs= github.com/golang/snappy v1.0.0/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/gomodule/redigo v1.8.3 h1:HR0kYDX2RJZvAup8CsiJwxB4dTCSC0AaUq6S4SiLwUc= github.com/gomodule/redigo v1.8.3/go.mod h1:P9dn9mFrCBvWhGE1wpxx6fgq7BAeLBk+UUUzlpkBYO0= -github.com/google/cel-go v0.19.0 h1:vVgaZoHPBDd1lXCYGQOh5A06L4EtuIfmqQ/qnSXSKiU= -github.com/google/cel-go v0.19.0/go.mod h1:kWcIzTsPX0zmQ+H3TirHstLLf9ep5QTsZBN9u4dOYLg= +github.com/google/cel-go v0.25.0 h1:jsFw9Fhn+3y2kBbltZR4VEz5xKkcIFRPDnuEzAGv5GY= +github.com/google/cel-go v0.25.0/go.mod h1:hjEb6r5SuOSlhCHmFoLzu8HGCERvIsDAbxDAyNU/MmI= github.com/google/flatbuffers v25.2.10+incompatible h1:F3vclr7C3HpB1k9mxCGRMXq6FdUalZ6H/pNX4FP1v0Q= github.com/google/flatbuffers v25.2.10+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= github.com/google/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I= diff --git a/x-pack/filebeat/input/cel/input.go b/x-pack/filebeat/input/cel/input.go index 7fed7e228d2f..6321e2ac7215 100644 --- a/x-pack/filebeat/input/cel/input.go +++ b/x-pack/filebeat/input/cel/input.go @@ -36,7 +36,8 @@ import ( "golang.org/x/time/rate" "github.com/google/cel-go/cel" - "github.com/google/cel-go/checker/decls" + "github.com/google/cel-go/common/decls" + "github.com/google/cel-go/common/types" "google.golang.org/protobuf/types/known/structpb" v2 "github.com/elastic/beats/v7/filebeat/input/v2" @@ -1060,8 +1061,9 @@ func newProgram(ctx context.Context, src, root string, vars map[string]string, c return nil, nil, nil, fmt.Errorf("failed to build xml type hints: %w", err) } opts := []cel.EnvOption{ - cel.Declarations(decls.NewVar(root, decls.Dyn)), + cel.VariableDecls(decls.NewVariable(root, types.DynType)), cel.OptionalTypes(cel.OptionalTypesVersion(lib.OptionalTypesVersion)), + lib.AWS(), lib.Collections(), lib.Crypto(), lib.JSON(nil), diff --git a/x-pack/filebeat/input/cel/input_test.go b/x-pack/filebeat/input/cel/input_test.go index 73f30e83b06c..fd398380694b 100644 --- a/x-pack/filebeat/input/cel/input_test.go +++ b/x-pack/filebeat/input/cel/input_test.go @@ -469,6 +469,33 @@ var inputTests = []struct { {"message": "not present"}, }, }, + { + // This test exists purely to demonstrate that the lib is available. + name: "aws_signing_static", + config: map[string]interface{}{ + "interval": 1, + "program": `{"events": [{ + "message": post_request("http://www.example.com/", "text/plain", "request data").sign_aws_from_static( + "id", "long_enough_secret", "token", // secret must be longer than 112 bits for FIPS140 tests to pass. + { + "service": "service", + "region": "region", + "sign_time": timestamp("2009-11-10T23:00:00Z"), + "no_hoist": false, + "no_escape": false, + "disable_session_token": false, + } + ).Header.Authorization[?0].orValue("nope") + }]}`, + "state": nil, + "resource": map[string]interface{}{ + "url": "", + }, + }, + want: []map[string]interface{}{ + {"message": "AWS4-HMAC-SHA256 Credential=id/20091110/region/service/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token, Signature=ad27046c0009e06c6626e6009ba2af96027f4893b7a190ab67aaec85becb25cd"}, + }, + }, // FS-based tests. { @@ -814,7 +841,9 @@ var inputTests = []struct { want: []map[string]interface{}{ { "error": map[string]any{ - "message": string("failed eval: ERROR: :2:16: response body too big\n | get(state.url).Body.as(body, {\n | ...............^"), + "message": `failed eval: ERROR: :3:21: response body too big + | "events": [string(body)] + | ....................^`, }, }, }, @@ -1752,11 +1781,13 @@ var inputTests = []struct { }, handler: defaultHandler(http.MethodGet, ""), want: []map[string]interface{}{ + // Loss of location information here is a result of changes in the runtime. + // We no longer look into macros at all. This is a huge loss for debugging. { "error": map[string]interface{}{ - "message": `failed eval: ERROR: :3:26: no such overload - | get(state.url+'/'+r.id).Body.decode_json()).as(events, { - | .........................^`, + "message": `failed eval: ERROR: :5:14: no such overload + | "events": events, + | .............^`, }, }, },