Comments (8)
Hi, just wanted to say that this hasn't been forgotten - hopefully I'll be able to create a PR in the next couple of weeks.
from django-scrubber.
Sounds good. From my point of view, it would definitely make sense to integrate it. Any thoughts @costela?
Feel free to provide a pull request so that we can discuss the implementation.
from django-scrubber.
This definitely sounds promising! Especially the session table stuff is something that we probably should already be doing! 🙈
If it's not asking too much, would you mind trying to break this down into 2 or 3 PRs? This way we can merge the low-hanging-fruits fast (like the session table) and discuss the rest?
Thanks for the feedback/ideas!
from django-scrubber.
Hi guys, well, it's one class and the pattern can't be really be split up. I'll create a PR when I come to it, hopefully some time this week.
from django-scrubber.
Hi guys, I just went for time reasons with the minimal approach and added two flags for the MC. Deleting sessions is active by default (security by design) and optionally you can remove all fakedata as well to reduce the dump-size (usually after scrubbing, you want to dump your database and put it somewhere).
from django-scrubber.
I built the wrapper like this:
- create a custom wrapper class which inherits from the base wrapper
- create a new management command which calls the wrapper
This seems very complicated for newbies... any suggestions on how to improve that? Maybe we could point to the custom class with a settings variable? So we still have only one management command for everything? If no custom wrapper class is defined, it goes the default way?
What do you think?
from django-scrubber.
hey @GitRon
Sorry, the description sounds a bit too abstract for me. Can we see some code to discuss?
Thanks!
from django-scrubber.
Hi @costela
here's the docs (currently still in our toolbox package): https://ai-django-core.readthedocs.io/en/latest/features/database_anonymisation.html#how-to-use-the-wrapper
Code is here: https://github.com/ambient-innovation/ai-django-core/blob/master/ai_django_core/services/custom_scrubber.py
We use this in > 10 projects and it works really great 😃
Best
Ronny
from django-scrubber.
Related Issues (20)
- ProgrammingError when using Faker HOT 3
- How to activate logging HOT 10
- Problem with overritten `get_queryset()` method HOT 8
- Crash after scrubbing a second time
- Log what scrubber is doing HOT 2
- How to null a given field HOT 4
- Compat with Faker 3.0.0 HOT 7
- Using faker geo providers does not work HOT 4
- Drop py2 support
- Non-existing fields in scrubber definitions make the scrubbing fail HOT 2
- Broken for models with non-numeric primary key HOT 3
- faker major release 6.0.0 HOT 1
- Add support for faker 8.x
- Add support for faker 11.x
- Support for multiple / non-default database HOT 2
- Add support for faker 12.x
- Question: How to scrub django base user? HOT 5
- Proposal: Strict mode HOT 10
- Simplify scrubber validation when using third-party libraries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-scrubber.