From 1f00eb026058691653c192c8c87c4508f55a3511 Mon Sep 17 00:00:00 2001 From: Alex Avlonitis Date: Thu, 25 Apr 2024 10:35:53 +0100 Subject: [PATCH 1/2] Add GDS::SSO::PermissionDeniedError to excluded exceptions list - We do not need to capture these errors generated from gds-sso. They do not indicate that something went wrong with the application; rather, they indicate that a user does not have permissions to access a resource. --- lib/govuk_app_config/govuk_error/configuration.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/govuk_app_config/govuk_error/configuration.rb b/lib/govuk_app_config/govuk_error/configuration.rb index be4d5d5..c1f5574 100644 --- a/lib/govuk_app_config/govuk_error/configuration.rb +++ b/lib/govuk_app_config/govuk_error/configuration.rb @@ -40,6 +40,7 @@ def set_up_defaults "CGI::Session::CookieStore::TamperedWithCookie", "GdsApi::HTTPIntermittentServerError", "GdsApi::TimedOutException", + "GDS::SSO::PermissionDeniedError", "Mongoid::Errors::DocumentNotFound", "Puma::HttpParserError", "Sinatra::NotFound", From 95fd7a580dad03a19ba0fe272748ae8ebd888ea9 Mon Sep 17 00:00:00 2001 From: Alex Avlonitis Date: Thu, 25 Apr 2024 13:45:00 +0100 Subject: [PATCH 2/2] Update changelog and bump version number --- CHANGELOG.md | 4 ++++ lib/govuk_app_config/version.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39996ed..5c9dcd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 9.11.0 + +* Add GDS::SSO::PermissionDeniedError to excluded exceptions list ([#366](https://github.com/alphagov/govuk_app_config/pull/366)) + # 9.10.0 * Simplify the logic for deciding whether to initialize `GovukPrometheusExporter`. `GovukPrometheusExporter` provides the `/metrics` webserver and "exporter" process for aggregating counters in multi-process apps. govuk_app_config will now always attempt to initialize GovukPrometheusExporter except when running under `rails console`. The `GOVUK_PROMETHEUS_EXPORTER` environment variable no longer has any effect. diff --git a/lib/govuk_app_config/version.rb b/lib/govuk_app_config/version.rb index c3bfa29..51211b1 100644 --- a/lib/govuk_app_config/version.rb +++ b/lib/govuk_app_config/version.rb @@ -1,3 +1,3 @@ module GovukAppConfig - VERSION = "9.10.0".freeze + VERSION = "9.11.0".freeze end