hephaestus 0.8.7 → 0.8.7.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '089bc02279f0ea66446ee761f12e5a61d2c6c18f9648f204f9d2087625fcde27'
|
|
4
|
+
data.tar.gz: fcf45d196124e7ece8bf3d345fab2ca640c093efc20530550f10cc32cf614c9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 846f75d200fd5a66e0b25382d5a985e8eed9d90170f12f2f65d587457f035cbc5d181e6ccc12a8647a93d1ea22df26ca99312676a0fc95c9bcdbf38d219593c5
|
|
7
|
+
data.tar.gz: ce419a0eb8d0be0d506d4b0345ea9a5f11cecfe9b49c42ff687b34a6e53a44377cd08e7e54625768c274f63c6645c6eda6921768a63a1c6d823865c490dcc3c4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# [v0.8.7.2] - 04-12-2024
|
|
2
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.7.1...v0.8.7.2
|
|
3
|
+
# [v0.8.7.1] - 04-12-2024
|
|
4
|
+
**Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.7...v0.8.7.1
|
|
1
5
|
# [v0.8.7] - 04-12-2024
|
|
2
6
|
## What's Changed
|
|
3
7
|
* Load infra better by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/77
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
OP_VAULT_SECRETS = {}
|
|
5
5
|
OP_INFRA_SECRETS = {}
|
|
6
6
|
|
|
7
|
-
def fetch_vault_secret(label:, default:)
|
|
7
|
+
def fetch_vault_secret(label:, default: "")
|
|
8
8
|
if productionish?
|
|
9
9
|
OP_VAULT_SECRETS.delete(label) || raise("Secret `#{label}` not found in 1Password")
|
|
10
10
|
else
|
|
@@ -12,7 +12,7 @@ def fetch_vault_secret(label:, default:)
|
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
def fetch_infra_secret(label:, default:)
|
|
15
|
+
def fetch_infra_secret(label:, default: "")
|
|
16
16
|
if productionish?
|
|
17
17
|
OP_INFRA_SECRETS.delete(label) || raise("Secret `#{label}` not found in 1Password")
|
|
18
18
|
else
|
|
@@ -5,7 +5,7 @@ unless Rails.env.development?
|
|
|
5
5
|
# establish the environment for OTEL
|
|
6
6
|
ENV["OTEL_EXPORTER_OTLP_ENDPOINT"] = "https://api.honeycomb.io"
|
|
7
7
|
|
|
8
|
-
ENV["OTEL_EXPORTER_OTLP_HEADERS"] =
|
|
8
|
+
ENV["OTEL_EXPORTER_OTLP_HEADERS"] = fetch_infra_secret(
|
|
9
9
|
label: "OTEL_EXPORTER_OTLP_HEADERS",
|
|
10
10
|
default: "x-honeycomb-team=your-api-key",
|
|
11
11
|
)
|
|
@@ -7,7 +7,7 @@ SlackWebhookLogger.setup do |config|
|
|
|
7
7
|
# Webhook URL
|
|
8
8
|
#
|
|
9
9
|
# The URL where messages will be sent.
|
|
10
|
-
config.webhook_url =
|
|
10
|
+
config.webhook_url = fetch_infra_secret(
|
|
11
11
|
label: "SLACK_LOG_URL",
|
|
12
12
|
default: "https://slack.com/the_log_room",
|
|
13
13
|
)
|
data/lib/hephaestus/engine.rb
CHANGED
|
@@ -61,13 +61,9 @@ module Hephaestus
|
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if Rails.env.local?
|
|
68
|
-
ENV.fetch(label, default.is_a?(Pathname) ? default.read : default)
|
|
69
|
-
else
|
|
70
|
-
op_read("op://Infra/Global Secrets/#{label}")
|
|
64
|
+
def load_environment
|
|
65
|
+
unless Rails.env.local?
|
|
66
|
+
ENV["DATABASE_URL"] = op_read("op://Infra/Plug #{Rails.env.upcase} Secrets/Common/DATABASE_URL")
|
|
71
67
|
end
|
|
72
68
|
end
|
|
73
69
|
end
|
|
@@ -91,6 +87,8 @@ module Hephaestus
|
|
|
91
87
|
ENV.fetch("DOCKER", false) == "1" ? "sudo -E " : ""
|
|
92
88
|
end
|
|
93
89
|
|
|
90
|
+
# we need to check if the 1Password CLI is installed and load it ASAP,
|
|
91
|
+
# because it contains all the secrets
|
|
94
92
|
check_dependencies! unless Rails.env.local?
|
|
95
93
|
end
|
|
96
94
|
end
|
data/lib/hephaestus/version.rb
CHANGED