redacting-logger 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/patterns/default.rb +6 -6
- data/lib/redacting_logger.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d95164438dff21f498c6c80210908e288fa4ad1412d57aa2abdf3e36c254e91e
|
4
|
+
data.tar.gz: 74d4a8edb2585d7612b0ccbc580805bb5d55897425468e4fc8ad3f44f1705398
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14b476d1000238dfb97f5839edfb793fd96afbc67a0c3787b5939278d27d035e3663b71610b04600295702df216fd25a8801c6401d46d313fd8bf63e4c0ee21d
|
7
|
+
data.tar.gz: 227a5df7b22a59220280f40eb9a148c598a0576e8de7adee643b787cc39639d8ed3cda08eed1c170e20afa102428d51bc1cfec9faa3424d2790b77a0ffb4f234
|
data/lib/patterns/default.rb
CHANGED
@@ -4,6 +4,10 @@
|
|
4
4
|
# These patterns are sourced from different places on the internet, some came from https://github.com/l4yton/RegHex
|
5
5
|
module Patterns
|
6
6
|
DEFAULT = [
|
7
|
+
# RubyGems Token
|
8
|
+
# https://guides.rubygems.org/api-key-scopes/
|
9
|
+
/rubygems_[0-9a-f]{48}/,
|
10
|
+
|
7
11
|
# GitHub Personal Access Token
|
8
12
|
# https://github.blog/2021-04-05-behind-githubs-new-authentication-token-formats/
|
9
13
|
/ghp_[A-Za-z0-9]{36,}|[0-9A-Fa-f]{40,}/,
|
@@ -42,11 +46,7 @@ module Patterns
|
|
42
46
|
|
43
47
|
# Vault Tokens
|
44
48
|
# https://github.com/hashicorp/vault/issues/27151
|
45
|
-
/[sbr]\.[a-zA-Z0-9]{24,}/,
|
46
|
-
/hv[sbr]\.[a-zA-Z0-9]{24,}
|
47
|
-
|
48
|
-
# RubyGems Token
|
49
|
-
# https://guides.rubygems.org/api-key-scopes/
|
50
|
-
/rubygems_[0-9a-f]{48}/
|
49
|
+
/[sbr]\.[a-zA-Z0-9]{24,}/, # <= 1.9.x
|
50
|
+
/hv[sbr]\.[a-zA-Z0-9]{24,}/ # >= 1.10
|
51
51
|
].freeze
|
52
52
|
end
|
data/lib/redacting_logger.rb
CHANGED
data/lib/version.rb
CHANGED
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.3.
|
4
|
+
version: 1.3.2
|
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-
|
12
|
+
date: 2024-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: logger
|