hephaestus 0.8.15.3 → 0.8.15.5
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/CHANGELOG.md +4 -0
- data/config/initializers/environment.rb +3 -3
- data/lib/hephaestus/engine.rb +2 -1
- data/lib/hephaestus/version.rb +1 -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: 507c05485b78ef114764457b17768d84c9d94e57f1171a7ad8823b0aeaa4ea9c
|
4
|
+
data.tar.gz: 2688ee1d57371e64c8b6677ac249c4c43c5609d7c34067186ad23025ba94915e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38957f8ca0fddea05fd4a337dbc2632770398d6034fa5635f729ac0b55d2f243bc13283e6076ff245f3e9dc1ee9ff35423a3af809b118798454d5cc00a351ffb
|
7
|
+
data.tar.gz: f90f995a3c9dc816f20d85b3efcf867f8b78a1de92cec1387d7bd30f2c7585b29713dedc7bea07581456afdd72dbf8b6eb4c1da3cd155ebcf80b39eef29e3c71
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# [v0.8.15.5] - 16-01-2025
|
2
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.15.4...v0.8.15.5
|
3
|
+
# [v0.8.15.4] - 16-01-2025
|
4
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.15.3...v0.8.15.4
|
1
5
|
# [v0.8.15.3] - 16-01-2025
|
2
6
|
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.15.2...v0.8.15.3
|
3
7
|
# [v0.8.15.2] - 16-01-2025
|
@@ -6,7 +6,7 @@ OP_INFRA_SECRETS = {}
|
|
6
6
|
|
7
7
|
def fetch_vault_secret(label:, default: "")
|
8
8
|
if productionish?
|
9
|
-
OP_VAULT_SECRETS.delete(label) ||
|
9
|
+
OP_VAULT_SECRETS.delete(label) || Rails.logger.error("Secret `#{label}` not found in 1Password")
|
10
10
|
else
|
11
11
|
ENV.fetch(label, default.is_a?(Pathname) ? default.read : default)
|
12
12
|
end
|
@@ -14,7 +14,7 @@ end
|
|
14
14
|
|
15
15
|
def fetch_infra_secret(label:, default: "")
|
16
16
|
if productionish?
|
17
|
-
OP_INFRA_SECRETS.delete(label) ||
|
17
|
+
OP_INFRA_SECRETS.delete(label) || Rails.logger.error("Secret `#{label}` not found in 1Password")
|
18
18
|
else
|
19
19
|
ENV.fetch(label, default.is_a?(Pathname) ? default.read : default)
|
20
20
|
end
|
@@ -24,7 +24,7 @@ def op_load_vault_into_env(vault:, tag: nil)
|
|
24
24
|
include_sudo = !Rails.env.local? ? "sudo -E " : ""
|
25
25
|
include_tag = tag ? " --tags #{tag} " : ""
|
26
26
|
%x(#{include_sudo}op item list --vault #{vault}#{include_tag}--format json | #{include_sudo}op item get - --reveal --format=json).tap do
|
27
|
-
|
27
|
+
Rails.logger.error("Failed to fetch value `#{vault}` for `#{tag}` from 1Password") unless $CHILD_STATUS.success?
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
data/lib/hephaestus/engine.rb
CHANGED
@@ -78,7 +78,8 @@ module Hephaestus
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def within_op_rate_limit?
|
81
|
-
|
81
|
+
# skip this unless we're in a Docker container
|
82
|
+
return true unless ENV.fetch("DOCKER", "0") == "1"
|
82
83
|
|
83
84
|
results = %x(#{include_sudo?}op service-account ratelimit --format=json).chomp.tap do |_result|
|
84
85
|
unless $CHILD_STATUS.success?
|
data/lib/hephaestus/version.rb
CHANGED