diff --git a/docker-compose.yml b/docker-compose.yml index ab22779ffc..7438d6e362 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -64,6 +64,7 @@ services: SESSION_EXPIRES: 30 # session expiry length to support timeout message. COOKIE_EXPIRES: 1440 # cookie expiry for complete logout - initial value to be 24 hours. SUPPORT_DATASTORE_LPAS: "false" + PAPER_VERFICATION: "false" depends_on: - api-web diff --git a/service-front/app/config/autoload/features.global.php b/service-front/app/config/autoload/features.global.php index 0a49740eae..c4ee55e0fe 100644 --- a/service-front/app/config/autoload/features.global.php +++ b/service-front/app/config/autoload/features.global.php @@ -24,5 +24,9 @@ getenv('SUPPORT_DATASTORE_LPAS'), FILTER_VALIDATE_BOOLEAN ) ?: false, + 'paper_verification' => filter_var( + getenv('PAPER_VERIFICATION'), + FILTER_VALIDATE_BOOLEAN + ) ?: false, ], ]; diff --git a/service-front/app/features/bootstrap/behat.config.php b/service-front/app/features/bootstrap/behat.config.php index b5467a6cc8..0096d3d83c 100644 --- a/service-front/app/features/bootstrap/behat.config.php +++ b/service-front/app/features/bootstrap/behat.config.php @@ -38,6 +38,7 @@ 'delete_lpa_feature' => true, 'allow_gov_one_login' => true, 'support_datastore_lpas' => false, + 'paper_verification' => false, ], 'notify' => [ 'api' => [ diff --git a/terraform/environment/region.tf b/terraform/environment/region.tf index 1dffca588e..1f5bad5cd9 100644 --- a/terraform/environment/region.tf +++ b/terraform/environment/region.tf @@ -71,6 +71,7 @@ module "eu_west_1" { "deploy_opentelemetry_sidecar" = local.environment.deploy_opentelemetry_sidecar "delete_lpa_feature" = local.environment.application_flags.delete_lpa_feature "support_datastore_lpas" = local.environment.application_flags.support_datastore_lpas + "paper_verification" = local.environment.application_flags.paper_verification } providers = { @@ -158,6 +159,7 @@ module "eu_west_2" { "deploy_opentelemetry_sidecar" = local.environment.deploy_opentelemetry_sidecar "delete_lpa_feature" = local.environment.application_flags.delete_lpa_feature "support_datastore_lpas" = local.environment.application_flags.support_datastore_lpas + "paper_verification" = local.environment.application_flags.paper_verification } providers = { diff --git a/terraform/environment/region/api_ecs.tf b/terraform/environment/region/api_ecs.tf index 33077bb9a2..b3835b78dc 100644 --- a/terraform/environment/region/api_ecs.tf +++ b/terraform/environment/region/api_ecs.tf @@ -541,6 +541,10 @@ locals { name = "ALLOW_GOV_ONE_LOGIN", value = tostring(var.feature_flags.allow_gov_one_login) }, + { + name = "PAPER_VERIFICATION", + value = tostring(var.feature_flags.paper_verification) + }, { name = "LOGIN_SERIAL_CACHE_URL", value = "tls://${data.aws_elasticache_replication_group.brute_force_cache_replication_group.primary_endpoint_address}" diff --git a/terraform/environment/region/use_ecs.tf b/terraform/environment/region/use_ecs.tf index c209bd1351..c7f1184344 100644 --- a/terraform/environment/region/use_ecs.tf +++ b/terraform/environment/region/use_ecs.tf @@ -367,6 +367,10 @@ locals { { name = "SUPPORT_DATASTORE_LPAS", value = tostring(var.feature_flags.support_datastore_lpas) + }, + { + name = "PAPER_VERIFICATION", + value = tostring(var.feature_flags.paper_verification) } ] }) diff --git a/terraform/environment/region/viewer_ecs.tf b/terraform/environment/region/viewer_ecs.tf index ca1ae89053..afbf5af4d2 100644 --- a/terraform/environment/region/viewer_ecs.tf +++ b/terraform/environment/region/viewer_ecs.tf @@ -334,6 +334,10 @@ locals { name = "SUPPORT_DATASTORE_LPAS", value = tostring(var.feature_flags.support_datastore_lpas) }, + { + name = "PAPER_VERIFICATION", + value = tostring(var.feature_flags.paper_verification) + }, ], ) } diff --git a/terraform/environment/terraform.tfvars.json b/terraform/environment/terraform.tfvars.json index d8fc24c215..ddf43d2f64 100644 --- a/terraform/environment/terraform.tfvars.json +++ b/terraform/environment/terraform.tfvars.json @@ -61,7 +61,8 @@ "delete_lpa_feature": true, "allow_meris_lpas": false, "allow_gov_one_login": true, - "support_datastore_lpas": false + "support_datastore_lpas": false, + "paper_verification": false }, "dynamodb_tables": { "actor_codes": { @@ -159,7 +160,8 @@ "delete_lpa_feature": true, "allow_meris_lpas": false, "allow_gov_one_login": false, - "support_datastore_lpas": false + "support_datastore_lpas": false, + "paper_verification": false }, "dynamodb_tables": { "actor_codes": { @@ -257,7 +259,8 @@ "delete_lpa_feature": true, "allow_meris_lpas": false, "allow_gov_one_login": true, - "support_datastore_lpas": false + "support_datastore_lpas": false, + "paper_verification": false }, "dynamodb_tables": { "actor_codes": { @@ -355,7 +358,8 @@ "delete_lpa_feature": true, "allow_meris_lpas": false, "allow_gov_one_login": true, - "support_datastore_lpas": false + "support_datastore_lpas": false, + "paper_verification": false }, "dynamodb_tables": { "actor_codes": { @@ -452,7 +456,8 @@ "delete_lpa_feature": true, "allow_meris_lpas": false, "allow_gov_one_login": true, - "support_datastore_lpas": false + "support_datastore_lpas": false, + "paper_verification": false }, "dynamodb_tables": { "actor_codes": { diff --git a/terraform/environment/variables.tf b/terraform/environment/variables.tf index 0c006272c0..14ea070f96 100644 --- a/terraform/environment/variables.tf +++ b/terraform/environment/variables.tf @@ -84,6 +84,7 @@ variable "environments" { delete_lpa_feature = bool allow_meris_lpas = bool support_datastore_lpas = bool + paper_verification = bool }) dynamodb_tables = object({ actor_codes = object({