Ghost
Privacy rules for Ghost 6.x on MySQL 8 and SQLite
Covers the e-mail addresses, names, notes, IPs, password hashes, and tokens Ghost 6 stores for members and staff, including newsletter recipient, Stripe, donation, gift, and automation copies.
Coverage
- Versions: 6.0 to 6.79.
- Engines: MySQL 8, SQLite.
- Table prefix: the template assumes unprefixed table names. Ghost uses no table prefix.
Template
privacy:
rules:
emails:
columns:
- members.email
- users.email
- invites.email
- members_stripe_customers.email
- members_email_change_events.from_email
- members_email_change_events.to_email
- email_recipients.member_email
- donation_payment_events.email
- suppressions.email
- email_spam_complaint_events.email_address
- automated_email_recipients.member_email
- automation_runs.member_email
- gifts.buyer_email
- gift_deliveries.recipient_email
# Sender addresses (optional)
- newsletters.sender_email
- email_design_settings.sender_email
- welcome_email_automated_emails.sender_email
- automated_emails.sender_email # before 6.30
entity: EMAIL_ADDRESS
operator: hash
names:
columns:
- members.name
- users.name
- members_stripe_customers.name
- email_recipients.member_name
- donation_payment_events.name
- automated_email_recipients.member_name
- gifts.buyer_name
- gifts.recipient_name
# Staff public profiles (optional)
- users.facebook
- users.twitter
- users.threads
- users.bluesky
- users.mastodon
- users.tiktok
- users.youtube
- users.instagram
- users.linkedin
entity: PERSON
operator: hash
addresses:
columns:
- members.geolocation
# Staff public profiles (optional)
- users.location
entity: LOCATION
operator: hash
urls:
columns:
# Staff public profiles (optional)
- users.website
entity: URL
operator: replace
ip-addresses:
columns:
- user_sessions.ip_address
entity: IP_ADDRESS
operator: hash
user-agents:
columns:
- user_sessions.user_agent
entity: USER_AGENT
operator: hash
text:
columns:
- members.note
- members.expertise
- donation_payment_events.donation_message
- gifts.personal_message
# Staff public profiles (optional)
- users.bio
entity: FREE_TEXT
operator: replace
passwords:
columns:
- users.password
- user_accounts.password
entity: PASSWORD_HASH
operator: redact
tokens:
columns:
- members.transient_id
- tokens.token
- invites.token
- sessions.session_id
- user_sessions.token
- verifications.value
- gifts.token
- gift_links.token
- post_gift_links.gift_link_token
entity: AUTH_TOKEN
operator: redact
otp-secrets:
columns:
- user_two_factors.secret
- user_two_factors.backup_codes
entity: OTP_SECRET
operator: redact
secrets:
columns:
- api_keys.secret
- webhooks.secret
- user_accounts.access_token
- user_accounts.refresh_token
- user_accounts.id_token
entity: API_KEY
operator: redact
# Optional: mixed-content columns. Ruling them hides their non-personal content too; remove to keep it readable.
mixed-content:
columns:
- tokens.data
- verifications.identifier
- sessions.session_data
- comments.html
- email_recipient_failures.message
- members_metafield_values.value_text
- actions.context
entity: MIXED_CONTENT
operator: replace
# Keep: mixed-content columns that hold credentials.
mixed-content-secrets:
columns:
- settings.value
entity: MIXED_CONTENT
operator: redactChoices
members.geolocationis a JSON string of the country and region looked up from the sign-up IP.- Sender addresses are set by staff and can be a person's;
automated_emailsis the pre-6.30 name ofwelcome_email_automated_emails. - Optional parts: delete the commented staff-profile and sender-address columns you want readable, and the
mixed-contentrule if the assistant needs those columns readable. - Custom member field values sit in
members_metafield_values.value_text, ruled undermixed-content.
Without mixed-content-secrets, SELECT value FROM settings returns Ghost's Stripe, Mailgun, and signing secrets unredacted under rules, and global detection under full misses most of them. Delete it only if the assistant never reads settings.
Trade-offs
- Indexed ruled columns:
members.email,transient_id,users.email,invites.email,token,suppressions.email,api_keys.secret,sessions.session_id,user_sessions.token, the gift tokens,tokens.token,email_recipients.member_email, and (mixed-content)verifications.identifier. - Lookups that stop working: members, staff, invites, suppressions, and recipients by e-mail; donations and gifts by buyer e-mail;
post_gift_linkstogift_linksby token. - Join keys that stay unruled:
id, everymember_idanduser_id,members.uuidandmember_uuid, andmembers_stripe_customers.customer_id.
Not covered
user_sessions.origin: browser data, no matching data type.- Stripe references (
gifts.stripe_checkout_session_id,subscriptions.payment_user_url): ids and links, not personal by themselves. referrer_url,attribution_url,utm_*: describe the page and campaign, not the person.emails.from,emails.reply_to,sender_reply_to: a name-and-address string or a keyword.mentionssource columns: public data of third-party sites.posts,post_revisions,snippets,emails.html: staff-written content.
Sources
- TryGhost/Ghost schema at v6.79.0 and v6.0.0
default-settings.jsonat v6.79.0members-api.js,session-service.ts, andsingle-use-token-provider.jsat v6.79.0config.production.jsonandconfig.development.jsonat v6.79.0