hephaestus 0.8.7 → 0.8.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3c1fc749a8387f060bd64519a41ff75516668a53e4960d2ad36b5f876b58d6d
4
- data.tar.gz: 4818733c054814165462e31b131ca1edbfde01d2d1d34f8c0715a497421679c6
3
+ metadata.gz: '089bc02279f0ea66446ee761f12e5a61d2c6c18f9648f204f9d2087625fcde27'
4
+ data.tar.gz: fcf45d196124e7ece8bf3d345fab2ca640c093efc20530550f10cc32cf614c9d
5
5
  SHA512:
6
- metadata.gz: 95ca846fca450e6df9221e933c28d041fabb91715b9b57f952951d350c50bf87bce4ce183495348c4df812133a8d068b41317855dc8f3e74457ca9664d4b463e
7
- data.tar.gz: a6ca9a870d6e9423ca066c3c11541b1ef5d458b875f4f2f02e88e6f5c0ba3c30482a84f19e5b4f52b9a4d3e202338cc9b3486112db195267c100ffae87d3c6ce
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"] = Hephaestus::Engine.fetch_infra_secret(
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 = Hephaestus::Engine.fetch_infra_secret(
10
+ config.webhook_url = fetch_infra_secret(
11
11
  label: "SLACK_LOG_URL",
12
12
  default: "https://slack.com/the_log_room",
13
13
  )
@@ -61,13 +61,9 @@ module Hephaestus
61
61
  end
62
62
  end
63
63
 
64
- # we need to check if the 1Password CLI is installed and load it ASAP,
65
- # because it contains all the secrets
66
- def fetch_infra_secret(label:, default:)
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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.8.7"
5
+ VERSION = "0.8.7.2"
6
6
  RAILS_VERSION = ">= 8.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hephaestus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian