Forward port https://github.com/OCA/server-auth/pull/30
[11.0] keychain: improve ACL and allow storing ssh keys as password #30
This commit is contained in:
parent
3a5fa443e1
commit
25e9119e96
|
|
@ -3,7 +3,7 @@
|
|||
{
|
||||
"name": "Keychain",
|
||||
"summary": "Store accounts and credentials",
|
||||
"version": "12.0.0.0.0",
|
||||
"version": "12.0.0.0.1",
|
||||
"category": "Uncategorized",
|
||||
"website": "https://akretion.com/",
|
||||
"author": "Akretion, Odoo Community Association (OCA)",
|
||||
|
|
|
|||
|
|
@ -48,12 +48,12 @@ class KeychainAccount(models.Model):
|
|||
help="'prod', 'dev', etc. or empty (for all)"
|
||||
)
|
||||
login = fields.Char(help="Login")
|
||||
clear_password = fields.Char(
|
||||
clear_password = fields.Text(
|
||||
help="Password. Leave empty if no changes",
|
||||
inverse='_inverse_set_password',
|
||||
compute='_compute_password',
|
||||
store=False)
|
||||
password = fields.Char(
|
||||
password = fields.Text(
|
||||
help="Password is derived from clear_password",
|
||||
readonly=True)
|
||||
data = fields.Text(help="Additionnal data as json")
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class KeychainBackend(models.AbstractModel):
|
|||
_backend_name = None
|
||||
|
||||
name = fields.Char(required=True)
|
||||
password = fields.Char(
|
||||
password = fields.Text(
|
||||
compute="_compute_password",
|
||||
inverse="_inverse_password",
|
||||
required=True)
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_keychain_account,access_keychain_account,model_keychain_account,,0,0,0,0
|
||||
access_keychain_account,access_keychain_account,model_keychain_account,,1,0,0,0
|
||||
access_keychain_account_admin,access_keychain_account_admin,model_keychain_account,base.group_system
|
||||
|
Loading…
Reference in New Issue