Coder Social home page Coder Social logo

maskdump's People

Contributors

mnc avatar

Stargazers

 avatar  avatar

Watchers

 avatar

maskdump's Issues

redesign plugin mechanism

plugin directory

ユーザーが自前のマスククラスを追加する場合、どこのを読みにいくようにすべきか。
今は lib/mozaic/mask_method/plugin/*.rb を読みに行くようにしている。

gem

pluginディレクトリだと制約もおおいし、internalなディレクトリ内をさわらなくてよいから、gem名を指定するようにしたほうがいい
fluentdみたいにregisterするようにするのもあり

table定義のdump

active_record/tasks/mysql_database_tasks.rb
にある
rake db:structure:dump
によるsqlファイルの出力は、dump対象のテーブルが指定できない。
それが問題だが、空のテーブルができるのは問題ない気がする。
問題あったらActiveRecord::Base.connection.execute("SHOW CREATE TABLE table_name;")

require method option

method: defaultはやめる。なにがおきるか使う人からわからない

  • email
  • tel
  • blackout

add data masking methods

直近追加するMasking方式

課題とその解決が一致していたら実施する

  • ルックアップデータを準備してそれと置き換え(?)
  • 指定したデータにreplaceする
  • Nulling Out
  • All Mask(length remained), - All Mask(length fixed)

  • Substitution
  • Shuffling
  • Number and date variance
  • Nulling out or deletion
  • Masking out
  • Encryption

load setting values from ENV in YAML

Railsで使う場合はdatabase.ymlを読み込めるようにしたいが、database.ymlを読み込むならRailsを起動しないといけない。
別のwebアプリケーションでも同様の問題がおきるから、yaml内にerbでenvを読み込めるようにする。

support pg_dump

TODO

  • use pg_dump instead of selecting records with SQL
  • convert dump file to AST by parslet gem
  • transform AST by parslet gem
  • put all COPY data into array

support differential maskdump

TBC

  • how to support maskdump differential in mysql
  • how to support maskdump differential in postgresql

Problem

we need use mysqlbinlog to dump differential data. It's complicated...

plugin用のクラスの置き場

ユーザーが自前のマスククラスを追加する場合、どこのを読みにいくようにすべきか。
今は lib/mozaic/mask_method/plugin/*.rb を読みに行くようにしている。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.