Skip to content

feat: harden Amplitude configuration - #3188

Open
sammdec wants to merge 2 commits into
mainfrom
samm/aavev3-182-harden-amplitude-configuration-and-start-csp
Open

sammdec wants to merge 2 commits into
mainfrom
samm/aavev3-182-harden-amplitude-configuration-and-start-csp

Conversation

@sammdec

@sammdec sammdec commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Closes AAVEV3-182 (Amplitude part; CSP report-only monitoring is being handled by security in Cloudflare)

Amplitude

  • fetchRemoteConfig: false and customEnrichment: false on all three init() calls (shared AMPLITUDE_HARDENED_OPTIONS). The installed SDK (2.44.5) still honours the top-level fetchRemoteConfig flag.
  • Consent init now uses explicit autocapture: attribution, page views and sessions on; element/form interactions, file downloads, frustration interactions, network tracking and web vitals off.
  • track() events are unchanged.

Before merge

  • Confirm no Amplitude chart relies on [Amplitude] Element Clicked, Form Started or File Downloaded

🤖 Generated with Claude Code

Disable Amplitude remote config, custom enrichment and unused autocapture
features so SDK upgrades or dashboard changes can't enable code loading.

Serve a Content-Security-Policy-Report-Only header (non-static builds) with
an explicit allowlist for RPCs, wallet providers and app services. Reports
go to CSP_REPORT_URI when set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
interface Ready Ready Preview Nov 17, 2026 12:08pm UTC

Request Review

@linear-code

linear-code Bot commented Nov 17, 2026

Copy link
Copy Markdown

AAVEV3-182

@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! 🙌

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sammdec sammdec changed the title feat: harden Amplitude config and start CSP report-only monitoring feat: harden Amplitude configuration Nov 17, 2026
@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! 🙌

This branch was successfully deployed

1 active deployment
Preview — 4ed45eee Deployed Nov 17, 2026 by vercel[bot]
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