govuk_app_config 4.3.0 → 4.4.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: 6c537dcfbb4c9d9f5c3780934fd66b9a31d0e9dade0b9972b837650ab99c69f4
4
- data.tar.gz: cc4db9f009c6a15015d3c06e1a765d96f6ae28873ff5540a05168954df83414a
3
+ metadata.gz: 4070dacf5d5f480b4211a1ee04594861489210afd9576fb7c02cead0bdfd46a0
4
+ data.tar.gz: 49d9035d399e5789f7e9d9736165d2d3d92797ca71dd67b03980526c4d31956a
5
5
  SHA512:
6
- metadata.gz: d9c3ad899bd4e81c750e809adc50dc8e094cb89cabb6641a7ba75b7840c56c91a4cae43c1f2291031f21b1c92fccce527ee34eb34b15601cc4c52ce7adee5aed
7
- data.tar.gz: 940fca52216b248625ef93aac95198c20df19bda11d98bd5195a42e4921ad12739d56d966dd35343ee48f2f7d5b1802a8d7cb1562933fa835c9d8e11fd04dd65
6
+ metadata.gz: '063394901e194d28b899097d489d6b696febd420ffb186ea0ab6d146c577d9b74511487b85e8b35c3d17f61aa9f92e616e968367d82254f1ddebb4157b845b2a'
7
+ data.tar.gz: a909ab411a5eb74ce123e776d9e46241a0ccd2e3dfebdaa971d8e5e9cd9106ff100b354a6ce66a68eb5787449bbbc106e28af99227229676f9a2f69b5c301d15
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # 4.4.2
2
+
3
+ - Update HMPO webchat address in security policy ([#225](https://github.com/alphagov/govuk_app_config/pull/225)).
4
+
5
+ # 4.4.1
6
+
7
+ - Fix issue where GovukPrometheusExporter module prevented the gem to load due to missing constant "PrometheusExporter" ([#224](https://github.com/alphagov/govuk_app_config/pull/224)).
8
+ - Lazy load the prometheus_exporter dependency for only apps that use GovukPrometheusExporter ([#224](https://github.com/alphagov/govuk_app_config/pull/224)).
9
+
10
+ # 4.4.0
11
+
12
+ - Add GovukPrometheusModule, to allow for export of prometheus metrics ([#223](https://github.com/alphagov/govuk_app_config/pull/223)).
13
+
1
14
  # 4.3.0
2
15
 
3
16
  - Remove Speedcurve's LUX from the connect-src policy ([#216](https://github.com/alphagov/govuk_app_config/pull/216)).
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = %w[lib]
22
22
 
23
23
  spec.add_dependency "logstasher", ">= 1.2.2", "< 2.2.0"
24
+ spec.add_dependency "prometheus_exporter", "~> 2.0.2"
24
25
  spec.add_dependency "puma", "~> 5.0"
25
26
  spec.add_dependency "sentry-rails", "~> 4.5.0"
26
27
  spec.add_dependency "sentry-ruby", "~> 4.5.0"
@@ -77,6 +77,8 @@ module GovukContentSecurityPolicy
77
77
  "hmrc-uk.digital.nuance.com",
78
78
  # Allow JSON call to klick2contact - HMPO web chat provider
79
79
  "hmpowebchat.klick2contact.com",
80
+ # Allow JSON call to Eckoh - HMPO web chat provider
81
+ "omni.eckoh.uk",
80
82
  # Allow connecting to Verify to check whether the user is logged in
81
83
  "www.signin.service.gov.uk"
82
84
 
@@ -0,0 +1,14 @@
1
+ module GovukPrometheusExporter
2
+ def self.configure
3
+ unless Rails.env == "test"
4
+ require "prometheus_exporter"
5
+ require "prometheus_exporter/server"
6
+ require "prometheus_exporter/middleware"
7
+
8
+ server = PrometheusExporter::Server::WebServer.new bind: "localhost", port: 9394
9
+ server.start
10
+
11
+ Rails.application.middleware.unshift PrometheusExporter::Middleware
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "4.3.0".freeze
2
+ VERSION = "4.4.2".freeze
3
3
  end
@@ -8,6 +8,7 @@ require "govuk_app_config/govuk_i18n"
8
8
  require "govuk_app_config/govuk_unicorn"
9
9
 
10
10
  if defined?(Rails)
11
+ require "govuk_app_config/govuk_prometheus_exporter"
11
12
  require "govuk_app_config/govuk_logging"
12
13
  require "govuk_app_config/govuk_content_security_policy"
13
14
  require "govuk_app_config/railtie"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-01 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstasher
@@ -30,6 +30,20 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.2.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: prometheus_exporter
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 2.0.2
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 2.0.2
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: puma
35
49
  requirement: !ruby/object:Gem::Requirement
@@ -268,6 +282,7 @@ files:
268
282
  - lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
269
283
  - lib/govuk_app_config/govuk_i18n.rb
270
284
  - lib/govuk_app_config/govuk_logging.rb
285
+ - lib/govuk_app_config/govuk_prometheus_exporter.rb
271
286
  - lib/govuk_app_config/govuk_puma.rb
272
287
  - lib/govuk_app_config/govuk_statsd.rb
273
288
  - lib/govuk_app_config/govuk_unicorn.rb