Skip to content

Closing #677 #678 #682 - #693

Closed
Jubilee-001 wants to merge 4 commits into
Sub-Rosa-Issue:mainfrom
Jubilee-001:fix/677-678-682-validation-redaction-filesize
Closed

Jubilee-001 wants to merge 4 commits into
Sub-Rosa-Issue:mainfrom
Jubilee-001:fix/677-678-682-validation-redaction-filesize

Conversation

@Jubilee-001

Copy link
Copy Markdown

#677: Validate Quicknet response content types

  • Add http-client.ts with content-type validation for Drand responses
  • Require application/json with optional charset
  • Reject unexpected media types before parsing
  • Return stable redacted errors
  • Add fixture-based tests in http-client.test.ts
  • Update quicknet.ts to use validating client by default

#678: Redact URL credentials and query strings in shared logs

  • Update serialization.cjs to redact query strings and fragments
  • Redact username:password@, query parameters, and fragments in URLs
  • Apply to strings and Error objects in shared logger
  • Add nested-field tests in index.test.cjs

#682: Cap receipt CLI output file size before overwrite

  • Refuse to overwrite non-empty output unless --force flag supplied
  • Write through temporary file and rename atomically
  • Use owner-only permissions (0o600) for new files
  • Add failure and success CLI tests

Closes #677
Closes #678
Closes #682

Sub-Rosa-Issue#677: Validate Quicknet response content types
- Add http-client.ts with content-type validation for Drand responses
- Require application/json with optional charset
- Reject unexpected media types before parsing
- Return stable redacted errors
- Add fixture-based tests in http-client.test.ts
- Update quicknet.ts to use validating client by default

Sub-Rosa-Issue#678: Redact URL credentials and query strings in shared logs
- Update serialization.cjs to redact query strings and fragments
- Redact username:password@, query parameters, and fragments in URLs
- Apply to strings and Error objects in shared logger
- Add nested-field tests in index.test.cjs

Sub-Rosa-Issue#682: Cap receipt CLI output file size before overwrite
- Refuse to overwrite non-empty output unless --force flag supplied
- Write through temporary file and rename atomically
- Use owner-only permissions (0o600) for new files
- Add failure and success CLI tests
…action-filesize

Closing Sub-Rosa-Issue#677 Sub-Rosa-Issue#678 Sub-Rosa-Issue#682: Validate Quicknet response content types, redact URL credentials, cap receipt CLI output file size
@drips-wave

drips-wave Bot commented Nov 25, 2026

Copy link
Copy Markdown

@Jubilee-001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Jubilee-001 Jubilee-001 reopened this Nov 25, 2026
- Restore ROUND_CONTRACT_ERRORS and related types/functions in errors.ts
- Add SubRosaPaginationError class used by client.ts
- Restore hasUrlCredentials, assertNoUrlCredentials, and network helper functions in network.ts
- Export missing functions in index.ts
- Update public-api-snapshot test to match main branch
- Fix ciphertext.test.ts typecheck by providing required sealBid parameters
@Jubilee-001
Jubilee-001 force-pushed the fix/677-678-682-validation-redaction-filesize branch from 33a745e to b46d67a Compare November 25, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant