logstash-integration-elastic_enterprise_search 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b06802185d7a0e45e13ac9a3f5a952901e7fdd186d78c50dd5f38c7db18f2c41
4
- data.tar.gz: 263045ba6b2947b74a418b663de0dcdf63f67475bb99ac4f1252f5bfd6cec4b1
3
+ metadata.gz: b4473449751c6ce422faa5cdbbcec12e78677a54d40209e397c987d2e2e2d05f
4
+ data.tar.gz: d1774ea9414e64b243017fa4faac4a53c830b66098208762bb601d9e3a9ac834
5
5
  SHA512:
6
- metadata.gz: d294f1592ce25cb470ddd7746e095974b005722a022c6eb8faad76f30ac8d895c02b9afa1be2d9715e5d25fd4c1eb8a206e22b15d1ed84f9f27fb0e21d4806bc
7
- data.tar.gz: 99fe5e6638912b63c977cca07f85456e00a627dee50475d5e5fa628a49fe062c0f77b7c1994c208391d1675240df755e1f3de4d6e32e9160ea48408b0a318572
6
+ metadata.gz: 8ed463da5b8975c4765a4688e684e2596a42161128a6bee3f087eff49a6404180051967e6c96f7893581bd7322ff13bdb2d8251f967b8b35496e4b85503e1f83
7
+ data.tar.gz: e0fcd1f80a3cd350508d9d78922a67e26fc31e01d0433f2fa764033fc2778925b0a8ebebd48e95802718047162630e2d65124395cbd7c7989a7182ce9482e429
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.0.1
2
+ - Add deprecation log for App Search and Workplace Search. Both products are removed from Elastic Stack in version 9 [#22](https://github.com/logstash-plugins/logstash-integration-elastic_enterprise_search/pull/22)
3
+
1
4
  ## 3.0.0
2
5
  - Bumped Enterprise Search clients to version `>= 7.16`, `< 9` [#18](https://github.com/logstash-plugins/logstash-integration-elastic_enterprise_search/pull/18)
3
6
  - Added support to SSL configurations (`ssl_certificate_authorities`, `ssl_truststore_path`, `ssl_truststore_password`, `ssl_truststore_type`, `ssl_verification_mode`, `ssl_supported_protocols` and `ssl_cipher_suites`)
@@ -1,11 +1,13 @@
1
1
  # encoding: utf-8
2
2
  require 'logstash/outputs/base'
3
+ require 'logstash/plugin_mixins/deprecation_logger_support'
3
4
  require 'logstash/plugin_mixins/enterprise_search/ssl_configs'
4
5
  require 'logstash/plugin_mixins/enterprise_search/client'
5
6
 
6
7
  class LogStash::Outputs::ElasticAppSearch < LogStash::Outputs::Base
7
8
 
8
9
  include LogStash::PluginMixins::EnterpriseSearch::SSLConfigs
10
+ include LogStash::PluginMixins::DeprecationLoggerSupport
9
11
 
10
12
  config_name 'elastic_app_search'
11
13
 
@@ -44,6 +46,12 @@ class LogStash::Outputs::ElasticAppSearch < LogStash::Outputs::Base
44
46
  ENGINE_WITH_SPRINTF_REGEX = /^.*%\{.+\}.*$/.freeze
45
47
 
46
48
  def register
49
+ log_message = "The App Search product is deprecated and not supported from version 9 of the Elastic Stack. " +
50
+ "The Elastic App Search output plugin is deprecated and will only receive security updates and critical bug fixes. " +
51
+ "Please migrate to the Elastic Connector for continued support. " +
52
+ "For more details, please visit https://www.elastic.co/guide/en/search-ui/current/tutorials-elasticsearch.html"
53
+ deprecation_logger.deprecated log_message
54
+
47
55
  @retry_disabled = false
48
56
  @client = LogStash::PluginMixins::EnterpriseSearch::AppSearch::Client.new(client_options, params: params)
49
57
  check_connection!
@@ -1,11 +1,13 @@
1
1
  # encoding: utf-8
2
2
  require 'logstash/outputs/base'
3
+ require 'logstash/plugin_mixins/deprecation_logger_support'
3
4
  require 'logstash/plugin_mixins/enterprise_search/client'
4
5
  require 'logstash/plugin_mixins/enterprise_search/ssl_configs'
5
6
 
6
7
  class LogStash::Outputs::ElasticWorkplaceSearch < LogStash::Outputs::Base
7
8
 
8
9
  include LogStash::PluginMixins::EnterpriseSearch::SSLConfigs
10
+ include LogStash::PluginMixins::DeprecationLoggerSupport
9
11
 
10
12
  config_name 'elastic_workplace_search'
11
13
 
@@ -43,6 +45,12 @@ class LogStash::Outputs::ElasticWorkplaceSearch < LogStash::Outputs::Base
43
45
  SOURCE_WITH_SPRINTF_REGEX = /^.*%\{.+\}.*$/.freeze
44
46
 
45
47
  def register
48
+ log_message = "The Workplace Search product is deprecated and not supported from version 9 of the Elastic Stack. " +
49
+ "The Elastic Workplace Search output plugin is deprecated and will only receive security updates and critical bug fixes. " +
50
+ "Please migrate to the Elastic Connector for continued support. " +
51
+ "For more details, please visit https://www.elastic.co/guide/en/search-ui/current/tutorials-elasticsearch.html"
52
+ deprecation_logger.deprecated log_message
53
+
46
54
  @retry_disabled = false
47
55
  @client = LogStash::PluginMixins::EnterpriseSearch::WorkplaceSearch::Client.new(client_options, params: params)
48
56
  begin
@@ -45,7 +45,7 @@ module LogStash::PluginMixins::EnterpriseSearch
45
45
 
46
46
  def transport_klass
47
47
  case Elasticsearch::Transport::VERSION
48
- when /7\.1[123]/
48
+ when /^7\.1[123]/
49
49
  Elasticsearch::Client
50
50
  else
51
51
  Elasticsearch::Transport::Client
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-integration-elastic_enterprise_search'
3
- s.version = '3.0.0'
3
+ s.version = '3.0.1'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = "Integration with Elastic Enterprise Search - output plugins"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline "+
@@ -153,7 +153,7 @@ describe 'indexing against running Workplace Search', :integration => true do
153
153
  end
154
154
 
155
155
  client = faraday_client
156
- client.basic_auth(username, password)
156
+ client.headers['Authorization'] = "Basic #{basic_auth_header}"
157
157
  response = client.post('/ws/org/api_tokens',
158
158
  '{"name":"ls-integration-test-key"}',
159
159
  { 'Content-Type' => 'application/json', 'Accept' => 'application/json' })
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-integration-elastic_enterprise_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-07 00:00:00.000000000 Z
11
+ date: 2025-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -17,8 +17,8 @@ dependencies:
17
17
  - !ruby/object:Gem::Version
18
18
  version: '0.8'
19
19
  name: manticore
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
@@ -31,8 +31,8 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '2.0'
33
33
  name: logstash-core-plugin-api
34
- prerelease: false
35
34
  type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
@@ -45,8 +45,8 @@ dependencies:
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  name: logstash-codec-plain
48
- prerelease: false
49
48
  type: :runtime
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
@@ -62,8 +62,8 @@ dependencies:
62
62
  - !ruby/object:Gem::Version
63
63
  version: '9'
64
64
  name: elastic-enterprise-search
65
- prerelease: false
66
65
  type: :runtime
66
+ prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - ">="
@@ -79,8 +79,8 @@ dependencies:
79
79
  - !ruby/object:Gem::Version
80
80
  version: '1.0'
81
81
  name: logstash-mixin-deprecation_logger_support
82
- prerelease: false
83
82
  type: :runtime
83
+ prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
@@ -93,8 +93,8 @@ dependencies:
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  name: logstash-devutils
96
- prerelease: false
97
96
  type: :development
97
+ prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - ">="
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubygems_version: 3.2.33
160
+ rubygems_version: 3.3.26
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Integration with Elastic Enterprise Search - output plugins