Database Anonymization
anonymization · odoo/odoo
-
Security10/251 grave, 5 minor
-
Activity0/25Last human commit 93 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Security warnings
access_ir_model_fields_anonymization_migration_fix— ACL grants write/create/unlink on 'model_ir_model_fields_anonymization_migration_fix' to every user (portal/public included): no group is set. Verify record rules and test access as an unrelated public/portal user. acl-global-write · source
Found by automated static analysis: these patterns are usually risky, but only a manual review of the module can confirm a real issue. Methodology
Migration considerations
IrModelFieldsAnonymization— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceIrModelFieldsAnonymization— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) migration-api-multi-one · sourceIrModelFieldsAnonymizeWizard— Migrating to 16.0: the web client no longer calls `fields_view_get`: override `_get_view` instead. migration-fields-view-get · sourceIrModelFieldsAnonymizeWizard— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (4 methods) migration-api-multi-one · sourceview_ir_model_fields_anonymization_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · sourceview_ir_model_fields_anonymize_wizard_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module allows you to anonymize a database.
This module allows you to keep your data confidential for a given database. This process is useful, if you want to use the migration process and protect your own or your customer’s confidential data. The principle is that you run an anonymization tool which will hide your confidential data(they are replaced by ‘XXX’ characters). Then you can send the anonymized database to the migration team. Once you get back your migrated database, you restore it and reverse the anonymization process to recover your previous data.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_ir_model_fields_anonymization_form |
ir.model.fields.anonymization.form | ir.model.fields.anonymization | form | New |
view_ir_model_fields_anonymization_history_form |
ir.model.fields.anonymization.history.form | ir.model.fields.anonymization.history | form | New |
view_ir_model_fields_anonymization_history_tree |
ir.model.fields.anonymization.history.tree | ir.model.fields.anonymization.history | tree | New |
view_ir_model_fields_anonymization_tree |
ir.model.fields.anonymization.tree | ir.model.fields.anonymization | tree | New |
view_ir_model_fields_anonymize_wizard_form |
ir.model.fields.anonymize.wizard.form | ir.model.fields.anonymize.wizard | form | New |
view_ir_model_fields_nonymization_kanban |
ir.model.fields.anonymization.kanban | ir.model.fields.anonymization | kanban | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
-
field_idMany2one → ir.model.fieldsondelete='set null'string='Field' args: 'ir.model.fields' -
field_nameCharrequired=True -
model_idMany2one → ir.modelondelete='set null'string='Object' args: 'ir.model' -
model_nameCharrequired=True args: 'Object Name' -
stateSelectiondefault='clear'readonly=Truerequired=Trueselection=FIELD_STATESstring='Status'
-
create(self, vals)@api.model -
unlink(self)@api.multi -
write(self, vals)@api.multi
-
dateDatetimereadonly=Truerequired=True -
directionSelectionreadonly=Truerequired=Trueselection=ANONYMIZATION_DIRECTION -
field_idsMany2many → ir.model.fields.anonymizationreadonly=Truestring='Fields' args: 'ir.model.fields.anonymization', 'anonymized_field_to_history_rel', 'field_id', 'history_id' -
filepathCharreadonly=True args: 'File path' -
msgTextreadonly=True args: 'Message' -
stateSelectionreadonly=Truerequired=Trueselection=ANONYMIZATION_HISTORY_STATEstring='Status'
No public methods.
-
field_nameCharargs: 'Field' -
model_nameCharargs: 'Model' -
queryText -
query_typeSelectionselection=[('sql', 'sql'), ('python', 'python')]string='Query' -
sequenceInteger -
target_versionCharargs: 'Target Version'
No public methods.
-
file_exportBinaryargs: 'Export' -
file_importBinaryhelp="This is the file created by the anonymization process. It should have the extension '.json' or '.pickle'." args: 'Import' -
msgTextargs: 'Message' -
nameCharargs: 'File Name' -
stateSelectioncompute='_compute_state'selection=WIZARD_ANONYMIZATION_STATESstring='Status' -
summaryTextcompute='_compute_summary'
-
anonymize_database(self)@api.multiSets the 'anonymized' state to defined fields -
default_get(self, fields_list)@api.model -
fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False)@api.model -
reverse_anonymize_database(self)@api.multiSet the 'clear' state to defined fields
Loading…
Loading…
Loading…
Loading…
Loading…