Skip to content

Harden URL logging and cache key warnings#9

Merged
hamdymohamedak merged 1 commit into
openfetch-js:mainfrom
hamdymohamedak:features/security-url-redaction-cache-warn
Apr 15, 2026
Merged

Harden URL logging and cache key warnings#9
hamdymohamedak merged 1 commit into
openfetch-js:mainfrom
hamdymohamedak:features/security-url-redaction-cache-warn

Conversation

@hamdymohamedak
Copy link
Copy Markdown
Member

@hamdymohamedak hamdymohamedak commented Apr 15, 2026

Add redactSensitiveUrlQuery helper and export it from the public API.

  • OpenFetchError.toShape now redacts sensitive query parameters from URLs by default.
  • Debug plugin redacts URLs in logged metadata.
  • createCacheMiddleware emits a one-time console.warn when Authorization or Cookie is present without varyHeaderNames or a custom cache key; add suppressAuthCacheKeyWarning to opt out.

Include unit tests, security test updates, and README/SECURITY documentation.

Add redactSensitiveUrlQuery helper and export it from the public API.

- OpenFetchError.toShape now redacts sensitive query parameters from URLs by default.
- Debug plugin redacts URLs in logged metadata.
- createCacheMiddleware emits a one-time console.warn when Authorization or Cookie is present without varyHeaderNames or a custom cache key; add suppressAuthCacheKeyWarning to opt out.

Include unit tests, security test updates, and README/SECURITY documentation.

Made-with: Cursor
@hamdymohamedak hamdymohamedak merged commit 9235a78 into openfetch-js:main Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant