Spryker
Privacy rules for Spryker B2B Marketplace 202610 on MySQL, MariaDB, and PostgreSQL
Covers customers and addresses, orders and their address copies, returns, back-office and company users, merchants, reviews, notes, social-login identities, and Spryker's tokens and secrets.
Coverage
- Versions: B2B Marketplace demo 202610.0.
- Engines: MySQL, MariaDB, PostgreSQL.
- Table prefix: the template assumes unprefixed table names. Spryker uses no table prefix; its tables start with
spy_by name.
Template
privacy:
rules:
emails:
columns:
- spy_customer.email
- spy_sales_order.email
- spy_sales_order.agent_email
- spy_sales_order_address.email
- spy_sales_order_address_history.email
- spy_sales_reclamation.customer_email
- spy_newsletter_subscriber.email
- spy_availability_notification_subscription.email
- spy_user.username
- spy_company_business_unit.email
- spy_company_user_invitation.email
- spy_merchant.email
- spy_merchant_profile.public_email
- spy_merchant_registration_request.email
- spy_oauth_knpu_customer_identity.email
- spy_oauth_knpu_merchant_user_identity.email
- spy_oauth_knpu_user_identity.email
entity: EMAIL_ADDRESS
operator: hash
names:
columns:
- spy_customer.first_name
- spy_customer.last_name
- spy_customer_address.first_name
- spy_customer_address.last_name
- spy_customer_note.username
- spy_sales_order.first_name
- spy_sales_order.last_name
- spy_sales_order_address.first_name
- spy_sales_order_address.middle_name
- spy_sales_order_address.last_name
- spy_sales_order_address_history.first_name
- spy_sales_order_address_history.middle_name
- spy_sales_order_address_history.last_name
- spy_sales_order_comment.username
- spy_sales_reclamation.customer_name
- spy_user.first_name
- spy_user.last_name
- spy_company_user_invitation.first_name
- spy_company_user_invitation.last_name
- spy_merchant_profile.contact_person_first_name
- spy_merchant_profile.contact_person_last_name
- spy_merchant_registration_request.contact_person_first_name
- spy_merchant_registration_request.contact_person_last_name
- spy_product_review.nickname
# Spryker Eco: PunchOut Gateway and Vertex (optional)
- spy_punchout_credential.username
entity: PERSON
operator: hash
user-ids:
columns:
- spy_oauth_knpu_customer_identity.external_id
- spy_oauth_knpu_merchant_user_identity.external_id
- spy_oauth_knpu_user_identity.external_id
entity: USER_ID
operator: hash
phones:
columns:
- spy_customer.phone
- spy_customer_address.phone
- spy_sales_order_address.phone
- spy_sales_order_address.cell_phone
- spy_sales_order_address_history.phone
- spy_sales_order_address_history.cell_phone
- spy_company_business_unit.phone
- spy_company_unit_address.phone
- spy_merchant_profile.contact_person_phone
- spy_merchant_profile.public_phone
- spy_merchant_profile.fax_number
- spy_merchant_registration_request.contact_person_phone
entity: PHONE_NUMBER
operator: hash
addresses:
columns:
- spy_customer_address.address1
- spy_customer_address.address2
- spy_customer_address.address3
- spy_customer_address.city
- spy_sales_order_address.address1
- spy_sales_order_address.address2
- spy_sales_order_address.address3
- spy_sales_order_address.city
- spy_sales_order_address.po_box
- spy_sales_order_address_history.address1
- spy_sales_order_address_history.address2
- spy_sales_order_address_history.address3
- spy_sales_order_address_history.city
- spy_sales_order_address_history.po_box
- spy_company_unit_address.address1
- spy_company_unit_address.address2
- spy_company_unit_address.address3
- spy_company_unit_address.city
- spy_merchant_profile_address.address1
- spy_merchant_profile_address.address2
- spy_merchant_profile_address.address3
- spy_merchant_profile_address.city
- spy_merchant_profile_address.longitude
- spy_merchant_profile_address.latitude
- spy_merchant_registration_request.address1
- spy_merchant_registration_request.address2
- spy_merchant_registration_request.city
entity: LOCATION
operator: hash
postcodes:
columns:
- spy_customer_address.zip_code
- spy_sales_order_address.zip_code
- spy_sales_order_address_history.zip_code
- spy_company_unit_address.zip_code
- spy_merchant_profile_address.zip_code
- spy_merchant_registration_request.zip_code
entity: POSTCODE
operator: hash
companies:
columns:
- spy_customer.company
- spy_customer_address.company
- spy_sales_order_address.company
- spy_sales_order_address_history.company
- spy_company.name
- spy_merchant_registration_request.company_name
entity: ORGANIZATION
operator: hash
tax-ids:
columns:
# Spryker Eco: PunchOut Gateway and Vertex (optional)
- spy_vertex_tax_id_validation_history.tax_id
entity: TAX_ID
operator: hash
registry-numbers:
columns:
- spy_merchant.registration_number
- spy_merchant_registration_request.registration_number
entity: COMMERCIAL_REGISTER
operator: hash
ibans:
columns:
- spy_company_business_unit.iban
entity: IBAN_CODE
operator: hash
bics:
columns:
- spy_company_business_unit.bic
entity: BIC_CODE
operator: hash
birth-dates:
columns:
- spy_customer.date_of_birth
entity: DATE_OF_BIRTH
operator: replace
text:
columns:
- spy_customer_address.comment
- spy_customer_note.message
- spy_sales_order.cart_note
- spy_sales_order_item.cart_note
- spy_sales_order_address.description
- spy_sales_order_address.comment
- spy_sales_order_address_history.description
- spy_sales_order_address_history.comment
- spy_sales_order_comment.message
- spy_sales_return_item.reason
- spy_company_unit_address.comment
- spy_merchant_relation_request.request_note
- spy_merchant_relation_request.decision_note
- spy_comment.message
- spy_shopping_list_item_note.note
- spy_product_review.summary
- spy_product_review.description
- spy_ssp_inquiry.subject
- spy_ssp_inquiry.description
- spy_ssp_asset.note
entity: FREE_TEXT
operator: replace
passwords:
columns:
- spy_customer.password
- spy_user.password
- spy_api_key.key_hash
# Spryker Eco: PunchOut Gateway and Vertex (optional)
- spy_punchout_credential.password_hash
entity: PASSWORD_HASH
operator: redact
tokens:
columns:
- spy_customer.restore_password_key
- spy_customer.registration_key
- spy_customer_data_change_request.verification_token
- spy_auth_reset_password.code
- spy_newsletter_subscriber.subscriber_key
- spy_availability_notification_subscription.subscription_key
- spy_company_user_invitation.hash
- spy_resource_share.uuid
# Spryker Eco: PunchOut Gateway and Vertex (optional)
- spy_punchout_session.session_token
- spy_punchout_session.buyer_cookie
entity: AUTH_TOKEN
operator: redact
otp-secrets:
columns:
- spy_customer_multi_factor_auth_codes.code
- spy_user_multi_factor_auth_codes.code
entity: OTP_SECRET
operator: redact
secrets:
columns:
- spy_oauth_access_token.identifier
- spy_oauth_refresh_token.identifier
- spy_oauth_client.secret
- spy_oauth_client_access_token_cache.access_token
- spy_vault_deposit.initial_vector
- spy_vault_deposit.cipher_text
# Spryker Eco: PunchOut Gateway and Vertex (optional)
- spy_vertex_api_access_token.access_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:
- spy_oauth_access_token.user_identifier
- spy_oauth_refresh_token.user_identifier
- spy_quote.quote_data
- spy_quote_request_version.quote
- spy_quote_request_version.metadata
- spy_sales_order_amendment_quote.quote_data
- spy_recurring_schedule.quote_data
- spy_customer_data_change_request.data
- spy_product_review_search.data
- spy_product_review_search.structured_data
- spy_merchant_storage.data
- spy_merchant_search.data
- spy_merchant_search.structured_data
- spy_company_user_storage.data
- spy_ai_conversation_history.original_messages
- spy_ai_interaction_log.prompt
- spy_ai_interaction_log.response
entity: MIXED_CONTENT
operator: replace
# Keep: mixed-content columns that hold credentials.
mixed-content-secrets:
columns:
- spy_event_behavior_entity_change.data
- spy_configuration_value.value
- spy_app_config.config
- spy_customer_multi_factor_auth.configuration
- spy_user_multi_factor_auth.configuration
entity: MIXED_CONTENT
operator: redactChoices
spy_user.usernameis the back-office login and must be an e-mail address, so it isEMAIL_ADDRESS.spy_resource_share.uuidopens a shared cart; each multi-factor method'sconfigurationholds its secret.spy_merchant_profile_address.longitudeandlatitudepin the merchant address;external_idonspy_oauth_knpu_*_identityis the social-login account id.- Optional parts: delete the Spryker Eco columns if you do not run PunchOut Gateway or Vertex, and the
mixed-contentrule to keep those columns readable; keepmixed-content-secrets. - Projects add tables and columns in their own schema files under
src/Pyz; add each to the rule for its data type.
Trade-offs
- Indexed ruled columns:
spy_customer.email,first_name,last_name;spy_newsletter_subscriber.email,subscriber_key;spy_user.username;spy_merchant.email;spy_company_user_invitation.email,hash;spy_auth_reset_password.code;spy_api_key.key_hash;spy_resource_share.uuid;spy_availability_notification_subscription.email,subscription_key;spy_company.name;spy_customer_data_change_request.verification_token;spy_oauth_refresh_token.identifier;spy_merchant_registration_request.email,company_name;spy_oauth_knpu_*_identity.external_id;spy_punchout_credential.username;spy_punchout_session.buyer_cookie,session_token. - Lookups that stop working: customers, orders, subscribers, or back-office users by e-mail; orders by city or postcode; shared carts by
uuid; alerts by unsubscribe key. - Join keys that stay unruled:
id_*andfk_*keys,customer_reference,merchant_reference, andorder_reference. - B2B data: company names, business-unit contacts and bank details, and merchant contacts are ruled: in B2B shops they name one person or a sole trader.
Not covered
spy_glossary_translation.value: merchant imprint and terms, beside every shop text.spy_refund.comment,spy_shopping_list.name,description,spy_quote.name,order_custom_reference: short labels; rule them if yours hold names.spy_sales_order_note.message,command: the state machine's command log.spryker-eco/stripe, PunchOutsession_dataandconfiguration, Vertexresponse_data: payment ids and integration payloads.spy_stock_address,spy_service_point_address,spy_merchant.name, business-unit names: business locations and names.spy_sales_payment_detail.details, item configuration, other*_storageand*_searchdata: payment and catalog metadata.
Sources
- spryker-shop/b2b-demo-marketplace@202610.0
composer.lock(pins every module below) andsrc/Pyz/Zed spryker/*Propel schemas at the locked versions, such as customer@7.88.0, sales@11.85.3, merchant-profile@1.11.1, oauth@2.15.0- spryker/synchronization-behavior@1.15.0
SynchronizationBehavior.php(dataof*_storageand*_searchtables) spryker-feature/*@202610.0: self-service-portal, order-experience-managementspryker-eco/*: punchout-gateway@1.4.1, vertex@1.9.0, stripe@1.1.1