Pentaho和AWS Secrets经理

发布于 2025-02-11 09:47:51 字数 140 浏览 0 评论 0原文

我希望将密码保留到AWS Secrets Manager中的数据库中,并能够通过安装在AWS EC2实例上的Pentaho(PDI)的作业来使用它们。

建立此类解决方案的最佳方法是什么?我真的不想将密码保留在EC2实例上。

问候, 拉法尔

Iwould like to keep passwords to databases in AWS Secrets Manager and be able to use them by jobs running from Pentaho (PDI) which is installed on AWS EC2 instance.

What will be the best way to build such solution? I don't really want to keep the passwords on the EC2 instance.

Regards,
Rafal

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

可爱咩 2025-02-18 09:47:51

当前,具有AWS Secrets Manager的身份验证需要提交AWS签名版本4,此处对其进行计算的方法:

。或者,您可以使用现成的库,例如Python boto3进行操作。

要连接到AWS Secrets Manager,您可以在Python中使用现成的boto3库,并将其在pdi

”

Currently, authentication with AWS Secrets Manager requires the submission of AWS Signature Version 4, the method of calculating it is described here: Calculate the signature for AWS Signature Version 4

Unfortunately, the REST Client component does not support AWS authentication and signature calculation, so that separate components would be needed to calculate it or you can do it using ready-made libraries, e.g. Python boto3.

To connect to AWS Secrets Manager, you can use a ready-made Boto3 library in Python and use it in the Python Executor component in PDI

PDI - Python Executor example

筱武穆 2025-02-18 09:47:51

回答自己的问题,可以使用REST API:
•AWS>文档> AWS Secrets Manager> API参考
apireference/api_getSecretValue.html
getEcretValue

并在PDI中使用REST客户端步骤:
https://help.help.hitachivantara.com/docuttarara.com/documentation/documentation/pentocumentation/pentecormentation/ppentaho/9.3/productucts//productucts// REST_CLIENT

Answering own question, it is possible to use REST API:
• AWS > Documentation > AWS Secrets Manager > API Reference
https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html
GetSecretValue

and using REST Client step in PDI:
https://help.hitachivantara.com/Documentation/Pentaho/9.3/Products/REST_Client

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文