hephaestus 0.8.7.5 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/config/initializers/filter_job_params.rb +22 -0
- data/lib/hephaestus/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 147a21893659ce7204805de5c82711196fbe1b7e3fce13bbeddb049e9cd151b3
|
4
|
+
data.tar.gz: fb39e4f9a955ae1d5925e53aaf68d3eb660d5d8858b5e49bfb9c5e9ea321b719
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 219a46bf7606c484fd297fe8563e3122edb33af266c4b566024f67269abd5f41a09b4aa1cdb445de827865457c66f0741843fd779cda2c812d1466cf6690f2c5
|
7
|
+
data.tar.gz: '049ed8fa2d285ac0c018d3a856b9d60de42be83efb25a490643aa47ac09742fd8dd94208491ae19911c563d25f0cd5ef606de914b7358de1dcfcc176d74a2165'
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# [v0.8.8] - 09-12-2024
|
2
|
+
## What's Changed
|
3
|
+
* Filter parameter logging in jobs by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/84
|
4
|
+
|
5
|
+
|
6
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.7.5...v0.8.8
|
1
7
|
# [v0.8.7.5] - 05-12-2024
|
2
8
|
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.7.4...v0.8.7.5
|
3
9
|
# [v0.8.7.4] - 05-12-2024
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# typed: false
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
# ActiveJob logs the arguments passed to the job. This initializer filters out sensitive information from the logs.
|
5
|
+
# cf. https://github.com/rails/rails/pull/34438#issuecomment-2336749226
|
6
|
+
Rails.application.config.after_initialize do
|
7
|
+
require "active_job/log_subscriber"
|
8
|
+
module ActiveJob
|
9
|
+
class LogSubscriber < ActiveSupport::LogSubscriber
|
10
|
+
alias_method :original_format, :format
|
11
|
+
|
12
|
+
private def format(arg)
|
13
|
+
if arg.is_a?(Hash)
|
14
|
+
parameter_filter = ActiveSupport::ParameterFilter.new(Rails.application.config.filter_parameters)
|
15
|
+
parameter_filter.filter(arg.transform_values { |value| original_format(value) })
|
16
|
+
else
|
17
|
+
original_format(arg)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/hephaestus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hephaestus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootsnap
|
@@ -436,6 +436,7 @@ files:
|
|
436
436
|
- config/initializers/application.rb
|
437
437
|
- config/initializers/cors.rb
|
438
438
|
- config/initializers/environment.rb
|
439
|
+
- config/initializers/filter_job_params.rb
|
439
440
|
- config/initializers/filter_parameter_logging.rb
|
440
441
|
- config/initializers/inflections.rb
|
441
442
|
- config/initializers/lograge.rb
|