hooks-ruby 0.6.0 → 0.6.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 +4 -4
- data/lib/hooks/plugins/auth/hmac.rb +2 -2
- data/lib/hooks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbd8eab8f1b3453b5f7d25e31db64e1631f1974cfbc63305530fe9150ceb6b17
|
4
|
+
data.tar.gz: 178ac27f5b7036fef1decd7e8a237675aac0ce909395958af0b9cc582cb94a9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d4fe7a469fc76d228da18b804c69ab7d088fad45ae627fb9489b319a52a5a533862bb1e237b68585b6a8db156bdd014495239b320ef8754655a31d7e47acf4c
|
7
|
+
data.tar.gz: 26fa0e76bfd46e44a19f8a6504f63020173c91ad714ec45bdbfc8a5a64c9522fba9e5ac782d952715a3447c67d34f48f5490f4b3a014d53506d077d07aa0a749
|
@@ -127,7 +127,7 @@ module Hooks
|
|
127
127
|
end
|
128
128
|
|
129
129
|
# Validate signature format using shared validation but with HMAC-specific length limit
|
130
|
-
return false unless validate_signature_format(raw_signature)
|
130
|
+
return false unless validate_signature_format?(raw_signature)
|
131
131
|
|
132
132
|
# Now we can safely normalize headers for the rest of the validation
|
133
133
|
normalized_headers = normalize_headers(headers)
|
@@ -192,7 +192,7 @@ module Hooks
|
|
192
192
|
# @param signature [String] Raw signature to validate
|
193
193
|
# @return [Boolean] true if signature is valid
|
194
194
|
# @api private
|
195
|
-
def self.validate_signature_format(signature)
|
195
|
+
def self.validate_signature_format?(signature)
|
196
196
|
# Check signature length with HMAC-specific limit
|
197
197
|
if signature.length > MAX_SIGNATURE_LENGTH
|
198
198
|
log.warn("Auth::HMAC validation failed: Signature length exceeds maximum limit of #{MAX_SIGNATURE_LENGTH} characters")
|
data/lib/hooks/version.rb
CHANGED