Hi, Mai
Generally speaking, I guess your issues can be summarized with two questions.
1. Where is the "HTTP Password" menu in 2.14?
2. Where is the HTTP password stored?
For issue 1,
Whether the "HTTP Password" menu is visible or not is decided by the Gerrit system configuration item "auth.gitBasicAuthPolicy".
Setting the value for this item as "HTTP_LDAP" would bring back the "HTTP Password" menu.
And you may need to read detail introduction of another configuration item "auth.type" as well in order to understand the connection between these two items.
For issue 2,
stored in a branch of the All-Users repo. And this branch is refs/meta/external-ids.
Therefore, you can clone this repository and check out (git fetch origin refs/meta/external-ids:meta-external-ids && git checkout meta-external-ids) this branch, then
you will understand how HTTP password is stored.
Please note: the HTTP password isn't shown as plain text under the "HTTP Password" menu.
Which means, once you click the "Generate Password" button, you have to copy the password and store it because it's hidden after refreshing the page.
As to your hook, you need to use HTTPBasicAuth instead of HTTPDigestAuth if you use Python module requests.
Hope this can help.