How do we disable "REDACTED" for worker logpush?

We are using logpush to send our data from workers over to NewRelic. The data coming to new relic has "REDACTED" in the URL for one of the query params. This is from Cloudflare as NewRelic does "XXX" when redacting. How can we disable the redaction of the query param URL. For this param in particular we are using a token to identify the customer.
2 Replies
Chaika
Chaika16mo ago
I don't believe there is anyway you can disable it, other then just avoiding it. The logic for it is here, if it helps:
// Redacts potential secret keys from a given URL using a couple heuristics: // - Any run of hex characters of 32 or more digits, ignoring potential "+-_" separators // - Any run of base64 characters of 21 or more digits, including at least // two each of digits, capital letters, and lowercase letters. // Such ids are replaced with the text "REDACTED". kj::String redactUrl(kj::StringPtr url);
https://github.com/cloudflare/workerd/blob/3f8ecc8732af39ad7962da0ce72c8d8eac4a7ecd/src/workerd/api/util.c%2B%2B#L153 https://github.com/cloudflare/workerd/blob/3f8ecc8732af39ad7962da0ce72c8d8eac4a7ecd/src/workerd/api/util.h#L94
zmanc
zmancOP16mo ago
Wonderful find @chaika.me wonder if we can file an enhancement request, or its better to just change the platform we have and change the attributes.
Want results from more Discord servers?
Add your server