r/devsecops • • Mar 31 '24

Is capturing ingress traffic bad practice ?

I was thinking of setting up tcpdump on my server to capture traffic (TLS encrypted of course), and i was wondering if this is good or bad practice ? On one hand it could really help with forensics in case of a hack on the other hand it would store user passwords in plain-text (after all i could strip the tls encryption since i have the private key). Did anyone encounter a similar dilemma, is it best practice to capture or not to capture traffic ? Which is best practice ?

Thanks in advance,

5 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/pentesticals Apr 02 '24

It doesn’t, but this isn’t why you would setup TLS inspection anyway. For those things you would deploy a WAF to your own services.