Skip to content

Logging path, method, and response code for outbound https to external service #49684

Closed Answered by krenaut1
krenaut1 asked this question in Q&A
Discussion options

You must be logged in to vote

It turns out that this is not possible at least as far as I can tell. There might be some hack that could work out there. The issue is that the app inside the pod is opening an SSL connection to the outside world. The sidecar cannot terminate it and re-originate because it would need a certificate that matched the target host to do so. This can however be done if the pod initiates a plain HTTP connection. The sidecar can terminate that and then re-orginate it as HTTPS to the target. Then everything gets logged as expected.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by krenaut1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants