logstash-input-okta_enterprise 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce6c6e85bc6e41ec22d49a462c890c236cd849d9
4
- data.tar.gz: 35076593da897161c67f167c7e69c6cc7086bac3
3
+ metadata.gz: 708e0a1e3ec39df8e00c9a2ff2f69252d5c81a01
4
+ data.tar.gz: 98853df25b862caa6e2495fdcdaec72501b7dc8b
5
5
  SHA512:
6
- metadata.gz: c66d8cd501e49cef03cc7c2f4f0c48983717a420cecd8e0265a81f605c27a2026703192d2c61605de6b044d08f58d26366e920d194f63ef8b9386bd416978a2b
7
- data.tar.gz: ed20984c1ffad649c57e46b694234c3ccf77c53423240a61b7b8185bc12cbf53d6aab1e1a20ff4553535860cf8386baba68b4abf9157537e2f1eec6b216ed8c3
6
+ metadata.gz: 1864cc1d245aa02145ded297b30ba724fb746c029f2a8ed0e050173b227564887c19cf6fc0c169b45510fe5488221e8abdd8e682b0676bde56d8ef6c8a3f6356
7
+ data.tar.gz: 4243c10ec44ef47a7d42af1050ea17f861ebc3e7e3d346bfa830c52ab2a26a546e02375dff9748cc5b4d5abd6c563f0778159af24c440d49834093a66fe8c662
@@ -1,2 +1,4 @@
1
+ ## 0.6.1
2
+ - Added deprecation notice
1
3
  ## 0.1.0
2
4
  - Plugin created
data/README.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## Migration Notice
2
+
3
+ This plugin in deprecated. For new implementations, please use [okta_system_log](https://github.com/SecurityRiskAdvisors/logstash-input-okta_system_log) instead.
4
+
5
+ You can find more information in the [migration documentation](docs/Migration.md).
6
+
1
7
  # Logstash Plugin
2
8
 
3
9
  This is a plugin for [Logstash](https://github.com/elastic/logstash).
@@ -0,0 +1,23 @@
1
+ ## Okta migration to System Log API
2
+
3
+ Okta is currently migrating away from the Events API and instead to their System Log API, which provides more information.
4
+ Migration information can be found on the [migration website](https://developer.okta.com/use_cases/events-api-migration/).
5
+
6
+ As such, this plugin will be deprecated and in favor of the [okta_system_log](https://github.com/SecurityRiskAdvisors/logstash-input-okta_system_log) plugin.
7
+
8
+ You will have to set `accept_deprecation_notice` to true in order to continue using this plugin, understanding that the Events API is deprecated.
9
+ ```ruby
10
+ input {
11
+ okta_enterprise {
12
+ url => "..."
13
+ chunk_size => 1000
14
+ accept_deprecation_notice => true
15
+ ...snip...
16
+ }
17
+
18
+ }
19
+
20
+ output {
21
+ ...snip...
22
+ }
23
+ ```
@@ -177,10 +177,25 @@ class LogStash::Inputs::OktaEnterprise < LogStash::Inputs::Base
177
177
  # Format: Integer
178
178
  config :log_throttle, :validate => :number, :required => false
179
179
 
180
+ # Force a user to agree to the deprecation notice.#
181
+ # Deprecation info can be found here:
182
+ # https://github.com/SecurityRiskAdvisors/logstash-input-okta_enterprise/blob/master/docs/Migration.md
183
+ #
184
+ # Format: Boolean
185
+ config :accept_deprecation_notice, :validate => :boolean, :default => false
186
+
180
187
  public
181
188
  Schedule_types = %w(cron every at in)
182
189
  def register
183
190
 
191
+ unless (@accept_deprecation_notice)
192
+ msg = "The Okta Events API (and this plugin) have been deprecated. For more info: " +
193
+ "https://github.com/SecurityRiskAdvisors/logstash-input-okta_enterprise/blob/master/docs/Migration.md. " +
194
+ "Instructions to proceed can be found there."
195
+ @logger.fatal(msg)
196
+ raise LogStash::ConfigurationError, msg
197
+ end
198
+
184
199
  if (@auth_token_env and @auth_token_file)
185
200
  raise LogStash::ConfigurationError, "auth_token_file and auth_token_env" +
186
201
  "cannot be set. Please select one for use."
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-okta_enterprise'
3
- s.version = '0.6.0'
3
+ s.version = '0.6.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = 'This plugin fetches log events from Okta'
6
6
  s.description = 'This plugin fetches log events from Okta'
@@ -22,6 +22,7 @@ describe LogStash::Inputs::OktaEnterprise do
22
22
  "url" => default_url,
23
23
  "auth_token_env" => default_auth_token_env,
24
24
  "metadata_target" => metadata_target,
25
+ "accept_deprecation_notice" => true,
25
26
  "codec" => "json"
26
27
  }
27
28
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-okta_enterprise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Security Risk Advisors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-17 00:00:00.000000000 Z
11
+ date: 2019-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -202,6 +202,7 @@ files:
202
202
  - Gemfile
203
203
  - LICENSE
204
204
  - README.md
205
+ - docs/Migration.md
205
206
  - lib/logstash/inputs/okta_enterprise.rb
206
207
  - logstash-input-okta_enterprise.gemspec
207
208
  - spec/inputs/okta_enterprise_spec.rb