Skip to content

Commit

Permalink
chore(wait/tls): clarify cert in image
Browse files Browse the repository at this point in the history
Clarify why a cert should not be included in a production image.
  • Loading branch information
stevenh committed Nov 26, 2024
1 parent 77cc34a commit 58ba86c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/features/wait/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ pair to exist once started and then read the
[tls.Config](https://pkg.go.dev/crypto/tls#Config), alongside how to copy a test
certificate pair into a container image using a `Dockerfile`.

It that copying certificate pairs into an images is only an example which might
be useful for testing with testcontainers-go and should not be done with
production images.
It should be noted that copying certificate pairs into an images is only an
example which might be useful for testing with testcontainers-go and should not
be done with production images as that could expose your certificates if your
images become public.

<!--codeinclude-->
[Wait for certificate](../../../wait/tls_test.go) inside_block:waitForTLSCert
Expand Down

0 comments on commit 58ba86c

Please sign in to comment.