redacting-logger 1.2.0 → 1.3.0

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
  SHA256:
3
- metadata.gz: 0563c893691556329c50c2b23f43ed5c10de92f9ff07c5e48da1eb0a72b4ced3
4
- data.tar.gz: 59cb05505414611266e6ef7a12b104fc9757da96eab1383a6a0430b5875c9d57
3
+ metadata.gz: 3c76a62b3a392ffed1d7acaa5a7424da0e102c3cc1ac896eeb7dadddce190d85
4
+ data.tar.gz: 3cc59892d6f578d19cd692b8519d5cf02b87c2b0ed4a90eb3ceda531336f0cdf
5
5
  SHA512:
6
- metadata.gz: 5db3cc688afe4cf2884c9fd09d7841ee300a1fc6029c1e1e408b808d249772b7e41b5b669a93a511f4d45616d423e39f70cebbc241b7a2b53f67e3464f41d67b
7
- data.tar.gz: 0c354c05a49da638b231a1535adcc2ac204351c248693a09347a2fcee4ee82d663fad30e2a2c2dc0908b1e605fc573d29588b380356a39e0fa970292bc2cf317
6
+ metadata.gz: 61c3de5c07fb32d422adef7271a229bd7f8407a214813cd78b4565e36461b13d55c508f627f8e525ec38b88c6c1f4140549275a711773795443c3f472a7aba1d
7
+ data.tar.gz: 8bf4068d8dd282df64058d1d5cb4578005a5d56a2aad0dcddc0796dc198de304388e18e046fa8b6a9b6f1ca73586e37090ea1a2e949e9e56f92a3be5b8a0a62d
@@ -6,7 +6,13 @@ module Patterns
6
6
  /ghp_[A-Za-z0-9]{36,}|[0-9A-Fa-f]{40,}/, # GitHub Personal Access Token
7
7
  /github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59}/, # GitHub Personal Access Token (fine-grained)
8
8
  /ghs_[a-zA-Z0-9]{36}/, # Temporary GitHub Actions Tokens
9
- /\b(ey[a-zA-Z0-9]{17,}\.ey[a-zA-Z0-9\/\\_-]{17,}\.(?:[a-zA-Z0-9\/\\_-]{10,}={0,2})?)(?:['|\"|\n|\r|\s|\x60|;]|$)/, # JWT tokens
10
- /(?i)-----BEGIN[ A-Z0-9_-]{0,100}PRIVATE KEY( BLOCK)?-----[\s\S-]*KEY( BLOCK)?----/ # private keys
9
+ %r{\b(ey[a-zA-Z0-9]{17,}\.ey[a-zA-Z0-9/\\_-]{17,}\.(?:[a-zA-Z0-9/\\_-]{10,}={0,2})?)(?:['|"|\n|\r|\s|\x60|;]|$)}, # JWT tokens
10
+ /(?i)-----BEGIN[ A-Z0-9_-]{0,100}PRIVATE KEY( BLOCK)?-----[\s\S-]*KEY( BLOCK)?----/, # private keys
11
+ %r{https://hooks\.slack\.com/services/[a-zA-Z0-9]{9,}/[a-zA-Z0-9]{9,}/[a-zA-Z0-9]{24}}, # Slack webhook
12
+ %r{https://hooks\.slack\.com/workflows/[a-zA-Z0-9]{9,}/[a-zA-Z0-9]{9,}/[0-9]+?/[a-zA-Z0-9]{24}}, # Slack workflow
13
+ /xoxp-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9a-f]{6,})|xoxb-(?:[0-9]{7,})-(?:[A-Za-z0-9]{14,})|xoxs-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9a-f]{7,})|xoxa-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9a-f]{7,})|xoxo-(?:[0-9]{7,})-(?:[A-Za-z0-9]{14,})|xoxa-2-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9a-f]{7,})|xoxr-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[0-9a-f]{7,})|xoxb-(?:[0-9]{7,})-(?:[0-9]{7,})-(?:[A-Za-z0-9]{14,})/, # Slack tokens
14
+ /[sbr]\.[a-zA-Z0-9]{24,}/, # vault token for 1.9.x or earlier
15
+ /hv[sbr]\.[a-zA-Z0-9]{24,}/, # vault token for 1.10 and later
16
+ /rubygems_[0-9a-f]{48}/ # RubyGems token
11
17
  ].freeze
12
18
  end
data/lib/version.rb CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RedactingLogger
4
4
  module Version
5
- VERSION = "1.2.0"
5
+ VERSION = "1.3.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redacting-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-02-29 00:00:00.000000000 Z
12
+ date: 2024-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: logger