Skip to content

Fix: Remove sensitive payload logging and surface SPL resolution errors - #5

Open
mertcano wants to merge 1 commit into
base:mainfrom
mertcano:mertcano-patch-1
Open

Fix: Remove sensitive payload logging and surface SPL resolution errors#5
mertcano wants to merge 1 commit into
base:mainfrom
mertcano:mertcano-patch-1

Conversation

@mertcano

Copy link
Copy Markdown

Description

This PR addresses observability gaps and sensitive data exposure within the bridge-explorer repository.

Vulnerabilities & Security Defects Remediated:

  • Sensitive Logging (src/lib/solana.ts): Production console.log calls previously emitted raw Solana transaction objects, account data, signature lists, and token metadata payloads. These overly verbose logs have been completely removed to prevent sensitive payload exposure in production environments.
  • Observability and Error Propagation (src/lib/solana.ts): The getSplData function previously attempted to read token metadata using empty catch {} blocks, which silently discarded underlying failures and resulted in "unknown" token data. The implementation has been refactored to reuse a single connection and iterate through supported token programs. It now properly retains the last error and throws a contextual exception (Unable to resolve SPL data for <token>) with the original error attached as the cause, ensuring failures are safely observable.

### Description
This PR addresses observability gaps and sensitive data exposure within the `bridge-explorer` repository.

**Vulnerabilities & Security Defects Remediated:**
* **Sensitive Logging (`src/lib/solana.ts`):** Production `console.log` calls previously emitted raw Solana transaction objects, account data, signature lists, and token metadata payloads. These overly verbose logs have been completely removed to prevent sensitive payload exposure in production environments.
* **Observability and Error Propagation (`src/lib/solana.ts`):** The `getSplData` function previously attempted to read token metadata using empty `catch {}` blocks, which silently discarded underlying failures and resulted in "unknown" token data. The implementation has been refactored to reuse a single connection and iterate through supported token programs. It now properly retains the last error and throws a contextual exception (`Unable to resolve SPL data for <token>`) with the original error attached as the cause, ensuring failures are safely observable.
@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

@mertcano is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

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