From cd03b31eb2ce77bcb0b735f48f2583d2520d1f8b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Mar 2024 12:28:25 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/aiven/go-api-schemas from 1.61.0 to 1.63.0 Bumps [github.com/aiven/go-api-schemas](https://github.com/aiven/go-api-schemas) from 1.61.0 to 1.63.0. - [Release notes](https://github.com/aiven/go-api-schemas/releases) - [Commits](https://github.com/aiven/go-api-schemas/compare/v1.61.0...v1.63.0) --- updated-dependencies: - dependency-name: github.com/aiven/go-api-schemas dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index f25742878..b186133ff 100644 --- a/go.mod +++ b/go.mod @@ -56,7 +56,7 @@ require ( cloud.google.com/go v0.112.0 // indirect cloud.google.com/go/storage v1.36.0 // indirect github.com/agext/levenshtein v1.2.3 // indirect - github.com/aiven/go-api-schemas v1.61.0 + github.com/aiven/go-api-schemas v1.63.0 github.com/aws/aws-sdk-go v1.44.122 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/go.sum b/go.sum index a22915555..fbe447c7f 100644 --- a/go.sum +++ b/go.sum @@ -199,8 +199,8 @@ github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7l github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/aiven/aiven-go-client/v2 v2.12.0 h1:VxOfn61AtfLjy2B+DdXF2/7OHyyFZ1aQaIlE3TOyIsE= github.com/aiven/aiven-go-client/v2 v2.12.0/go.mod h1:x0xhzxWEKAwKv0xY5FvECiI6tesWshcPHvjwl0B/1SU= -github.com/aiven/go-api-schemas v1.61.0 h1:is4grhtToRSHsYxXC37HxOoUMqHtnglBnYIRosH/KMg= -github.com/aiven/go-api-schemas v1.61.0/go.mod h1:/bPxBUHza/2Aeer6hIIdB++GxKiw9K1KCBtRa2rtZ5I= +github.com/aiven/go-api-schemas v1.63.0 h1:fk4yOD8j1AByuzIzHmTuxGrpTpvjrIfTaPh1VUkKFjM= +github.com/aiven/go-api-schemas v1.63.0/go.mod h1:/bPxBUHza/2Aeer6hIIdB++GxKiw9K1KCBtRa2rtZ5I= github.com/aiven/go-client-codegen v0.2.0 h1:f82CHhXCBbrBIUa3yworytXjiolp/Q73epnbRjQIwBk= github.com/aiven/go-client-codegen v0.2.0/go.mod h1:qQ5dwRfNnGS4eAYk7JdC5htQI85g7eA/e71ZLyY8pQw= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= From 69d57dab885ee201cac7e16082aa025524b12d11 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Thu, 7 Mar 2024 12:29:40 +0000 Subject: [PATCH 2/2] chore(userconfig): generate schema --- docs/data-sources/opensearch.md | 1 + docs/resources/opensearch.md | 1 + internal/schemautil/userconfig/dist/service_types.go | 10 ++++++++++ internal/sdkprovider/userconfig/service/opensearch.go | 5 +++++ 4 files changed, 17 insertions(+) diff --git a/docs/data-sources/opensearch.md b/docs/data-sources/opensearch.md index 2a81aff5b..1f7b7cb17 100644 --- a/docs/data-sources/opensearch.md +++ b/docs/data-sources/opensearch.md @@ -189,6 +189,7 @@ Read-Only: - `ism_history_rollover_check_period` (Number) - `ism_history_rollover_retention_period` (Number) - `override_main_response_version` (Boolean) +- `plugins_alerting_filter_by_backend_roles` (Boolean) - `reindex_remote_whitelist` (List of String) - `script_max_compilations_rate` (String) - `search_max_buckets` (Number) diff --git a/docs/resources/opensearch.md b/docs/resources/opensearch.md index a6beb93d3..ef741dfcf 100644 --- a/docs/resources/opensearch.md +++ b/docs/resources/opensearch.md @@ -197,6 +197,7 @@ Optional: - `ism_history_rollover_check_period` (Number) The time between rollover checks for the audit history index in hours. The default value is `8`. - `ism_history_rollover_retention_period` (Number) How long audit history indices are kept in days. The default value is `30`. - `override_main_response_version` (Boolean) Compatibility mode sets OpenSearch to report its version as 7.10 so clients continue to work. Default is false. +- `plugins_alerting_filter_by_backend_roles` (Boolean) Enable or disable filtering of alerting by backend roles. Requires Security plugin. Defaults to false. - `reindex_remote_whitelist` (List of String) Whitelisted addresses for reindexing. Changing this value will cause all OpenSearch instances to restart. - `script_max_compilations_rate` (String) Script compilation circuit breaker limits the number of inline script compilations within a period of time. Default is use-context. - `search_max_buckets` (Number) Maximum number of aggregation buckets allowed in a single response. OpenSearch default value is used when this is not defined. diff --git a/internal/schemautil/userconfig/dist/service_types.go b/internal/schemautil/userconfig/dist/service_types.go index 2c8973f60..6a34883b3 100644 --- a/internal/schemautil/userconfig/dist/service_types.go +++ b/internal/schemautil/userconfig/dist/service_types.go @@ -6453,6 +6453,11 @@ func ServiceTypeOpensearch() *schema.Schema { Optional: true, Type: schema.TypeBool, }, + "plugins_alerting_filter_by_backend_roles": { + Description: "Enable or disable filtering of alerting by backend roles. Requires Security plugin. Defaults to false.", + Optional: true, + Type: schema.TypeBool, + }, "reindex_remote_whitelist": { Description: "Whitelisted addresses for reindexing. Changing this value will cause all OpenSearch instances to restart.", Elem: &schema.Schema{Type: schema.TypeString}, @@ -6975,6 +6980,11 @@ func ServiceTypeOpensearch() *schema.Schema { Optional: true, Type: schema.TypeBool, }, + "plugins_alerting_filter_by_backend_roles": { + Description: "Enable or disable filtering of alerting by backend roles. Requires Security plugin. Defaults to false.", + Optional: true, + Type: schema.TypeBool, + }, "reindex_remote_whitelist": { Description: "Whitelisted addresses for reindexing. Changing this value will cause all OpenSearch instances to restart.", Elem: &schema.Schema{Type: schema.TypeString}, diff --git a/internal/sdkprovider/userconfig/service/opensearch.go b/internal/sdkprovider/userconfig/service/opensearch.go index 012a63646..d2bd38b5f 100644 --- a/internal/sdkprovider/userconfig/service/opensearch.go +++ b/internal/sdkprovider/userconfig/service/opensearch.go @@ -424,6 +424,11 @@ func opensearchUserConfig() *schema.Schema { Optional: true, Type: schema.TypeBool, }, + "plugins_alerting_filter_by_backend_roles": { + Description: "Enable or disable filtering of alerting by backend roles. Requires Security plugin. Defaults to false.", + Optional: true, + Type: schema.TypeBool, + }, "reindex_remote_whitelist": { Description: "Whitelisted addresses for reindexing. Changing this value will cause all OpenSearch instances to restart.", Elem: &schema.Schema{