Skip to content

Commit

Permalink
UML-3547 introduced new feature flag - "paper_verification" with a de… (
Browse files Browse the repository at this point in the history
#3022)

* UML-3547 introduced new feature flag - "paper_verification" with a default value of false (off)
  • Loading branch information
allenannom authored Dec 27, 2024
1 parent 9dccc1f commit 46bfd29
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 5 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions service-front/app/config/autoload/features.global.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@
getenv('SUPPORT_DATASTORE_LPAS'),
FILTER_VALIDATE_BOOLEAN
) ?: false,
'paper_verification' => filter_var(
getenv('PAPER_VERIFICATION'),
FILTER_VALIDATE_BOOLEAN
) ?: false,
],
];
1 change: 1 addition & 0 deletions service-front/app/features/bootstrap/behat.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'delete_lpa_feature' => true,
'allow_gov_one_login' => true,
'support_datastore_lpas' => false,
'paper_verification' => false,
],
'notify' => [
'api' => [
Expand Down
2 changes: 2 additions & 0 deletions terraform/environment/region.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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 = {
Expand Down
4 changes: 4 additions & 0 deletions terraform/environment/region/api_ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
4 changes: 4 additions & 0 deletions terraform/environment/region/use_ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
]
})
Expand Down
4 changes: 4 additions & 0 deletions terraform/environment/region/viewer_ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
],
)
}
15 changes: 10 additions & 5 deletions terraform/environment/terraform.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions terraform/environment/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 46bfd29

Please sign in to comment.