Vault - Share
vault_share · OCA/server-auth
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 13.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
VaultShare— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · 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 implements possibilities to share specific secrets with external users. This bases on the vault implementation and the generated RSA key pair.
Share
This allows an user to share a secret with external users. A share can be generated from a vault entry or directly created by an user. The secret is symmetrically encrypted by a key derived from a pin. To grant access the user has to transmit the link and pin with the external. If either the access counter reaches 0 or the share expires it will be deleted automatically. Due to the usage of a numeric pin and the browser side decryption a share is vulnerable to brute-force attacks and shouldn't be used as a permanent storage for secrets. For long time uses the user should create an account and a vault should be used.
Dependencies
- Odoo dependencies
- 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 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form |
res.config.settings.view.form | res.config.settings | form | Inherits vault.res_config_settings_view_form |
share |
share | ir.ui.view | qweb | New |
view_vault_share_form |
vault.share | form | New | |
view_vault_share_tree |
vault.share | list | New |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/vault/share/<string:token> |
Controller.vault_share |
public | http | ALL | sudo website |
Models touched 4
-
vault_share_delayIntegerdefault=0
No public methods.
-
vault_share_delayIntegerhelp='Delays the deletion of a share. After the expiration date it continues to stay inaccessible'readonly=Falserelated='company_id.vault_share_delay'string='Delayed Deletion'
No public methods.
-
accessesIntegerdefault=5help='Specifies how often a share can be accessed before deletion.' args: 'Access counter' -
expirationDatetimedefault=<expr>help='Specifies how long a share can be accessed until deletion.' -
filenameChar -
iterationsInteger -
ivCharrequired=True -
log_idsOne2many → vault.share.logreadonly=True args: 'vault.share.log', 'share_id', 'Log' -
nameCharrequired=True -
pinCharhelp='The pin needed to decrypt the share.'required=True -
saltCharrequired=True -
secretChar -
secret_fileChar -
share_linkCharcompute='_compute_url'help='Using this link and pin people can access the secret.'store=False args: 'Share URL' -
tokenCharcopy=Falsedefault=<expr>readonly=Truerequired=True -
user_idMany2one → res.usersdefault=<expr> args: 'res.users'
-
clean(self)@api.model -
create(self, vals_list)@api.model_create_multi -
get(self, token, ip=None)@api.model
-
nameCharreadonly=True -
share_idMany2one → vault.shareondelete='cascade'readonly=Truerequired=True args: 'vault.share'
No public methods.
Loading…
Loading…
Loading…
Loading…