Cardintel Security Framework

Secure by design, stronger at every layer.

Cardintel should protect accounts, card data, payment flows, saved cards, and public profile links with practical security controls that can grow with the platform.

Cardintel Security Stack
Hardened foundation
Public PagesEscape user-generated card text, sanitize URLs, block dangerous link protocols, and protect public card rendering.
AccountsUse Supabase Auth, strong password recovery, confirmed account ownership, and server-side profile rules.
DatabaseUse row-level security so users can only read, create, update, or save records they are allowed to access.
PaymentsKeep payment credentials and webhook secrets out of browser files and inside secure server-side settings.
HostingDeploy HTTPS and security headers for content security policy, HSTS, frame protection, referrer limits, and browser permissions.

What Was Added

A stronger front-end security layer for Cardintel cards.

The new security helper gives the site one shared place to handle common risky inputs before they are shown on public cards or dashboard card lists.

Safe text rendering

Card names, emails, phone numbers, descriptions, tags, and saved-card details are escaped before being inserted into the page.

Safe link handling

Business links, websites, directions, review links, ordering links, and social links are sanitized before becoming clickable.

Dangerous link guard

The shared browser guard blocks unsafe protocols such as script-style links if a bad link somehow reaches the page.

Secure card IDs

Card IDs are encoded in view links and escaped in dashboard button actions so they cannot break the page structure.

Payment separation

Payment secrets stay server-side. Public pages only call safe checkout paths or hosted payment links.

Security headers

The hosting headers file now includes stricter browser protections for content policy, referrers, framing, permissions, and HTTPS.

Production Checklist

The live website still needs these controls turned on.

Code hardening helps, but the strongest protection comes from combining the code with the right settings in hosting, database, payment, and admin accounts.

OK
Deploy over HTTPSThe security headers and HSTS protection matter most when the site is deployed on a real HTTPS domain.
OK
Keep secrets out of public filesNever place payment secrets, webhook secrets, service-role keys, or private API keys in HTML, CSS, or browser JavaScript.
OK
Use Supabase row-level securityEvery table that stores accounts, cards, saved cards, orders, subscriptions, or private customer data should have RLS policies.
OK
Protect admin accountsUse unique passwords and multi-factor authentication for database, payment, email, domain, hosting, and any future admin dashboards.
OK
Verify payment eventsOnly trusted payment events should update a customer's plan or subscription status in the database.
OK
Audit before launchTest signup, login, password reset, creating cards, saving cards, subscribing, canceling, and viewing public cards before going live.

Security Roadmap

What to strengthen next as Cardintel grows.

Next major upgrade

Move inline scripts into separate files and tighten the content security policy with nonces or hashes. That will make the browser security policy much stronger while keeping the current static website usable today.

Admin roles

Add role-based permissions for Cardintel owners, support, business admins, team managers, and regular users.

Audit logs

Record important account, card, payment, and admin changes so suspicious activity can be reviewed.

Rate limits

Add limits for login, password reset, card saving, contact forms, AI prompts, and public profile actions.

Backups

Schedule secure backups for Supabase data and verify that customer records can be restored if needed.

Privacy controls

Let users decide which public card fields are visible, hidden, or available only to saved contacts.

Security, Privacy & Trust Architecture

Use the broader trust roadmap to plan physical security, device security, identity protection, AI security, incident response, disaster recovery, and enterprise readiness.

Open Trust Architecture