简体   繁体   中英

How to make odoo read admin_passwd from file?

I would like to to make Odoo read the admin_passwd form a file existing on the file system.

My use case is this:
I am running an odoo:10.0 container instance on a Docker swarm-mode cluster and would like to share the necessary credentials using docker secrets .
For instance, admin_passwd would be found at /run/secrets/admin_passwd ... etc.

Is this type of configuration supported in Odoo?
If not, please put some spot lights on what may help me extend Odoo and develop such a module.

Thanks in advance!

In odoo passwords are stored in pbkdf2 crypto format for security reasons. They are stored in res_users table, if you need to query directly.

You can not reverse it easily. ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM