zendesk_apps_support 4.21.1 → 4.21.2
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 +4 -4
- data/lib/zendesk_apps_support/validations/secrets.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e9b1670d2a13faa843987434944eea54bd13569
|
|
4
|
+
data.tar.gz: 55796dc5a9b33e8d6dbdec5c68067243a6cc367e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60289ba952f35d6a00a70749133b9afa4ea162a09b596dbf72286a90df10f183d476b88aadd8d73776798eb03f0be24b20c98cc96dd1f45689ab51d5d9a02764
|
|
7
|
+
data.tar.gz: cf543dffffc92e21832cb44bda9593c72d6f4acac716017ab8ed0e737b253d30e1b09df4867f4e4f199581bbf90629d6a66f043c8f598dd21c759f7871f5dc53
|
|
@@ -4,8 +4,8 @@ module ZendeskAppsSupport
|
|
|
4
4
|
module Validations
|
|
5
5
|
module Secrets
|
|
6
6
|
SECRET_KEYWORDS = %w[
|
|
7
|
-
|
|
8
|
-
authKey auth_pass authPass auth_user AuthUser
|
|
7
|
+
password secret secretToken secret_token auth_key
|
|
8
|
+
authKey auth_pass authPass auth_user AuthUser api_key
|
|
9
9
|
].freeze
|
|
10
10
|
|
|
11
11
|
APPLICATION_SECRETS = {
|
|
@@ -60,7 +60,8 @@ module ZendeskAppsSupport
|
|
|
60
60
|
secret_type: secret_type)
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
match = Regexp.union(SECRET_KEYWORDS).match(contents)
|
|
64
|
+
"#{file.relative_path} ('#{match[0]}...')" if match
|
|
64
65
|
end.compact
|
|
65
66
|
|
|
66
67
|
return unless compromised_files.any?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zendesk_apps_support
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.21.
|
|
4
|
+
version: 4.21.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James A. Rosen
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2019-08-
|
|
14
|
+
date: 2019-08-08 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: i18n
|