hephaestus 0.8.3 → 0.8.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/config/initializers/environment.rb +2 -1
- data/lib/hephaestus/engine.rb +3 -3
- 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: f8da2ce61468a298f561ac34ad705930465faf5f207a228a79c97a4e2a81dfab
|
4
|
+
data.tar.gz: 69d0c330a1c83e6b0744dfe3eb6020fb582fad4ab915d921813d7ae9e09da15b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3054abd8a1b93e36b75a96585a21d97d01a44d502f273123fd37df9aee8f4e7edb6300e853e51de8fc655b3777ace767c284e060899d06f961b9272c4e357e02
|
7
|
+
data.tar.gz: 3b4ae9002b2e8a92ffbfc8eb5b8928cd4cd09f11b67fdc135d20f2a03d94daa61a615e1148d3eb20c98c8ff8060cdb5e4a106545700a52f9feb2d25c11a096e9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# [v0.8.3.2] - 26-11-2024
|
2
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.3.1...v0.8.3.2
|
3
|
+
# [v0.8.3.1] - 26-11-2024
|
4
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.3...v0.8.3.1
|
1
5
|
# [v0.8.3] - 26-11-2024
|
2
6
|
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.2...v0.8.3
|
3
7
|
# [v0.8.2] - 25-11-2024
|
@@ -12,7 +12,8 @@ def fetch_vault_secret(label:, default:)
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def op_load_vault_into_env(vault:, tag:)
|
15
|
-
|
15
|
+
include_sudo = !Rails.env.local? ? "sudo -E " : ""
|
16
|
+
%x(#{include_sudo}op item list --vault #{vault} --tags #{tag} --format json | #{include_sudo}op item get - --reveal --format=json).tap do
|
16
17
|
raise "Failed to fetch value `#{vault}` for `#{tag}` from 1Password" unless $CHILD_STATUS.success?
|
17
18
|
end
|
18
19
|
end
|
data/lib/hephaestus/engine.rb
CHANGED
@@ -65,10 +65,10 @@ module Hephaestus
|
|
65
65
|
# we need to check if the 1Password CLI is installed and load it ASAP,
|
66
66
|
# because it contains all the secrets
|
67
67
|
def fetch_infra_secret(label:, default:)
|
68
|
-
if
|
69
|
-
op_read("op://Infra/Global Secrets/#{label}")
|
70
|
-
else
|
68
|
+
if Rails.env.local?
|
71
69
|
ENV.fetch(label, default.is_a?(Pathname) ? default.read : default)
|
70
|
+
else
|
71
|
+
op_read("op://Infra/Global Secrets/#{label}")
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
data/lib/hephaestus/version.rb
CHANGED