Skip to content

fix: tag compliance checks with surface=v3 - #3092

Open
mgrabina wants to merge 1 commit into
mainfrom
compliance-surface-tag
Open

fix: tag compliance checks with surface=v3#3092
mgrabina wants to merge 1 commit into
mainfrom
compliance-surface-tag

Conversation

@mgrabina

@mgrabina mgrabina commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

The compliance API accepts an optional ?surface= on /check/{address} and records it on every denial, so /compliance blocked-stats --surface v3 can split denials by product. This route never sent it, so every denial from the V3 interface lands as UNATTRIBUTED.

Reported in #aave-compliance: --surface v3 returned 0 wallets over a full year, while the same query without the filter returned 120, all under UNATTRIBUTED.

The param is reporting-only and never affects the verdict. It is unauthenticated and an unrecognised value is ignored rather than rejected, so it cannot block a user.

The V4 Pro side is https://github.com/aave/aave-pro/pull/1393.

Only takes effect from deploy forward. Existing denial rows have no surface recorded and cannot be backfilled.

The compliance API records which surface a denial came from, but only when the
caller sends ?surface=. Without it every denial lands as UNATTRIBUTED and
/compliance blocked-stats --surface v3 returns zero.
@odin-by-borg

odin-by-borg Bot commented Aug 20, 2026

Copy link
Copy Markdown

Mjolnir Security Review

VerdictCLEAN · 0 findings
Commit6bb42ee · 20s

No security vulnerabilities identified. The PR adds a static query parameter (?surface=v3) to an existing server-side compliance API call. All pre-existing input validation (Ethereum address format check via isAddress() from viem, encodeURIComponent encoding) and SSRF protections remain intact. The COMPLIANCE_SECRET continues to be sourced from environment variables and transmitted via header. No new attack surface is introduced.

View in Odin


12 PRs reviewed

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
interface Ready Ready Preview Aug 20, 2026 2:06pm

Request Review

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

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.

2 participants