0.0
No commit activity in last 3 years
No release in over 3 years
Masking production data mongodb for testing/development
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
>= 0
>= 0
>= 0
 Project Readme

Mongodb-data-masking

Masking your data in mongodb

Usage

gem install mongo_masker
mongo_masker mask mask.yml

Example mask.yml

version: 1
db_url: mongodb://mongodb:27017/development
models:
  - name: users
    condition:
      email:
        "$not": !ruby/regexp '/@basicinc\.jp$/'
    fields:
      email: FFaker::Internet.unique.safe_email
  - name: users
    fields:
      reset_password_token: String.new
      confirmation_token: String.new
  - name: sitesconta
    fields:
      title: FFaker::NameJA.name
      description: FFaker::LoremJA.sentence
      domain: FFaker::Internet.domain_name
      external_service: :external_services
  - name: external_services
    fields:
      _type: "'ExternalService'"
      facebook: nil
      google: nil
  - name: contacts
    condition:
      site_id:
        "$ne": BSON::ObjectId('12312345346456456456sdff')
    delete: true