hephaestus 0.7.4.1 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/config/initializers/environment.rb +6 -2
- data/config/initializers/slack_webhook_logger.rb +11 -13
- data/lib/hephaestus/version.rb +1 -1
- data/lib/tasks/rubocop.rake +8 -2
- metadata +2 -18
- data/config/initializers/sidekiq.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cd0baba4158ddab44fe1aff04d5e606b419a5882f05764efedeb5c9ec5a5916
|
4
|
+
data.tar.gz: d5fcc05a6f058e03a73659b5cd4f41890d70cb470164af73ea5ae803e1b92a32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 154445c0b91ff0c7d32bf0c0997d9440d8ef634c49dfa8d8009ec4124d5377974e4f0f092daa4eb3ee2c47eaac151290a7a62b281e8a4b0099cfa14a00c46272
|
7
|
+
data.tar.gz: 2894735072d816b7848920b934e69b3f9d56067a533ccb5360c9ab4e6d94f6f9782ca4ba307128284ba972314fcbe538e95bfa95341e287cf19bae7fcc9bedc4
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# [v0.7.5] - 20-11-2024
|
2
|
+
## What's Changed
|
3
|
+
* No do by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/49
|
4
|
+
|
5
|
+
|
6
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.4.2...v0.7.5
|
7
|
+
# [v0.7.4.2] - 20-11-2024
|
8
|
+
## What's Changed
|
9
|
+
* tuck rubocop task in a check by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/47
|
10
|
+
|
11
|
+
|
12
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.4.1...v0.7.4.2
|
1
13
|
# [v0.7.4.1] - 19-11-2024
|
2
14
|
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.7.4...v0.7.4.1
|
3
15
|
# [v0.7.4] - 19-11-2024
|
@@ -26,14 +26,18 @@ def fetch_document_secret(document_secrets, label:, default:)
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def op_read(label)
|
29
|
-
%x(op read "#{label}").chomp
|
29
|
+
%x(#{include_sudo?}op read "#{label}").chomp
|
30
30
|
end
|
31
31
|
|
32
32
|
# technically, this gets every secret, including ones UNIQUE
|
33
33
|
# to the platform, but we're not using those yet. feels "better"
|
34
34
|
# to have the plugs manage those on their own
|
35
35
|
def op_get_secrets(vault:, tag:)
|
36
|
-
%x(op item list --vault #{vault} --tags #{tag} --format json | op item get - --reveal --format=json)
|
36
|
+
%x(#{include_sudo?}op item list --vault #{vault} --tags #{tag} --format json | op item get - --reveal --format=json)
|
37
|
+
end
|
38
|
+
|
39
|
+
def include_sudo?
|
40
|
+
productionish? ? "sudo -E " : ""
|
37
41
|
end
|
38
42
|
|
39
43
|
def productionish?
|
@@ -4,20 +4,18 @@
|
|
4
4
|
require "slack_webhook_logger"
|
5
5
|
|
6
6
|
Rails.application.configure do
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
config.webhook_url = Hephaestus::SLACK_LOG_URL
|
7
|
+
SlackWebhookLogger.setup do |config|
|
8
|
+
# Webhook URL
|
9
|
+
#
|
10
|
+
# The URL where messages will be sent.
|
11
|
+
config.webhook_url = Hephaestus::SLACK_LOG_URL
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
# The minimum error level to see in Slack.
|
14
|
+
#
|
15
|
+
# All log levels are supported, but don't do anything less then :warn since Slack only allows one message
|
16
|
+
# per minute.
|
17
|
+
config.level = :WARN
|
19
18
|
|
20
|
-
|
21
|
-
end
|
19
|
+
config.ignore_patterns = [/Can't verify CSRF token authenticity/, /is not a valid MIME type/]
|
22
20
|
end
|
23
21
|
end
|
data/lib/hephaestus/version.rb
CHANGED
data/lib/tasks/rubocop.rake
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# typed: false
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
|
-
|
4
|
+
if Rails.env.local?
|
5
|
+
begin
|
6
|
+
require "rubocop/rake_task"
|
5
7
|
|
6
|
-
RuboCop::RakeTask.new
|
8
|
+
RuboCop::RakeTask.new(:rubocop)
|
9
|
+
rescue LoadError => e
|
10
|
+
warn("WARNING: rubocop is not available in this environment: #{e}")
|
11
|
+
end
|
12
|
+
end
|
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.7.
|
4
|
+
version: 0.7.5
|
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-11-
|
11
|
+
date: 2024-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootsnap
|
@@ -264,21 +264,6 @@ dependencies:
|
|
264
264
|
- !ruby/object:Gem::Version
|
265
265
|
version: '3.1'
|
266
266
|
force_ruby_platform: false
|
267
|
-
- !ruby/object:Gem::Dependency
|
268
|
-
name: sidekiq
|
269
|
-
requirement: !ruby/object:Gem::Requirement
|
270
|
-
requirements:
|
271
|
-
- - "~>"
|
272
|
-
- !ruby/object:Gem::Version
|
273
|
-
version: '7.2'
|
274
|
-
type: :runtime
|
275
|
-
prerelease: false
|
276
|
-
version_requirements: !ruby/object:Gem::Requirement
|
277
|
-
requirements:
|
278
|
-
- - "~>"
|
279
|
-
- !ruby/object:Gem::Version
|
280
|
-
version: '7.2'
|
281
|
-
force_ruby_platform: false
|
282
267
|
- !ruby/object:Gem::Dependency
|
283
268
|
name: slack_webhook_logger
|
284
269
|
requirement: !ruby/object:Gem::Requirement
|
@@ -456,7 +441,6 @@ files:
|
|
456
441
|
- config/initializers/litestream.rb
|
457
442
|
- config/initializers/lograge.rb
|
458
443
|
- config/initializers/opentelemetry.rb
|
459
|
-
- config/initializers/sidekiq.rb
|
460
444
|
- config/initializers/slack_webhook_logger.rb
|
461
445
|
- config/litestream.yml
|
462
446
|
- config/puma.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# typed: false
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require "sidekiq"
|
5
|
-
|
6
|
-
Sidekiq.configure_server do |config|
|
7
|
-
config.logger = Sidekiq::Logger.new($stdout)
|
8
|
-
config.redis = { url: ENV.fetch("REDIS_URL", "redis://localhost:6379/1") }
|
9
|
-
end
|
10
|
-
Sidekiq.configure_client do |config|
|
11
|
-
config.logger = Sidekiq::Logger.new($stdout)
|
12
|
-
config.redis = { url: ENV.fetch("REDIS_URL", "redis://localhost:6379/1") }
|
13
|
-
end
|