hephaestus 0.8.15.5 → 0.8.16

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: 507c05485b78ef114764457b17768d84c9d94e57f1171a7ad8823b0aeaa4ea9c
4
- data.tar.gz: 2688ee1d57371e64c8b6677ac249c4c43c5609d7c34067186ad23025ba94915e
3
+ metadata.gz: f141bfecf20df190360c8c07e940e02c2a9e3a9273e2b9c3a3acb3bf0cb35cd5
4
+ data.tar.gz: 44feab3fcbf8e863111293651bb1e87c75ae24af25f1563b61256b8e154141de
5
5
  SHA512:
6
- metadata.gz: 38957f8ca0fddea05fd4a337dbc2632770398d6034fa5635f729ac0b55d2f243bc13283e6076ff245f3e9dc1ee9ff35423a3af809b118798454d5cc00a351ffb
7
- data.tar.gz: f90f995a3c9dc816f20d85b3efcf867f8b78a1de92cec1387d7bd30f2c7585b29713dedc7bea07581456afdd72dbf8b6eb4c1da3cd155ebcf80b39eef29e3c71
6
+ metadata.gz: ccb5ea73b4707487c46242394367680a8488dbf77180597f016771e3d4d89990b123ace277cf8414a10729d849dbe1939538310d179cd4037db190adda3d9963
7
+ data.tar.gz: dcc54b5a9195f4e4955b2450c7e1c08c930dc38ffaa7b47fa27792589a354f4a67bfcc82ddd8b2bd5b8c3d71923269a5eb857140f7e3ca37b87b964bd2292c9b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # [v0.8.16] - 26-01-2025
2
+ ## What's Changed
3
+ * Point to new API url by @gjtorikian in https://github.com/yettoapp/hephaestus/pull/105
4
+
5
+
6
+ **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.15.5...v0.8.16
1
7
  # [v0.8.15.5] - 16-01-2025
2
8
  **Full Changelog**: https://github.com/yettoapp/hephaestus/compare/v0.8.15.4...v0.8.15.5
3
9
  # [v0.8.15.4] - 16-01-2025
@@ -17,7 +17,7 @@ module Hephaestus
17
17
  return bad_request unless yetto_signature.start_with?("sha256=")
18
18
 
19
19
  hmac_header = yetto_signature.split("sha256=").last
20
- body = request.env.fetch("RAW_POST_DATA", "")
20
+ body = request.raw_post
21
21
 
22
22
  calculated_hmac = OpenSSL::HMAC.hexdigest(SHA256_DIGEST, Hephaestus::YETTO_SIGNING_SECRET, body)
23
23
 
@@ -80,16 +80,28 @@ module Hephaestus
80
80
  end
81
81
 
82
82
  PROTOCOL = Rails.env.development? ? "http://" : "https://"
83
- YETTO_URL = if Rails.env.production?
84
- "web.yetto.app"
83
+
84
+ YETTO_DOMAIN = if Rails.env.production?
85
+ "yetto.app"
85
86
  elsif Rails.env.staging?
86
- "web.yetto.dev"
87
- elsif Rails.env.development?
88
- "localhost:3000"
87
+ "yetto.dev"
89
88
  elsif Rails.env.test?
90
- "web.yetto.test"
89
+ "yetto.test"
90
+ end
91
+ YETTO_URL = if Rails.env.development?
92
+ "localhost:3000"
93
+ else
94
+ "web.#{YETTO_DOMAIN}"
91
95
  end
92
96
 
97
+ YETTO_API_URL = if Rails.env.local?
98
+ "localhost:3000/api"
99
+ else
100
+ "api.#{YETTO_DOMAIN}"
101
+ end
102
+
103
+ YETTO_REDIRECT_URL = productionish? ? "#{PROTOCOL}#{YETTO_URL}" : "#{PROTOCOL}127.0.0.1:3000"
104
+
93
105
  # Every plug has secrets; to reduce the amount of API calls to 1Password,
94
106
  # we can grab one document that contains all the secrets we need
95
107
  if productionish?
@@ -114,9 +126,6 @@ module Hephaestus
114
126
  end
115
127
  end
116
128
 
117
- YETTO_API_URL = "#{YETTO_URL}/api"
118
- YETTO_REDIRECT_URL = productionish? ? "#{PROTOCOL}#{YETTO_URL}" : "#{PROTOCOL}127.0.0.1:3000"
119
-
120
129
  YETTO_PLUG_PEM = fetch_vault_secret(
121
130
  label: "YETTO_PLUG_PEM",
122
131
  default: Rails.root.join("test/fixtures/files/fake_pem_file/fake.pem"),
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Hephaestus
5
- VERSION = "0.8.15.5"
5
+ VERSION = "0.8.16"
6
6
  RAILS_VERSION = ">= 8.0"
7
7
  RUBY_VERSION = File
8
8
  .read("#{File.dirname(__FILE__)}/../../.ruby-version")
@@ -294,4 +294,4 @@ app/javascript/controllers/*.js
294
294
  !app/javascript/controllers/index.js
295
295
 
296
296
  security_results.json
297
- vendor/cache/
297
+ vendor/cache
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hephaestus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.15.5
4
+ version: 0.8.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-16 00:00:00.000000000 Z
11
+ date: 2025-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootsnap