Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] admin sys config: onprem password reset #8990

Closed
wants to merge 1 commit into from

Conversation

@tiku-odoo tiku-odoo self-assigned this Apr 25, 2024
@C3POdoo C3POdoo requested a review from a team April 25, 2024 17:13
@robodoo
Copy link
Collaborator

robodoo commented Apr 25, 2024

@tiku-odoo tiku-odoo requested a review from mart-e April 25, 2024 17:18
@tiku-odoo
Copy link
Contributor Author

@mart-e
@daho-odoo

I'm sorry this PR took so long to get posted; when you have a moment, can you review it for accuracy?

Thanks,
Tim

@tiku-odoo
Copy link
Contributor Author

@brse-odoo

Can you review this change when you have a moment?

Lines: 603-702

Thanks!

Tim 👍

Copy link
Contributor

@mart-e mart-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pr but it’s a bit odd how it’s constructed. In both "from GUI" and "from command line", you need to edit the file first. I would change it to :

  1. how to locate/edit configuration file
  2. how to generate a new password from gui
  3. how to generate a new password from command line

content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
@tiku-odoo tiku-odoo force-pushed the 15.0-database-mgt-onprem-password-reset-tiku branch from f9390a6 to 3e11c99 Compare April 26, 2024 13:31
@tiku-odoo
Copy link
Contributor Author

tiku-odoo commented Apr 26, 2024

Thanks for the pr but it’s a bit odd how it’s constructed. In both "from GUI" and "from command line", you need to edit the file first. I would change it to :

1. how to locate/edit configuration file

2. how to generate a new password from gui

3. how to generate a new password from command line

@mart-e

The configuration file is edited differently (via GUI and CLI) in each reset situation, so I'm leaving each process complete in each section as it stands.

Can you confirm the path: /etc/odoo.conf is correct?

Thanks,
Tim

@mart-e
Copy link
Contributor

mart-e commented Apr 26, 2024

The configuration file is edited differently (via GUI and CLI) in each reset situation
Can you confirm the path: /etc/odoo.conf is correct?

I think there is some misunderstanding. Let me clarify how it works but first, the way you advise is not ideal as unsecure. Your instructions are:

  1. remove master password from config file
  2. restart the server
  3. set a new password from the web interface

The issue with that is that between 2 and 3, the database is unprotected, this can be dangerous depending on the scenario. Instead a better way would be :

  1. modify the master password in the config file
  2. restart the server
  3. set a new password from the web interface

So to proceed, I would go like:

1. locate the configuration file

  • using Windows ? -> c:\Program Files\Odoo {VERSION}\server\odoo.conf
  • using Linux ? -> depends on how is installed
    • packaged installation ? -> /etc/odoo.conf
    • source installed ? -> ~/.odoorc

2. Change the old password

  • using a graphical editor ? -> open in your favourite graphical editor
  • using a cli editor ? -> open in your favourite command line editor
  • both cases, modify the line to the master password you wish to use : replace admin_passwd = $pbkdf2-sha… to admin_passwd = newpassword1234 (well a better password than that)

3. restart the odoo server

4. Use the web interface

  • go to /web/database/manager and click "set master password" button
  • write your chosen password in both "Master password" and "New Master password"

The step 4 is important because the server will hash your password and can not be read.

As you can see, the way you edit the file is not really important. It’s just the choice of the user if they want to use gedit, emacs, nano or whatever editor they are familliar with, no need to make a different section for it.

Also, I would add a reference to the database manager security doc page where we strongly recommend to disable the database manager in production.

I hope it clarifies.

@tiku-odoo tiku-odoo force-pushed the 15.0-database-mgt-onprem-password-reset-tiku branch from 3e11c99 to 366aa34 Compare April 29, 2024 16:00
@tiku-odoo
Copy link
Contributor Author

@mart-e / @xpl-odoo

I've made the changes you requested. Can you review the new process, as I have documented it? I used tabs to differentiate between GUI/CLI and Windows/Linux.

Thanks for your time reviewing this.

@tiku-odoo
Copy link
Contributor Author

@brse-odoo

This doc is ready for your review when you have a moment. Lines 603-740

Thanks for your time on this.

Tim 👍

Copy link
Contributor

@brse-odoo brse-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tiku-odoo I've finished my review of the requested lines in this doc - great job! I'm approving with suggestions for you to accept/reject as you see fit. Let me know if you have any questions, thanks!

content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
@tiku-odoo tiku-odoo force-pushed the 15.0-database-mgt-onprem-password-reset-tiku branch from 366aa34 to 70cf52c Compare April 30, 2024 15:46
@tiku-odoo tiku-odoo requested a review from a team April 30, 2024 15:47
@tiku-odoo
Copy link
Contributor Author

@ksc-odoo

This script is ready for your review when you have a moment.

Thanks 👍

Tim

Copy link
Contributor

@ksc-odoo ksc-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @tiku-odoo -- just finished my Final Review. Nice job! Approving now. Once you address all my comments, and implement the necessary changes, feel free to tag this for Tech Review. Thanks! 👍

content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
@tiku-odoo tiku-odoo requested a review from a team April 30, 2024 20:58
@tiku-odoo
Copy link
Contributor Author

@samueljlieber

This doc is ready for your tech review when you have a moment. Thanks

Tim

Copy link
Contributor

@samueljlieber samueljlieber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tiku-odoo, just a quick suggestion and before I give a full technical review can you please squash the commits in this PR? Thank you!

content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
@tiku-odoo tiku-odoo force-pushed the 15.0-database-mgt-onprem-password-reset-tiku branch from 50d9979 to f47f292 Compare May 1, 2024 13:04
@tiku-odoo tiku-odoo requested review from samueljlieber and a team and removed request for samueljlieber May 1, 2024 13:04
@tiku-odoo
Copy link
Contributor Author

@samueljlieber

Sorry about that. I've squashed the commits, and now it's ready for your review.

Thanks,
Tim 👍

Copy link
Contributor

@samueljlieber samueljlieber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tiku-odoo, great work on this PR! This is a very thorough and important addition to the System configuration documentation. Everything looks good to me, with one small suggestion for specificity. Please see below. Approving and delegating merge to you 👍
...
@robodoo delegate=tiku-odoo

content/administration/on_premise/deploy.rst Outdated Show resolved Hide resolved
@samueljlieber samueljlieber added the 3 label May 1, 2024
@tiku-odoo tiku-odoo force-pushed the 15.0-database-mgt-onprem-password-reset-tiku branch from f47f292 to b54021e Compare May 1, 2024 14:05
@tiku-odoo tiku-odoo force-pushed the 15.0-database-mgt-onprem-password-reset-tiku branch from b54021e to fdc2cd6 Compare May 1, 2024 14:15
@tiku-odoo
Copy link
Contributor Author

@robodoo r+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants