Azure / azure-sdk-tools

Tools repository leveraged by the Azure SDK team.
MIT License
111 stars 176 forks source link

[stress-testing] Update fault injector container to publish dev cert #8125

Open benbp opened 5 months ago

benbp commented 5 months ago

In order to support https testing, the fault injector container should generate a dotnet dev cert on startup and copy it to a shared volume. This way other containers in the pod making calls to the injector can load the dev cert and use https.

From @mikeharder

The http-fault-injector image needs to somehow (at build time or run time): Run dotnet dev-certs https --export to export a *.pfx file Share the file with the test (client) container The client image needs to somehow (at build time or run time) Copy the certificate created by http-fault-injector image Run java tool keytool -import

CC @ibrahimrabab @lmolkova

kurtzeborn commented 5 months ago

Hey @lmolkova , this seems related to the addition you contributed a few months ago. Do you have time to take a look?

seanmcc-msft commented 5 months ago

@kurtzeborn I believe we need this feature for HTTPS perf testing.

mikeharder commented 2 months ago

Doc that may be helpful: https://learn.microsoft.com/en-us/aspnet/core/security/docker-https?view=aspnetcore-8.0

benbp commented 2 months ago

We have implemented the kubernetes cluster solution https://github.com/Azure/azure-sdk-for-java/pull/41126 but are working on the local dev solution still. FYI @ibrahimrabab