corazawaf / coraza

OWASP Coraza WAF is a golang modsecurity compatible web application firewall library
https://www.coraza.io
Apache License 2.0
2.3k stars 226 forks source link

Feature: Expose Tx timestamp. #1144

Open s3rj1k opened 2 months ago

s3rj1k commented 2 months ago

Consider exposing Timestamp https://github.com/corazawaf/coraza/blob/main/internal/corazawaf/transaction.go#L116 in types.Transaction interface.

jcchavezs commented 1 month ago

Do you mind elaborating on the reason? What is the use case?

s3rj1k commented 1 month ago

Do you mind elaborating on the reason? What is the use case?

I was working on TTL based cache for Tx, so having timestamp from actual transaction could benefit by reducing addition calls to time.Now() for getting same information.

jcchavezs commented 3 weeks ago

@s3rj1k this is a legit use case, do you have any code you could share for such a thing?

s3rj1k commented 3 weeks ago

Same answer as before, code is not available sadly.