Skip to content

Add structured request/response logging with redaction #590

Description

@Abdulazeem-code

Description

Current logging uses ad-hoc logger.error() calls with inconsistent formats. Sensitive fields like signatures and API keys may be logged in plaintext.

Proposed Solution

Configure pino-http with a custom serializer that redacts signature, secret, x-api-key, and authorization fields. Log request method, path, status code, and duration for every request.

Acceptance Criteria

  • pino-http configured with custom serializers
  • Sensitive fields redacted in all log output
  • Every request logged with method, path, status, duration
  • Log format is machine-parseable JSON

Suggested Implementation Areas

server.js, src/logger.js

Impact

Enables production log analysis while preventing accidental exposure of secrets in log aggregators.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions