File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,16 @@ async fn request(
217217 Ok ( v)
218218}
219219
220+ #[ cfg( not( feature = "fips" ) ) ]
221+ fn compute_host ( service : & String , region : & String , domain : & str ) -> String {
222+ format ! ( "{}.{}.{}" , service, region, domain)
223+ }
224+
225+ #[ cfg( feature = "fips" ) ]
226+ fn compute_host ( service : & String , region : & String , domain : & str ) -> String {
227+ format ! ( "{}-fips.{}.{}" , service, region, domain)
228+ }
229+
220230fn build_get_secret_signed_headers (
221231 aws_config : & AwsConfig ,
222232 region : String ,
@@ -231,7 +241,7 @@ fn build_get_secret_signed_headers(
231241 "amazonaws.com"
232242 } ;
233243
234- let host = format ! ( "{}.{}.{}" , header_values. service, region, domain) ;
244+ let host = compute_host ( & header_values. service , & region, domain) ;
235245
236246 let canonical_uri = "/" ;
237247 let canonical_querystring = "" ;
You can’t perform that action at this time.
0 commit comments