1. Purpose and scope
This policy defines how Ecommerce na Régua (ecommercenaregua.com.br), a web application that helps online sellers track sales, costs and profit across marketplaces (Mercado Livre, TikTok Shop and others), protects the confidentiality, integrity and availability of the data it processes. It applies to all systems, code, infrastructure, people and third-party providers involved in operating the service, and to all data obtained from marketplace APIs (including the TikTok Shop Open API) on behalf of sellers who authorize the application.
2. Roles and responsibilities
- The company founder acts as the Information Security Officer, responsible for this policy, access reviews, incident response and vendor management.
- Everyone with access to production systems must follow this policy and report any suspected incident immediately to contato@ecommercenaregua.com.br.
- Access to production is limited to the founding team; no contractor or third party has access to production data.
3. Data we process and data minimization
- We only request the API scopes needed for the features the seller uses (orders, products, finance/settlements and shop authorization).
- Order data is fetched from the marketplace APIs on demand and shown only to the authenticated seller who owns the shop. We do not persist buyer personal data (names, addresses, phone numbers) in our database.
- What we store: the seller's account (e-mail), OAuth tokens for the connected shops, the seller's own product cost catalog and settings, and cached aggregated financial figures (e.g. settlement and shipping amounts per order ID) used to calculate profit.
- Marketplace data is never sold, rented, used for advertising, used to train AI models, or shared with other sellers or third parties.
4. Access control
- Every user authenticates with e-mail and password (Supabase Auth). All dashboard pages and APIs require a valid session, and every query is scoped to the authenticated user's ID, so a seller can only see their own data.
- The database has Row Level Security enabled on every table with no public policies; data is only reachable through our server-side code using a service credential that is never sent to the browser.
- Administrative accounts (code repository, hosting, database, payments, marketplace developer portals) are restricted to the founding team, use unique strong passwords and require multi-factor authentication.
- Access is granted on a least-privilege basis and reviewed at least every six months, and immediately when someone leaves the team.
5. Encryption
- In transit: all traffic uses HTTPS/TLS 1.2+. HTTP Strict Transport Security (HSTS) is enforced on the domain, and all calls to marketplace APIs, the database and payment provider use TLS.
- At rest: data is stored in a managed PostgreSQL database (Supabase, hosted on AWS) with AES-256 disk encryption and encrypted backups.
- Payments are processed by Stripe; we never receive or store card data.
6. Secrets and token management
- API keys, app secrets and database credentials are stored only as encrypted environment variables in our hosting provider (Vercel). They are never committed to source code, shared in chat or e-mail, or written to logs.
- Marketplace OAuth access and refresh tokens are stored server-side only, are never exposed to the browser, and are refreshed automatically before expiry.
- When a seller disconnects a marketplace in the app, the stored tokens for that shop are deleted immediately. Secrets are rotated whenever exposure is suspected.
- The OAuth flow uses a random
state value (or an explicit in-app confirmation for authorizations started on the marketplace side) to prevent cross-site request forgery.
7. Application and infrastructure security
- Hosting on Vercel (serverless, managed infrastructure on AWS) and Supabase; operating-system and network patching is handled by these SOC 2 Type II certified providers.
- Security headers on every response: X-Frame-Options DENY and CSP frame-ancestors (anti-clickjacking), X-Content-Type-Options nosniff, Referrer-Policy, Permissions-Policy and HSTS.
- State-changing API requests from foreign origins are rejected (Origin check), webhooks are verified by signature, and paid features are enforced on the server, not only in the interface.
- Usage limits protect expensive endpoints (e.g. a daily limit per user for AI features); inputs are validated and size-limited on the server; error messages returned to users do not reveal internal details.
8. Secure development and change management
- All code lives in a private Git repository. Every change is committed with an identified author and deployed through the hosting provider's build pipeline; failed builds are never deployed.
- Changes that touch authentication, payments or marketplace data are reviewed for security before release, including periodic security reviews of the whole codebase.
- Dependencies come from the official npm registry, are pinned in a lock file and are updated when security fixes are published.
- Test and sandbox shops are used for development; production seller data is not copied to development environments.
9. Logging and monitoring
Application and access logs are kept by our hosting provider and reviewed for errors and unusual activity. Logs never contain passwords, API secrets or OAuth tokens.
10. Data retention and deletion
- Data is kept only while the seller's account and marketplace connection are active and as needed to provide the service.
- Disconnecting a shop deletes its tokens immediately. A seller may request deletion of their account and all associated data at any time by e-mail; we complete the deletion within 30 days.
- Cached marketplace data is limited in size and refreshed from the source API; it is deleted together with the account.
11. Incident response
- Any suspected security incident is triaged immediately: contain (revoke/rotate affected credentials and tokens, block access), investigate, remediate and document.
- Affected sellers and the affected marketplace platform (including TikTok Shop) are notified without undue delay and within 24 hours of confirming an incident involving their data, and the competent authorities are notified as required by Brazil's LGPD (Law 13,709/2018).
- After each incident we review the root cause and update this policy and our controls.
12. Business continuity
Our providers run the application across redundant infrastructure with automatic daily database backups. The application can be redeployed from the Git repository at any time.
13. Third-party providers
We only use providers with recognized security certifications and contractual confidentiality obligations: Vercel (hosting), Supabase (database and authentication), Stripe (payments) and the marketplace APIs themselves. Providers are reviewed before adoption and when this policy is reviewed.
14. Compliance and contact
We comply with Brazil's LGPD and with the data policies of each marketplace we integrate with, including the TikTok Shop Partner data security and privacy requirements. See also our Privacy Policy. Security questions or reports: contato@ecommercenaregua.com.br.