简体   繁体   English

我在哪里将密码存储在 AWS 沙箱中,用于通过 python 脚本连接到雪花的用户

[英]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.

相关问题 如何通过 Python 使用 Google Apps 脚本? - How do I use Google Apps Script via Python? 我在哪里存储用户个人信息 - Where do I store user personal information 如何在我使用 python 保存所有密码的常用 chrome 浏览器中启动 selenium 脚本? - How to start a selenium script in the usual chrome browser where i have all my passwords saved using python? 我使用这个python脚本制作雪花但它不会制作雪花 - I used this python script to make a snowflake but it doesn't make a snowflake 如何指定在通过 bash 脚本运行的 python 脚本中使用的 CPU 内核数? - How do I specify the number of CPU cores to use within a python script running via bash script? 如何通过应用程序密码通过 gmail 发送电子邮件? - How do I send emails through gmail via app passwords? 如何在通过 SSO 凭据连接时使用 AWS Python SDK - How to use the AWS Python SDK while connecting via SSO credentials 我使用哪种Python Trove分类器? - Which Python Trove classifiers do I use? 如何存储从用户输入创建的变量并在 Python 的不同文件中使用它? - How do I store a variable that has been created from a user input and use it in a different file in Python? AWS Python Virtualenv我在哪里放置boto.cfg - AWS Python Virtualenv where do I put boto.cfg
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM