gitlab-labkit 0.42.0 → 0.42.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/.pre-commit-config.yaml +1 -1
- data/lib/labkit/logging/sanitizer.rb +8 -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: 869346480f346d49795eaf4f80e028c4cdbbdb8826345cfcfdff8ddf8e1887fd
|
4
|
+
data.tar.gz: 63ce86b345417ab4c6ad076dd6f83baca61d4e127c478b857e509c4b34814000
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c18e81580f71d9d6833e5d7c07d58fb699ec82df5d8707af38adbedabe6e7a197d0fe1e3cef00f0df7afa740dc5f343c100faf283e97d586419a1134bcf0501b
|
7
|
+
data.tar.gz: c5d346b9f186a33faa420e5e6fe8513f7af58c829748fe98470c5b6d45d27cb0c2620f56f4cca56729e896ea3daf59d9caa3bdca4aad95b79c3fed5b0052635c
|
data/.pre-commit-config.yaml
CHANGED
@@ -25,7 +25,7 @@ repos:
|
|
25
25
|
# Documentation available at
|
26
26
|
# https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/docs/pre-commit.md
|
27
27
|
- repo: https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks
|
28
|
-
rev: v2.
|
28
|
+
rev: v2.94 # renovate:managed
|
29
29
|
|
30
30
|
hooks:
|
31
31
|
- id: shellcheck # Run shellcheck for changed Shell files
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "pg_query"
|
4
|
+
require "uri"
|
4
5
|
|
5
6
|
module Labkit
|
6
7
|
module Logging
|
@@ -47,8 +48,14 @@ module Labkit
|
|
47
48
|
# URI::RFC2396_PARSER.parse('ssh://') => raise URI::InvalidURIError
|
48
49
|
return "" if p.host.empty?
|
49
50
|
|
50
|
-
|
51
|
+
# Starting from v1.0.4, the `uri` gem clears the `password` instance variable
|
52
|
+
# when the `user` setter is called. To preserve the current behavior,
|
53
|
+
# we store the `password` in a temporary variable.
|
54
|
+
password = p.password
|
55
|
+
|
51
56
|
p.user = "*****" if p.user.present?
|
57
|
+
p.password = "*****" if password.present?
|
58
|
+
|
52
59
|
p.to_s
|
53
60
|
rescue URI::InvalidURIError
|
54
61
|
""
|