All Projects → mpchadwick → Dbanon

mpchadwick / Dbanon

Licence: mit
A run anywhere database anonymizer

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Dbanon

Hookphp
HookPHP基于C扩展搭建内置AI编程的架构系统-支持微服务部署|热插拔业务组件-集成业务模型|权限模型|UI组件库|多模板|多平台|多域名|多终端|多语言-含常驻内存|前后分离|API平台|LUA QQ群:679116380
Stars: ✭ 575 (+1337.5%)
Mutual labels:  magento
Ddev
DDEV-Local: a local PHP development environment system
Stars: ✭ 915 (+2187.5%)
Mutual labels:  magento
Magento2 Form Field Manager
Customer and Address Form Fields Manager for Magento2
Stars: ✭ 21 (-47.5%)
Mutual labels:  magento
Magento Malware Scanner
Scanner, signatures and the largest collection of Magento malware
Stars: ✭ 608 (+1420%)
Mutual labels:  magento
Magento1 Sl Si
🇸🇮 Magento 1 Slovenian translations
Stars: ✭ 5 (-87.5%)
Mutual labels:  magento
Magento1
Docker Image to Magento 1 local development in Mac, Linux and Windows
Stars: ✭ 24 (-40%)
Mutual labels:  magento
Magento Turpentine
A Varnish extension for Magento.
Stars: ✭ 531 (+1227.5%)
Mutual labels:  magento
Module Rocketjavascript
Stars: ✭ 37 (-7.5%)
Mutual labels:  magento
Url Rewrites
Magento 1.x module to target the URL Rewrite issue
Stars: ✭ 17 (-57.5%)
Mutual labels:  magento
Subscribepro Magento2 Ext
Subscribe Pro Magento 2 Integration Extension
Stars: ✭ 20 (-50%)
Mutual labels:  magento
Elasticsuite
Smile ElasticSuite - Magento 2 merchandising and search engine built on ElasticSearch
Stars: ✭ 647 (+1517.5%)
Mutual labels:  magento
Pwa Studio
🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
Stars: ✭ 779 (+1847.5%)
Mutual labels:  magento
Fastly Magento
Magento Extension for working with the Fastly Content Delivery Network
Stars: ✭ 26 (-35%)
Mutual labels:  magento
Torrent Cli
🔨 磁力获取器命令行工具
Stars: ✭ 599 (+1397.5%)
Mutual labels:  magento
Magento2 Easy Template Path Hints
Magento 2 Easy Template Path Hints
Stars: ✭ 36 (-10%)
Mutual labels:  magento
Learning Resources
"Technology Gold mine" to collect and share materials/resources
Stars: ✭ 573 (+1332.5%)
Mutual labels:  magento
Magento2 Module Pagebuildersourcecode
The Page Builder Source Code module adds a Source Code button to the toolbar of the Page Builder WYSIWYG editor.
Stars: ✭ 24 (-40%)
Mutual labels:  magento
M2 Opcache Monitor
Monitor PHP OpCache from the Admin
Stars: ✭ 38 (-5%)
Mutual labels:  magento
Magento2 Varnish Redis Ssl Docker Compose
Deploy Magento2 with Varnish Cache and Redis with SSL termination using Docker-compose tool
Stars: ✭ 37 (-7.5%)
Mutual labels:  magento
Generator Mage2
Yeoman generator for Magento 2 extensions (modules and themes)
Stars: ✭ 12 (-70%)
Mutual labels:  magento

dbanon

Build Status codecov

A run-anywhere, dependency-less database anonymizer.

Installation

Download the latest release from GitHub.

Usage

dbanon reads from stdin and writes to stdout.

mysqldump mydb | dbanon -config=myconfig.yml | gzip > mydb.sql.gz

The -config flag can use bundled configurations or point to the path of a custom configuration file.

Configuration

Magento 2

dbanon bundles a default Magento 2 configuration file. However you almost certainly won't use it directly.

At minimum, you'll first need to run the map-eav subcommand. This translates EAV attribute codes to their respective attribute ids.

You must feed it a mysqldump of eav_entity_type and eav_attribute (in that order).

mysqldump mydb eav_entity_type eav_attribute | dbanon -config=magento2 map-eav > ~/magento2-mapped.yml

map-eav will replace the attribute codes in the config file with attribute ids and print an updated config to stdout.

Next you'd run dbanon with the config generated by map-eav.

mysqldump mydb | dbanon -config=~/magento2-mapped.yml | gzip > mydb.sql.gz

Most Magento 2 databases, however, will have additional data that needs to be anonymized beyond the default bundled file.

For this you'll first want to create a new configuration file based off the bundled configuration. Instructions on customizing the configuration file are included in the "Custom Configuration" section.

Custom Configuration

Specify the path to your config file via the -config flag

mysqldump mydb | dbanon -config=myconfig.yml | gzip > mydb.sql.gz

See the etc directory for examples.

Columns are specified as key / value pairs. The value string winds up getting passed to this function, which gets random values from dmgk/faker.

It is also possible to pass direct Faker function calls for supported "raw providers"

Logging

dbanon records messages about anything notable (e.g. invalid configuration) to the file dbanon.log in the directory from which you run it.

-log-file

The -log-file flag can be used to have dbanon log to a different location.

mysqldump mydb | dbanon -config=myconfig.yml -log-file=var/dbanon.log

-log-level

The -log-level flag can be used to control the verbosity of logs. Supported values can be found here.

mysqldump mydb | dbanon -config=myconfig.yml -log-level=debug | gzip > mydb.sql.gz

The default log level is info.

-silent

Logging can be disabled entirely by passing the -silent flag to dbanon

mysqldump mydb | dbanon -config=myconfig.yml -silent | gzip > mydb.sql.gz

Profiling

dbanon will generate a CPU profile to the file dbanon.prof when passed the -profile flag.

mysqldump mydb | dbanon -profile -config=myconfig.yml >/dev/null

Limitations

  • Currently only supports MySQL

Updating

dbanon will self-update when passed the -update flag

dbanon -update
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].