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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32294228f290d87a19a684f3fc2530fe412d34535b8e6e4718ffa60a8c615392
4
- data.tar.gz: d20ef245b643dbf82df6cd29f32a27ba97ed87fcf39be7e9919f2fed29a60cd3
3
+ metadata.gz: 507c05485b78ef114764457b17768d84c9d94e57f1171a7ad8823b0aeaa4ea9c
4
+ data.tar.gz: 2688ee1d57371e64c8b6677ac249c4c43c5609d7c34067186ad23025ba94915e
5
5
  SHA512:
6
- metadata.gz: bb78fbf480da7df605cb7e2ba071a537ee242b82a9a3e6ad82bd42bd2515fe496000fa6a8c347ac2413c3761e84d9701cdb452e9f35d6a0cc765fa3d26aaeed5
7
- data.tar.gz: 470a53668f0a208b27b75a44aea4c7c42bbe792dfe8bd3410b363797d68b596c7b2d87069cfb4c9ed631d260afacc38ab10435a5cd7cb9c93a07325fe118a9ed
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) || raise("Secret `#{label}` not found in 1Password")
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) || raise("Secret `#{label}` not found in 1Password")
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
- raise "Failed to fetch value `#{vault}` for `#{tag}` from 1Password" unless $CHILD_STATUS.success?
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
 
@@ -78,7 +78,8 @@ module Hephaestus
78
78
  end
79
79
 
80
80
  def within_op_rate_limit?
81
- return true if ENV.fetch("DOCKER", "0") == "1"
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?
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.8.15.3"
5
+ VERSION = "0.8.15.5"
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.15.3
4
+ version: 0.8.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian