Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #627 from hmcts/HMIS-1094-add-cert
Browse files Browse the repository at this point in the history
HMIS-1094 - Add Crime Cert
  • Loading branch information
chris-pateman authored Sep 20, 2022
2 parents 3870ba4 + 9a852f2 commit 621f881
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 15 deletions.
2 changes: 1 addition & 1 deletion infrastructure/template/api-op-crime-health-policy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<inbound>
<base />
<rewrite-uri template="/knock-knock" copy-unmatched-params="true" />
<authentication-certificate certificate-id="hmicrimecert" />
<authentication-certificate certificate-id="crimecert" />
<set-header name="Authorization" exists-action="delete" />
<set-backend-service base-url="https://#{crimeHost}#/cppi/v3/" />
</inbound>
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/template/api-op-update-hearing-policy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
</when>
<when condition="@(context.Request.Headers.GetValueOrDefault("Destination-System","") == "CRIME")">
<rewrite-uri template="/sandl-in/hearings/{hearing-id}" copy-unmatched-params="true" />
<authentication-certificate certificate-id="hmicrimecert" />
<authentication-certificate certificate-id="crimecert" />
<set-header name="Authorization" exists-action="delete" />
<set-backend-service base-url="https://#{crimeHost}#/" />
</when>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
10 changes: 9 additions & 1 deletion infrastructure/terraform/environment/dev-hmi.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ open_api_health_spec_content_value = "https://raw.githubusercontent.com/hmcts/re
revision = "47"
service_url = ""
enable_mock_header_string = "<set-header name=\"_EnableMocks\" exists-action=\"override\"><value>true</value></set-header>"
virtual_network_type = "Internal"
virtual_network_type = "Internal"

custom_certificates = {
"crime" = {
id = "crimecert"
certificate_filename = "crime-nonprod.pfx"
certificate_password = "#{cert_crime_nonprod_password}#"
}
}
13 changes: 4 additions & 9 deletions infrastructure/terraform/environment/ithc-hmi.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ enable_mock_header_string = "<set-header name=\"_EnableMocks\" exists-a
virtual_network_type = "Internal"

custom_certificates = {
/* "crime" = {
id = "hmicrimecert"
certificate_filename = "hmicrimecert.pfx"
certificate_password = "#{hmicrimecert_password}#"
}, */
"crimetest" = {
id = "hmicrimecert"
certificate_filename = "fullchain-nopass.pfx"
certificate_password = ""
"crime" = {
id = "crimecert"
certificate_filename = "crime-nonprod.pfx"
certificate_password = "#{cert_crime_nonprod_password}#"
}
}
10 changes: 9 additions & 1 deletion infrastructure/terraform/environment/sbox-hmi.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ open_api_health_spec_content_value = "https://raw.githubusercontent.com/hmcts/re
revision = "47"
service_url = ""
enable_mock_header_string = "<set-header name=\"_EnableMocks\" exists-action=\"override\"><value>true</value></set-header>"
virtual_network_type = "Internal"
virtual_network_type = "Internal"

custom_certificates = {
"crime" = {
id = "crimecert"
certificate_filename = "crime-nonprod.pfx"
certificate_password = "#{cert_crime_nonprod_password}#"
}
}
10 changes: 9 additions & 1 deletion infrastructure/terraform/environment/stg-hmi.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ open_api_health_spec_content_value = "https://raw.githubusercontent.com/hmcts/re
revision = "47"
service_url = ""
enable_mock_header_string = "<set-header name=\"_EnableMocks\" exists-action=\"override\"><value>true</value></set-header>"
virtual_network_type = "Internal"
virtual_network_type = "Internal"

custom_certificates = {
"crime" = {
id = "crimecert"
certificate_filename = "crime-nonprod.pfx"
certificate_password = "#{cert_crime_nonprod_password}#"
}
}
10 changes: 9 additions & 1 deletion infrastructure/terraform/environment/test-hmi.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ open_api_health_spec_content_value = "https://raw.githubusercontent.com/hmcts/re
revision = "47"
service_url = ""
enable_mock_header_string = "<set-header name=\"_EnableMocks\" exists-action=\"override\"><value>true</value></set-header>"
virtual_network_type = "Internal"
virtual_network_type = "Internal"

custom_certificates = {
"crime" = {
id = "crimecert"
certificate_filename = "crime-nonprod.pfx"
certificate_password = "#{cert_crime_nonprod_password}#"
}
}

0 comments on commit 621f881

Please sign in to comment.