注入秘密(API密钥等)中的节点JS项目

发布于 2025-01-29 05:42:21 字数 355 浏览 5 评论 0 原文

我正在将Nodejs项目从GCP迁移到Digitalocean。

我正在Digitalocean的Kubernetes群集上运行此Nodejs代码。我正在使用GitHub操作来自动构建Docker映像并将其部署到我的Kubernetes群集。一切都按预期工作,但我有一个问题。

在GCP上,我使用Secret Manager将秘密(数据库凭据,API密钥,...)注入我的Nodejs项目。我正在寻找关于Digitalocean的类似解决方案。我找到了雪橇ub,看起来很有趣,但我无法注册。

我从1Password Connect找到了这一点,但是看来我必须设置服务器?

有人知道一些有趣的工具或技巧以将秘密保护到我的Nodejs代码中吗?

I'm migrating a nodeJS project from GCP to DigitalOcean.

I'm running this nodeJS code on a kubernetes cluster in DigitalOcean. I'm using GitHub Actions to automatically build a docker image and deploy it to my kubernetes cluster. Everything works as expected, but I have a question.

On GCP, I used the secret manager to inject secrets (database credentials, API keys, ...) into my NodeJS project. I am looking for a similar solution on DigitalOcean. I have found SecretHub, it looks interesting but I'm unable to sign up.

I have found this from 1password connect, but it looks like I have to setup a server?

Does anyone know some interesting tool or trick to secure inject secrets into my nodejs code?

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

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

发布评论

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

评论(1

野心澎湃 2025-02-05 05:42:21

是的,您可以查看主要与Kubernetes一起使用的Hashi Corp Vault,作为将配置和变量注入Kubernetes部署的秘密解决方案。

与Kubernetes建立并集成在一起很容易。

hashi corp vault: https://www.hashicorp.com/products/products/vaults/vault

Enterprise版本但是,您可以开源版本可以通过UI和登录面板来解决您的所有需求,可以将其用于生产目的,安全,安全且易于集成。

您可以在Kubernetes服务器上运行一个简单的POD(部署)。

在这里,您可以使用Minikube设置进行演示:

Yes, you can check out the Hashi corp vault which is mainly used with Kubernetes as a secret solution to inject the configuration and variables to the deployment of Kubernetes.

It's easy to set up and integrate with Kubernetes.

Hashi corp vault : https://www.hashicorp.com/products/vault

Enterprise version is paid one however you can open-source version which will solve your all needs with UI and login panel, you can use it for Production purpose it's safe, secure, and easy to integrate.

You can run one simple POD(deployment) on the Kubernetes server.

here you can follow the demo with minikube setup: https://learn.hashicorp.com/tutorials/vault/kubernetes-minikube?in=vault/kubernetes

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