Skip to content

Connector framework: add redaction and audit fixture #50

Open

Description

@sridharkalaibala

Parent issue: #34

Goal

Add a synthetic test fixture proving connector logs/audit records redact private data and secrets.

Suggested files to inspect

  • api/src/utils/redact.js
  • api/tests/unit/
  • Existing audit/logging tests

Acceptance criteria

  • A synthetic connector run produces an audit/log record with connector id, action, timestamp, status, retry count, and safe error code.
  • The fixture includes fake secret-like values and private payload fields that must be redacted.
  • Tests prove API keys, tokens, passwords, customer identifiers, payment details, tax IDs, and raw payloads are not written to logs/audit output.
  • Tests cover success and failure/error paths.
  • No real credentials or production payloads are used.
  • The PR links back to App and connector platform: reviewable integrations without weakening the offline POS core #34.

Validation

  • Run the focused API test command for the new fixture.
  • Run cd api && npm test -- <new or changed test file>.

Out of scope

  • Implementing a live connector.
  • Secret storage UI.
  • Background sync or external API calls.

Activity

  1. added
    enhancement
    help wanted
    area: integrations
    needs evidence
    size: medium
    on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: integrationsenhancementhelp wantedneeds evidencesize: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions