roy*_*roy 7 postgresql pgadmin pgadmin-4
我有 pgAdmin ( dpage/pgadmin4:4.29
) 容器在 Kubernetes 中运行。作为主用户,我添加了数据库连接并共享连接。作为主用户,我可以在没有密码的情况下断开/重新连接到数据库。
但对于我创建的其他用户,即使他们在连接时选择了“保存密码”选项,这些用户的密码也不会被保存。连接数据库时,pgAdmin 不断要求输入密码。
我的设置中缺少什么。
小智 5
NobleUplift's issue of the "Save Password" checkbox being disabled can be caused by certain config flags in the config.py file. Remembering passwords for SSH tunneling is disabled by default, for example.
You can re-enable the checkbox by writing
ALLOW_SAVE_TUNNEL_PASSWORD = True # SSH tunnel password saving, default False
ALLOW_SAVE_PASSWORD = True # database password saving, default True
Run Code Online (Sandbox Code Playgroud)
to a new config_local.py
file in the same directory where you find your main config.py
file. Pg discourages writing the the main config.py
file directly. See the docs for more details about the preferred config file and where to find them. (I found mine under "pgAdmin 4\v6\web\config.py
", not where the docs said.)
This seems to be where the 'disable password saving' idea came from.
Apologies roy for not answering your question directly, but I didn't have the ability to respond directly to Noble. However, the config docs also mention that the ENHANCED_COOKIE_PROTECTION
flag can interfere with Kubernetes (and other auth settings), which might be worth a look.
归档时间: |
|
查看次数: |
1784 次 |
最近记录: |