Skip to content

fix(api/services): strip internal fields from public response#2

Open
whogf22 wants to merge 1 commit intomasterfrom
fix/api-services-strip-internal-fields
Open

fix(api/services): strip internal fields from public response#2
whogf22 wants to merge 1 commit intomasterfrom
fix/api-services-strip-internal-fields

Conversation

@whogf22
Copy link
Copy Markdown
Owner

@whogf22 whogf22 commented Apr 21, 2026

Strip internal fields from public response in service retrieval.Previously /api/services returned the full DB row to unauthenticated clients, leaking wholesale costPrice and upstreamPrice margin data, priceLocked flag, and internal numeric ids.

Both the main enrichment path and the catch fallback now destructure out the sensitive fields before responding.

Strip internal fields from public response in service retrieval.Previously /api/services returned the full DB row to unauthenticated clients, leaking wholesale costPrice and upstreamPrice margin data, priceLocked flag, and internal numeric ids.

Both the main enrichment path and the catch fallback now destructure out the sensitive fields before responding.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
getotps Ready Ready Preview, Comment Apr 21, 2026 9:35am

whogf22 added a commit that referenced this pull request Apr 30, 2026
whogf22 added a commit that referenced this pull request Apr 30, 2026
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