[英]Where do i store the passwords in AWS sandbox for a user which i will use for connecting to snowflake via python script
I have a requirement where in i want to run a python script from a Linux server (AWS sandbox), the purpose of the script is to connect to snowflake database and do some stuff, for connecting to snowflake via a python script i do not want to hard code the password in the script and want the script to get the password from a restricted file.我有一个要求,我想从 Linux 服务器(AWS 沙盒)运行 python 脚本,该脚本的目的是连接到雪花数据库并做一些事情,通过 Z23EEEB4347BDD26BFCDDA 脚本连接到雪花 ido not want3BDD26BFCDDD6B7EE在脚本中硬编码密码并希望脚本从受限文件中获取密码。
i know how i did it in windows - i used the credentials manager to store the password and the scripts gets the password from there, i am looking for a similar kind of solution for Linux.我知道我是如何在 windows 中做到这一点的——我使用凭证管理器来存储密码,脚本从那里获取密码,我正在为 Linux 寻找类似的解决方案。
connecting to snowflake via a python script i do not want to hard code the password in the script
通过 python 脚本连接到雪花我不想在脚本中硬编码密码
Instead of storing passwords, you can use key pair authentication:您可以使用密钥对身份验证,而不是存储密码:
https://docs.snowflake.com/en/user-guide/python-connector-example.html#using-key-pair-authentication https://docs.snowflake.com/en/user-guide/python-connector-example.html#using-key-pair-authentication
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.