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 +4 -4
- data/CHANGELOG.md +2 -0
- data/README.md +6 -0
- data/docs/Migration.md +23 -0
- data/lib/logstash/inputs/okta_enterprise.rb +15 -0
- data/logstash-input-okta_enterprise.gemspec +1 -1
- data/spec/inputs/okta_enterprise_spec.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 708e0a1e3ec39df8e00c9a2ff2f69252d5c81a01
|
4
|
+
data.tar.gz: 98853df25b862caa6e2495fdcdaec72501b7dc8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1864cc1d245aa02145ded297b30ba724fb746c029f2a8ed0e050173b227564887c19cf6fc0c169b45510fe5488221e8abdd8e682b0676bde56d8ef6c8a3f6356
|
7
|
+
data.tar.gz: 4243c10ec44ef47a7d42af1050ea17f861ebc3e7e3d346bfa830c52ab2a26a546e02375dff9748cc5b4d5abd6c563f0778159af24c440d49834093a66fe8c662
|
data/CHANGELOG.md
CHANGED
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).
|
data/docs/Migration.md
ADDED
@@ -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.
|
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'
|
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.
|
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:
|
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
|