Security

How Dzayr Social protects your account, tokens and content.

Last updated: 25 November 2026 ยท Version 1.0.

Dzayr Social is designed to hold as little as possible and to protect what it holds.

Account access

  • Sign-in uses Google OAuth. We never receive or store your Google password.
  • Sessions are HttpOnly, Secure and SameSite cookies; they expire after seven days and can be revoked by signing out.
  • Sign-in requests are rate-limited per client address to slow down repeated attempts.

Platform tokens

  • Access and refresh tokens for Facebook, Instagram, TikTok, YouTube and LinkedIn are encrypted with AES-256-GCM before they reach the database.
  • The encryption key is a Cloudflare Worker secret, separate from the database. Each ciphertext is bound to its own connection row, so a token copied to another row cannot be decrypted.
  • Tokens are decrypted only for the duration of a platform call. They are never written to logs, returned to the browser or included in error reports.
  • Disconnecting an account erases its stored tokens immediately. Deleting your account erases all tokens and connections.

Least privilege

We request only the permissions needed to publish:

  • Google: openid, email, profile for sign-in; youtube.force-ssl only when you connect a YouTube channel, to upload, schedule, update and delete that channel's videos.
  • Meta: pages_show_list, pages_read_engagement, pages_manage_posts, instagram_basic, instagram_content_publish.
  • TikTok: user.info.basic, video.publish.
  • LinkedIn: openid, profile, email, w_member_social.

Tenant separation

Every read and write is scoped to the workspace resolved from your verified session. A request cannot name another workspace's connection, post or media by guessing an identifier.

Media

Uploaded media is stored in a private R2 bucket and served under an unguessable key. It is not listable, and it is deleted when its post or account is deleted. Published media is retained for 30 days after publication.

Deletion

Account deletion removes your posts, targets, media records, connections, tokens, legal acceptance and audit history in one atomic D1 batch. The R2 objects are deleted after the batch; backups expire within 30 days.

Disclosure

If you find a security issue, write to security@dzayr.cloud. Please include enough detail to reproduce it and give us a reasonable time to fix it before publishing. We acknowledge reports within two business days.

No perfect security

No service can promise perfect security. We monitor the Service, keep dependencies current and limit access to production systems. If a breach affects your data, we will notify you and the competent authority as the law requires.