Skip to content

Add config masking helper and creator-list integration tests#323

Open
ritik4ever wants to merge 3 commits into
accesslayerorg:mainfrom
ritik4ever:main
Open

Add config masking helper and creator-list integration tests#323
ritik4ever wants to merge 3 commits into
accesslayerorg:mainfrom
ritik4ever:main

Conversation

@ritik4ever
Copy link
Copy Markdown

Issue #300 — Sensitive config value masking

  • Added maskSensitiveConfig() to src/utils/startup.utils.ts — accepts a config record and redacts values whose keys match sensitive patterns (secret, password, token, credential, DATABASE_URL, _API_KEY)
  • Applied the helper to a new startup config summary log in src/server.ts
  • Documented the sensitive key patterns so contributors know how to mark new secret fields

Issue #312 — Concurrent creator list consistency

  • Added src/modules/creators/creator-feed-concurrent-requests.integration.test.ts
  • Fires 2–3 simultaneous httpListCreators calls and asserts identical item sets, pagination metadata, and hasMore/total values
  • Uses a static read-only fixture to avoid write interference

Issue #299 — Malformed wallet address param

  • Added src/modules/creator/creator-profile-malformed-params.integration.test.ts
  • Tests empty, whitespace-only, and >128-char creatorId params all return HTTP 400 with VALIDATION_ERROR
  • Verifies the error shape includes details with field and message
  • Confirms valid addresses are unaffected and the service layer is not called on invalid input

Issue #317 — Response shape consistency across page sizes

  • Added src/modules/creators/creator-list-response-shape-consistency.integration.test.ts
  • Requests the creator list at limit=1, 10, and MAX_PAGE_SIZE (100)
  • Asserts identical top-level envelope keys (success, data), data envelope keys (items, meta), and meta keys (limit, offset, total, hasMore)
  • Asserts items.length matches the requested page size

Verification

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@ritik4ever 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

- Add maskSensitiveConfig helper in startup.utils to redact sensitive config
  values by key pattern (secret, password, token, credential, API key).
- Apply masking helper to a new startup configuration summary log in server.ts.
- Add integration test for concurrent creator list requests verifying
  consistent results (issue accesslayerorg#312).
- Add integration test for creator route with malformed wallet address
  param verifying 400 on wrong-length and invalid-character variants
  (issue accesslayerorg#299).
- Add integration test for creator list response shape consistency
  across page sizes 1, 10, and MAX_PAGE_SIZE (issue accesslayerorg#317).

Closes accesslayerorg#300
Closes accesslayerorg#312
Closes accesslayerorg#299
Closes accesslayerorg#317
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