Skip to content

Harden monetization and analytics RLS#189

Open
EmergentKnowledgeGroup wants to merge 1 commit into
SebastienGosa:mainfrom
EmergentKnowledgeGroup:harden-monetization-analytics-rls
Open

Harden monetization and analytics RLS#189
EmergentKnowledgeGroup wants to merge 1 commit into
SebastienGosa:mainfrom
EmergentKnowledgeGroup:harden-monetization-analytics-rls

Conversation

@EmergentKnowledgeGroup
Copy link
Copy Markdown

Follow-up for #100, separate from #188.\n\nThis tightens direct client reads for monetization and analytics tables that contain user/payment metadata:\n\n- keeps raw donations owner-only instead of exposing every non-anonymous donation row\n- adds a safe public donor projection and preserves monthly transparency aggregates\n- enables RLS on search_queries and affiliate_clicks\n- makes query/click direct reads owner-only so IP, user agent, geo, conversion, order, and user-linked search metadata stay out of direct public table reads\n\nValidation:\n- docker compose up -d postgres\n- database/schema.sql bootstrapped successfully in the pgvector Postgres container\n\nThe previous public RLS PR #188 covers users, reading lists, and annotations; this PR covers the remaining monetization/analytics exposure path.

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