@@ -186,14 +186,14 @@ impl FixtureImage {
186186 & self . tag
187187 }
188188
189- async fn build ( & self , dockerfile : & Path , context : & Path ) -> Result < ( ) , String > {
189+ async fn build ( & self , dockerfile : & Path , context : & Path , label : & str ) -> Result < ( ) , String > {
190190 let mut command = Command :: from ( self . engine . command ( ) ) ;
191191 command
192192 . args ( [ "build" , "--file" ] )
193193 . arg ( dockerfile)
194194 . args ( [ "--tag" , & self . tag ] )
195195 . arg ( context) ;
196- checked_command_with_timeout ( & mut command, "build fixture image" , IMAGE_BUILD_TIMEOUT )
196+ checked_command_with_timeout ( & mut command, label , IMAGE_BUILD_TIMEOUT )
197197 . await
198198 . map ( |_| ( ) )
199199 }
@@ -1369,16 +1369,25 @@ async fn acknowledged_provider_changes_apply_to_fresh_clients_and_revoke_retaine
13691369 "FROM {base}\n USER root\n COPY client.py /opt/provider-readiness-client.py\n USER sandbox\n "
13701370 ) ) . map_err ( |_| "could not write fixture Dockerfile" ) ?;
13711371 let supervisor_dockerfile = context. join ( "Dockerfile.supervisor" ) ;
1372- // Outbound TLS belongs to the separate supervisor. Its combined public
1373- // trust bundle is delivered to the workload through the sandbox protocol.
1374- // Preserve the base image's user setting: Docker's archive upload applies
1375- // an explicit image user to the supervisor's private bootstrap files.
1372+ // Outbound TLS belongs to the separate supervisor. Replace the system
1373+ // bundle in this test-only image with the fixture CA without invoking a
1374+ // shell: the production supervisor image is deliberately distroless.
1375+ // The supervisor retains its compiled Mozilla roots and delivers this
1376+ // fixture CA together with the generated sandbox CA to the workload.
13761377 std:: fs:: write ( & supervisor_dockerfile, format ! (
1377- "FROM {}\n COPY fixture-ca.crt /tmp/readiness-fixture-ca.crt \n RUN cat /tmp/readiness-fixture-ca.crt >> / etc/ssl/certs/ca-certificates.crt && rm /tmp/readiness-fixture-ca .crt\n " ,
1378+ "FROM {}\n COPY fixture-ca.crt /etc/ssl/certs/ca-certificates.crt\n " ,
13781379 gateway_config. supervisor_image
13791380 ) ) . map_err ( |_| "could not write fixture supervisor Dockerfile" ) ?;
1380- image. build ( & dockerfile, & context) . await ?;
1381- supervisor_image. build ( & supervisor_dockerfile, & context) . await ?;
1381+ image
1382+ . build ( & dockerfile, & context, "build workload fixture image" )
1383+ . await ?;
1384+ supervisor_image
1385+ . build (
1386+ & supervisor_dockerfile,
1387+ & context,
1388+ "build supervisor fixture image" ,
1389+ )
1390+ . await ?;
13821391 gateway_config. apply ( supervisor_image. tag ( ) ) . await ?;
13831392 let profile = directory. path ( ) . join ( "profile.json" ) ;
13841393 let policy = directory. path ( ) . join ( "policy.json" ) ;
0 commit comments