Skip to content

Commit

Permalink
add new cert for regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aschey-forpeople committed Nov 26, 2024
1 parent 4f9ab8f commit 6166f4b
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/utils/locust_tests/lambda/server-regression/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ def handler(event, context):
f"/bfd/{environment}/server/sensitive/db/password", with_decrypt=True
)
cert_key = get_ssm_parameter(
f"/bfd/{environment}/server/sensitive/test_client_key", with_decrypt=True
f"/bfd/{environment}/server/sensitive/server_regression_key", with_decrypt=True
)
cert = get_ssm_parameter(
f"/bfd/{environment}/server/sensitive/test_client_cert", with_decrypt=True
f"/bfd/{environment}/server/sensitive/server_regression_cert", with_decrypt=True
)
except ValueError as exc:
send_pipeline_signal(
Expand Down
13 changes: 10 additions & 3 deletions ops/terraform/services/base/ephemeral.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ locals {
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_root_ca" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_root_ca"
"/bfd/${local.env}/server/nonsensitive/client_certificates/bcda_prod_client" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bcda_prod_client"
"/bfd/${local.env}/server/nonsensitive/client_certificates/performance_tests" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/performance_tests"
"/bfd/${local.env}/server/nonsensitive/client_certificates/regression_tests" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/regression_tests"
"/bfd/${local.env}/server/nonsensitive/client_certificates/dpc_prod_client" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/dpc_prod_client"
"/bfd/${local.env}/server/nonsensitive/client_certificates/ab2d_prod_client" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/ab2d_prod_client"
"/bfd/${local.env}/server/nonsensitive/client_certificates/ab2d_prod_validation_client" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/ab2d_prod_validation_client"
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_backend_prod_data_server_client_test" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_backend_prod_data_server_client_test",
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_backend_prod_data_server_client_test" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_backend_prod_data_server_client_test"
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_backend_test_samhsa" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_backend_test_samhsa"
}
prod-sbx = {
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_backend_dpr_data_server_client_test" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_backend_dpr_data_server_client_test",
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_backend_dpr_data_server_client_test" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_backend_dpr_data_server_client_test"
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_backend_test_samhsa" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_backend_test_samhsa"
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_root_ca_test" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_root_ca_test"
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_root_ca_sbx" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_root_ca_sbx"
Expand All @@ -55,6 +56,7 @@ locals {
"/bfd/${local.env}/server/nonsensitive/client_certificates/bcda_sbx_client" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bcda_sbx_client"
"/bfd/${local.env}/server/nonsensitive/client_certificates/bcda_local_client" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bcda_local_client"
"/bfd/${local.env}/server/nonsensitive/client_certificates/performance_tests" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/performance_tests"
"/bfd/${local.env}/server/nonsensitive/client_certificates/regression_tests" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/regression_tests"
"/bfd/${local.env}/server/nonsensitive/client_certificates/dpc_prod_sbx_client" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/dpc_prod_sbx_client"
"/bfd/${local.env}/server/nonsensitive/client_certificates/dpc_test_client" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/dpc_test_client"
"/bfd/${local.env}/server/nonsensitive/client_certificates/dpc_dev_client" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/dpc_dev_client"
Expand All @@ -65,10 +67,11 @@ locals {
"/bfd/${local.env}/server/nonsensitive/client_certificates/prod_sbx_bfd_cms_gov" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/prod_sbx_bfd_cms_gov"
}
test = {
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_backend_test_data_server_client_test" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_backend_test_data_server_client_test",
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_backend_test_data_server_client_test" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_backend_test_data_server_client_test"
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_backend_test_samhsa" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_backend_test_samhsa"
"/bfd/${local.env}/server/nonsensitive/client_certificates/bluebutton_root_ca" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/bluebutton_root_ca"
"/bfd/${local.env}/server/nonsensitive/client_certificates/performance_tests" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/performance_tests"
"/bfd/${local.env}/server/nonsensitive/client_certificates/regression_tests" = "/bfd/${local.seed_env}/server/nonsensitive/client_certificates/regression_tests"
}
}

Expand All @@ -91,6 +94,10 @@ locals {
"/bfd/${local.env}/server/sensitive/db/password" = "/bfd/${local.seed_env}/server/sensitive/db/password"
"/bfd/${local.env}/server/sensitive/test_client_cert" = "/bfd/${local.seed_env}/server/sensitive/test_client_cert"
"/bfd/${local.env}/server/sensitive/test_client_key" = "/bfd/${local.seed_env}/server/sensitive/test_client_key"
"/bfd/${local.env}/server/sensitive/test_client_cert" = "/bfd/${local.seed_env}/server/sensitive/test_client_samhsa_cert"
"/bfd/${local.env}/server/sensitive/test_client_key" = "/bfd/${local.seed_env}/server/sensitive/test_client_samhsa_key"
"/bfd/${local.env}/server/sensitive/server_regression_cert" = "/bfd/${local.seed_env}/server/sensitive/server_regression_cert"
"/bfd/${local.env}/server/sensitive/server_regression_key" = "/bfd/${local.seed_env}/server/sensitive/server_regression_key"
}, local.seed_env_certs[local.seed_env]) : {}
}

Expand Down
Loading

0 comments on commit 6166f4b

Please sign in to comment.