logstash-input-salesforce 3.2.0 → 3.2.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 +3 -0
- data/docs/index.asciidoc +6 -6
- data/lib/logstash/inputs/salesforce.rb +6 -6
- data/logstash-input-salesforce.gemspec +1 -1
- data/spec/inputs/salesforce_spec.rb +21 -21
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 991a872d0042a97aeb4f9d7d27d6cc25fad15a62771a8a6c6b7eae9d427d55a8
|
4
|
+
data.tar.gz: 525f6d7d6796b4670dcd47faabc7dbbbd641355b763626693e5be7edfc059107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aca114e8b09b4895136cbd398d5134e7ef2adf85d1a2e067fe7a5986940f7ec1bdf27293b07da43c95db946b873bd8cbabd30d5e2c62550bb96775f9bd15d0a2
|
7
|
+
data.tar.gz: b5f752607e86f8b9873d3c8e45477dd24007d5f97cbbd3305645608fcf185d088a7f478f7175cd4f288495f6d61e184aa038a75e1f0919c19e6516756e6e17eb
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 3.2.1
|
2
|
+
- Changes sensitive configs type to Password for better protection from leaks in debug logs. [#35](https://github.com/logstash-plugins/logstash-input-salesforce/pull/35)
|
3
|
+
|
1
4
|
## 3.2.0
|
2
5
|
- Added `use_tooling_api` configuration to connect to the Salesforce Tooling API instead of the regular Rest API. [#26](https://github.com/logstash-plugins/logstash-input-salesforce/pull/26)
|
3
6
|
|
data/docs/index.asciidoc
CHANGED
@@ -76,9 +76,9 @@ This plugin supports the following configuration options plus the <<plugins-{typ
|
|
76
76
|
|Setting |Input type|Required
|
77
77
|
| <<plugins-{type}s-{plugin}-api_version>> |<<string,string>>|No
|
78
78
|
| <<plugins-{type}s-{plugin}-client_id>> |<<string,string>>|Yes
|
79
|
-
| <<plugins-{type}s-{plugin}-client_secret>> |<<
|
80
|
-
| <<plugins-{type}s-{plugin}-password>> |<<
|
81
|
-
| <<plugins-{type}s-{plugin}-security_token>> |<<
|
79
|
+
| <<plugins-{type}s-{plugin}-client_secret>> |<<password,password>>|Yes
|
80
|
+
| <<plugins-{type}s-{plugin}-password>> |<<password,password>>|Yes
|
81
|
+
| <<plugins-{type}s-{plugin}-security_token>> |<<password,password>>|Yes
|
82
82
|
| <<plugins-{type}s-{plugin}-sfdc_fields>> |<<array,array>>|No
|
83
83
|
| <<plugins-{type}s-{plugin}-sfdc_filters>> |<<string,string>>|No
|
84
84
|
| <<plugins-{type}s-{plugin}-sfdc_instance_url>> |<<string,string>>|No
|
@@ -119,7 +119,7 @@ https://help.salesforce.com/apex/HTViewHelpDoc?id=connected_app_create.htm
|
|
119
119
|
===== `client_secret`
|
120
120
|
|
121
121
|
* This is a required setting.
|
122
|
-
* Value type is <<
|
122
|
+
* Value type is <<password,password>>
|
123
123
|
* There is no default value for this setting.
|
124
124
|
|
125
125
|
Consumer Secret from your oauth enabled connected app
|
@@ -128,7 +128,7 @@ Consumer Secret from your oauth enabled connected app
|
|
128
128
|
===== `password`
|
129
129
|
|
130
130
|
* This is a required setting.
|
131
|
-
* Value type is <<
|
131
|
+
* Value type is <<password,password>>
|
132
132
|
* There is no default value for this setting.
|
133
133
|
|
134
134
|
The password used to login to sfdc
|
@@ -137,7 +137,7 @@ The password used to login to sfdc
|
|
137
137
|
===== `security_token`
|
138
138
|
|
139
139
|
* This is a required setting.
|
140
|
-
* Value type is <<
|
140
|
+
* Value type is <<password,password>>
|
141
141
|
* There is no default value for this setting.
|
142
142
|
|
143
143
|
The security token for this account. For more information about
|
@@ -72,17 +72,17 @@ class LogStash::Inputs::Salesforce < LogStash::Inputs::Base
|
|
72
72
|
# https://help.salesforce.com/apex/HTViewHelpDoc?id=connected_app_create.htm
|
73
73
|
config :client_id, :validate => :string, :required => true
|
74
74
|
# Consumer Secret from your oauth enabled connected app
|
75
|
-
config :client_secret, :validate => :
|
75
|
+
config :client_secret, :validate => :password, :required => true
|
76
76
|
# A valid salesforce user name, usually your email address.
|
77
77
|
# Used for authentication and will be the user all objects
|
78
78
|
# are created or modified by
|
79
79
|
config :username, :validate => :string, :required => true
|
80
80
|
# The password used to login to sfdc
|
81
|
-
config :password, :validate => :
|
81
|
+
config :password, :validate => :password, :required => true
|
82
82
|
# The security token for this account. For more information about
|
83
83
|
# generting a security token, see:
|
84
84
|
# https://help.salesforce.com/apex/HTViewHelpDoc?id=user_security_token.htm
|
85
|
-
config :security_token, :validate => :
|
85
|
+
config :security_token, :validate => :password, :required => true
|
86
86
|
# The name of the salesforce object you are creating or updating
|
87
87
|
config :sfdc_object_name, :validate => :string, :required => true
|
88
88
|
# These are the field names to return in the Salesforce query
|
@@ -141,10 +141,10 @@ class LogStash::Inputs::Salesforce < LogStash::Inputs::Base
|
|
141
141
|
def client_options
|
142
142
|
options = {
|
143
143
|
:username => @username,
|
144
|
-
:password => @password,
|
145
|
-
:security_token => @security_token,
|
144
|
+
:password => @password.value,
|
145
|
+
:security_token => @security_token.value,
|
146
146
|
:client_id => @client_id,
|
147
|
-
:client_secret => @client_secret
|
147
|
+
:client_secret => @client_secret.value
|
148
148
|
}
|
149
149
|
# configure the endpoint to which restforce connects to for authentication
|
150
150
|
if @sfdc_instance_url && @use_test_sandbox
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-salesforce'
|
3
|
-
s.version = '3.2.
|
3
|
+
s.version = '3.2.1'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Creates events based on a Salesforce SOQL query"
|
6
6
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -8,10 +8,10 @@ RSpec.describe LogStash::Inputs::Salesforce do
|
|
8
8
|
let(:options) do
|
9
9
|
{
|
10
10
|
"client_id" => "",
|
11
|
-
"client_secret" => "",
|
11
|
+
"client_secret" => ::LogStash::Util::Password.new("secret-key"),
|
12
12
|
"username" => "",
|
13
|
-
"password" => "",
|
14
|
-
"security_token" => "",
|
13
|
+
"password" => ::LogStash::Util::Password.new("secret-password"),
|
14
|
+
"security_token" => ::LogStash::Util::Password.new("secret-token"),
|
15
15
|
"sfdc_object_name" => ""
|
16
16
|
}
|
17
17
|
end
|
@@ -35,10 +35,10 @@ RSpec.describe LogStash::Inputs::Salesforce do
|
|
35
35
|
let(:options) do
|
36
36
|
{
|
37
37
|
"client_id" => "",
|
38
|
-
"client_secret" => "",
|
38
|
+
"client_secret" => ::LogStash::Util::Password.new("secret-key"),
|
39
39
|
"username" => "",
|
40
|
-
"password" => "",
|
41
|
-
"security_token" => "",
|
40
|
+
"password" => ::LogStash::Util::Password.new("secret-password"),
|
41
|
+
"security_token" => ::LogStash::Util::Password.new("secret-token"),
|
42
42
|
"sfdc_object_name" => "Lead",
|
43
43
|
"sfdc_fields" => ["Something"]
|
44
44
|
}
|
@@ -67,10 +67,10 @@ RSpec.describe LogStash::Inputs::Salesforce do
|
|
67
67
|
let(:options) do
|
68
68
|
{
|
69
69
|
"client_id" => "",
|
70
|
-
"client_secret" => "",
|
70
|
+
"client_secret" => ::LogStash::Util::Password.new("secret-key"),
|
71
71
|
"username" => "",
|
72
|
-
"password" => "",
|
73
|
-
"security_token" => "",
|
72
|
+
"password" => ::LogStash::Util::Password.new("secret-password"),
|
73
|
+
"security_token" => ::LogStash::Util::Password.new("secret-token"),
|
74
74
|
"sfdc_object_name" => "Lead"
|
75
75
|
}
|
76
76
|
end
|
@@ -94,10 +94,10 @@ RSpec.describe LogStash::Inputs::Salesforce do
|
|
94
94
|
let(:options) do
|
95
95
|
{
|
96
96
|
"client_id" => "",
|
97
|
-
"client_secret" => "",
|
97
|
+
"client_secret" => ::LogStash::Util::Password.new("secret-key"),
|
98
98
|
"username" => "",
|
99
|
-
"password" => "",
|
100
|
-
"security_token" => "",
|
99
|
+
"password" => ::LogStash::Util::Password.new("secret-password"),
|
100
|
+
"security_token" => ::LogStash::Util::Password.new("secret-token"),
|
101
101
|
"sfdc_object_name" => "Lead",
|
102
102
|
"sfdc_fields" => ["Id", "IsDeleted", "LastName", "FirstName", "Salutation"],
|
103
103
|
"sfdc_filters" => "Email LIKE '%@elastic.co'"
|
@@ -137,10 +137,10 @@ RSpec.describe LogStash::Inputs::Salesforce do
|
|
137
137
|
let(:options) do
|
138
138
|
{
|
139
139
|
"client_id" => "",
|
140
|
-
"client_secret" => "",
|
140
|
+
"client_secret" => ::LogStash::Util::Password.new("secret-key"),
|
141
141
|
"username" => "",
|
142
|
-
"password" => "",
|
143
|
-
"security_token" => "",
|
142
|
+
"password" => ::LogStash::Util::Password.new("secret-password"),
|
143
|
+
"security_token" => ::LogStash::Util::Password.new("secret-token"),
|
144
144
|
"sfdc_instance_url" => "my-domain.my.salesforce.com",
|
145
145
|
"sfdc_object_name" => "Lead"
|
146
146
|
}
|
@@ -165,10 +165,10 @@ RSpec.describe LogStash::Inputs::Salesforce do
|
|
165
165
|
let(:options) do
|
166
166
|
{
|
167
167
|
"client_id" => "",
|
168
|
-
"client_secret" => "",
|
168
|
+
"client_secret" => ::LogStash::Util::Password.new("secret-key"),
|
169
169
|
"username" => "",
|
170
|
-
"password" => "",
|
171
|
-
"security_token" => "",
|
170
|
+
"password" => ::LogStash::Util::Password.new("secret-password"),
|
171
|
+
"security_token" => ::LogStash::Util::Password.new("secret-token"),
|
172
172
|
"sfdc_instance_url" => "my-domain.my.salesforce.com",
|
173
173
|
"sfdc_object_name" => "Lead",
|
174
174
|
"use_test_sandbox" => true
|
@@ -200,10 +200,10 @@ RSpec.describe LogStash::Inputs::Salesforce do
|
|
200
200
|
{
|
201
201
|
"api_version" => "52.0",
|
202
202
|
"client_id" => "",
|
203
|
-
"client_secret" => "",
|
203
|
+
"client_secret" => ::LogStash::Util::Password.new("secret-key"),
|
204
204
|
"username" => "",
|
205
|
-
"password" => "",
|
206
|
-
"security_token" => "",
|
205
|
+
"password" => ::LogStash::Util::Password.new("secret-password"),
|
206
|
+
"security_token" => ::LogStash::Util::Password.new("secret-token"),
|
207
207
|
"use_tooling_api" => true,
|
208
208
|
"sfdc_object_name" => "ApexTestRunResult"
|
209
209
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-salesforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russ Savage
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
181
|
+
rubygems_version: 3.2.33
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Creates events based on a Salesforce SOQL query
|