From 3817831577684dd9a76ee4b3c423c9666ce7e9dd Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Sat, 22 Apr 2023 14:34:05 +0300 Subject: [PATCH 01/16] Update docs for upcoming Node SDK update --- docs/sdks/languages/node.mdx | 159 +++++++++++++++++++++++++---------- 1 file changed, 113 insertions(+), 46 deletions(-) diff --git a/docs/sdks/languages/node.mdx b/docs/sdks/languages/node.mdx index 58002392f..fe5e969f8 100644 --- a/docs/sdks/languages/node.mdx +++ b/docs/sdks/languages/node.mdx @@ -14,13 +14,13 @@ npm install infisical-node --save ## Initialization -Set up the Infisical client asynchronously as early as possible in your application by importing and initializing the global instance with `infisical.connect(options)`. +Call `connect()` with your Infisical token as early as possible in the main entry module of your application. This initializes the global instance of the SDK, which can be accessed anywhere in your application. -This methods fetches back all the secrets in the project and environment accessible by the token passed in `options`. +For multiple Infisical projects or creating multiple SDK instances, use `createConnection()` instead. This returns a local SDK instance, independent of the global instance. ### infisical.connect(options) -Updates the global instance of the Infisical client with a connection to an Infisical project and fetches back secrets if supplied with an [Infisical Token](/getting-started/dashboard/token). +Updates the global instance of the Infisical client with a connection to an Infisical project with the [Infisical Token](/getting-started/dashboard/token). @@ -36,18 +36,18 @@ Updates the global instance of the Infisical client with a connection to an Infi Your self-hosted absolute site URL including the protocol (e.g. `https://app.infisical.com`) + + Time-to-live (in seconds) for cached secrets. If set to 0, data is cached indefinitely. + Whether or not debug mode is on - - Whether or not to attach fetched secrets to `process.env` - ### infisical.createConnection(options) -Returns a local instance of the Infisical client with a connection to an Infisical project and fetches back secrets if supplied with an [Infisical Token](/getting-started/dashboard/token). +Returns a local instance of the Infisical client with a connection to an Infisical project with an [Infisical Token](/getting-started/dashboard/token). This method is useful if you wish to connect to two or more Infisical projects within your app. @@ -65,6 +65,9 @@ This method is useful if you wish to connect to two or more Infisical projects w Your self-hosted absolute site URL including the protocol (e.g. `https://app.infisical.com`) + + Time-to-live (in seconds) for cached secrets. If set to 0, data is cached indefinitely. + Whether or not debug mode is on @@ -76,15 +79,11 @@ This method is useful if you wish to connect to two or more Infisical projects w ```js import infisical from "infisical-node"; - const main = async () => { - await infisical.connect({ - token: "your_infisical_token", - }); + infisical.connect({ + token: "your_infisical_token", + }); - // your app logic - } - - main(); + // your app logic ``` @@ -93,14 +92,10 @@ This method is useful if you wish to connect to two or more Infisical projects w const infisical = require("infisical-node"); infisical.connect({ - token: "your_infisical_token" - }) - .then(() => { - // your application logic - }) - .catch(err => { - console.error('Error: ', err); - }) + token: "your_infisical_token" + }); + + // your app logic ```` @@ -108,45 +103,117 @@ This method is useful if you wish to connect to two or more Infisical projects w ## Usage -To get the value of a secret, use `infisical.get(key)`. +### infisical.getSecret(secretName, options) -### infisical.get(key) +Retrieve a secret from Infisical. -Return the value of the secret with the specified `key`. Note that the Infisical client falls back to `process.env` if `token` is `undefined` during the -initialization step or if a value for the secret is not found in the fetched secrets. +By default, `getSecret()` returns a personal secret. If not found, it returns a shared secret, or tries to retrieve the value from `process.env`. - - The key of the secret + + The key of the secret to retrieve + + + + + "personal" (default) or "shared". + + ```js -const value = infisical.get("SOME_KEY"); +const secret = await infisical.getSecret("API_KEY"); +const value = secret.secretValue; // get its value +``` + +### infisical.createSecret(secretName, secretValue, options) + +Create a new secret in Infisical. + + + The key of the secret to create + + + The value of the secret to create + + + + + "shared" (default) or "personal". A personal secret can only be created if a shared secret with the same name exists. + + + + +```js +const newApiKey = await infisical.createSecret("API_KEY", "FOO"); +``` + +### infisical.updateSecret(secretName, secretValue, options) + +Update an existing secret in Infisical. + + + The key of the secret to update + + + The new value of the secret + + + + + "shared" (default) or "personal". + + + + +```js +const updatedApiKey = await infisical.updateSecret("API_KEY", "BAR"); +``` + +### infisical.deleteSecret(secretName, options) + +Delete a secret in Infisical. + + + The key of the secret to delete + + + + + "shared" (default) or "personal". Note that deleting a shared secret also deletes all associated personal secrets. + + + + +```js +const deletedSecret = await infisical.deleteSecret("API_KEY"); ``` ## Example with Express ```js -const express = require("express"); -const port = 3000; -const infisical = require("infisical-node"); +import infisical from "infisical-node"; +import express from "express"; +const app = express(); +const PORT = 3000; -const main = async () => { - await infisical.connect({ - token: "st.xxx.xxx", - }); +infisical.connect({ + token: "YOUR_INFISICAL_TOKEN" +}); - // your application logic +app.get("/", async (req, res) => { + // access value + const name = await infisical.getSecret("NAME"); + res.send(`Hello! My name is: ${name.secretValue}`); +}); - app.get("/", (req, res) => { - res.send(`Howdy, ${infisical.get("NAME")}!`); - }); - - app.listen(port, async () => { - console.log(`App listening on port ${port}`); - }); -}; +app.listen(PORT, async () => { + // initialize client + console.log(`App listening on port ${port}`); +}); ``` +This example demonstrates how to use the Infisical SDK with an Express application. The application retrieves a secret named "NAME" and responds to requests with a greeting that includes the secret value. + We do not recommend hardcoding your [Infisical Token](/getting-started/dashboard/token). Setting it as an environment From 51154925fd66332f8655fc6f04af9ec9eb3ec799 Mon Sep 17 00:00:00 2001 From: Satyam Gupta Date: Sun, 23 Apr 2023 03:18:16 +0530 Subject: [PATCH 02/16] Translated readme in Hindi Language --- README.md | 109 +++++++++++++++++++++++++++--------------------------- 1 file changed, 55 insertions(+), 54 deletions(-) diff --git a/README.md b/README.md index 7a958827c..b80d9105c 100644 --- a/README.md +++ b/README.md @@ -3,15 +3,15 @@ infisical

-

Open-source, end-to-end encrypted tool to manage secrets and configs across your team, devices, and infrastructure.

+

आपकी टीम, उपकरणों और बुनियादी ढांचे में रहस्यों और कॉन्फ़िगरेशन को प्रबंधित करने के लिए ओपन-सोर्स, एंड-टू-एंड एन्क्रिप्टेड टूल।

- Slack | + स्लैक | Infisical Cloud | Self-Hosting | - Docs | - Website + डॉक्स | + वेबसाइट

@@ -37,7 +37,7 @@ Dashboard -**Read this in other languages**: [English language](i18n/README.en.md) +**इसे अन्य भाषाओं में पढ़ें**: [English language](i18n/README.en.md) [Spanish language](i18n/README.es.md) [German language](i18n/README.de.md) [Korean language](i18n/README.ko.md) @@ -46,55 +46,56 @@ [Portuguese - Brazil](i18n/README.pt-br.md) [Japanese language](i18n/README.ja.md) [Italian language](i18n/README.it.md) +[Hindi language](i18n/README.it.md) -**[Infisical](https://infisical.com)** is an open source, end-to-end encrypted secret manager which you can use to centralize your API keys and configs. From Infisical, you can then distribute these secrets across your whole development lifecycle - from development to production . It's designed to be simple and take minutes to get going. +**[Infisical](https://infisical.com)** एक ओपन सोर्स, एंड-टू-एंड एन्क्रिप्टेड गुप्त प्रबंधक है जिसका उपयोग आप अपनी एपीआई कुंजी और कॉन्फ़िगरेशन को केंद्रीकृत करने के लिए कर सकते हैं। Infisical से, फिर आप इन रहस्यों को अपने संपूर्ण विकास जीवनचक्र में वितरित कर सकते हैं - विकास से लेकर उत्पादन तक। इसे सरल होने और चलने में कुछ मिनट लगने के लिए डिज़ाइन किया गया है. -- **[User-Friendly Dashboard](https://infisical.com/docs/getting-started/dashboard/project)** to manage your team's secrets and configs within projects -- **[Language-Agnostic CLI](https://infisical.com/docs/cli/overview)** that pulls and injects esecrets and configs into your local workflow -- **[Complete control over your data](https://infisical.com/docs/self-hosting/overview)** - host it yourself on any infrastructure -- **Navigate Multiple Environments** per project (e.g. development, staging, production, etc.) -- **Personal overrides** for secrets and configs -- **[Integrations](https://infisical.com/docs/integrations/overview)** with CI/CD and production infrastructure -- **[Infisical API](https://infisical.com/docs/api-reference/overview/introduction)** - manage secrets via HTTPS requests to the platform -- **[Secret Versioning](https://infisical.com/docs/getting-started/dashboard/versioning)** to view the change history for any secret -- **[Audit Logs](https://infisical.com/docs/getting-started/dashboard/audit-logs)** to record every action taken in a project -- **[Point-in-time Secrets Recovery](https://infisical.com/docs/getting-started/dashboard/pit-recovery)** for rolling back to any snapshot of your secrets -- **Role-based Access Controls** per environment -- **2FA** (more options coming soon) -- **Smart Security Alerts** -- 🔜 **1-Click Deploy** to AWS -- 🔜 **Automatic Secret Rotation** -- 🔜 **Slack & MS Teams** integrations +- **[उपयोगकर्ता के अनुकूल डैशबोर्ड](https://infisical.com/docs/getting-started/dashboard/project)** परियोजनाओं के भीतर अपनी टीम के रहस्यों और कॉन्फ़िगरेशन को प्रबंधित करने के लिए +- **[भाषा-अज्ञेयवादी सीएलआई](https://infisical.com/docs/cli/overview)** जो आपके स्थानीय कार्यप्रवाह में रहस्य और विन्यास को खींचता है और इंजेक्ट करता है +- **[अपने डेटा पर पूर्ण नियंत्रण](https://infisical.com/docs/self-hosting/overview)** - इसे किसी भी बुनियादी ढाँचे पर स्वयं होस्ट करें +- **एकाधिक वातावरण नेविगेट करें** प्रति परियोजना (जैसे विकास, मंचन, उत्पादन, आदि) +- **निजी ओवरराइड** रहस्य और कॉन्फ़िगरेशन के लिए +- **[एकीकरण](https://infisical.com/docs/integrations/overview)** सीआई/सीडी और उत्पादन बुनियादी ढांचे के साथ +- **[इंफिसिकल एपीआई](https://infisical.com/docs/api-reference/overview/introduction)** - प्लेटफ़ॉर्म पर HTTPS अनुरोधों के माध्यम से रहस्य प्रबंधित करें +- **[गुप्त संस्करण](https://infisical.com/docs/getting-started/dashboard/versioning)** किसी भी रहस्य के परिवर्तन इतिहास को देखने के लिए +- **[ऑडिट लॉग](https://infisical.com/docs/getting-started/dashboard/audit-logs)** एक परियोजना में की गई हर कार्रवाई को रिकॉर्ड करने के लिए +- **[Point-in-time Secrets Recovery](https://infisical.com/docs/getting-started/dashboard/pit-recovery)** पॉइंट-इन-टाइम सीक्रेट रिकवरी +- **भूमिका-आधारित अभिगम नियंत्रण** प्रति पर्यावरण +- **2FA** (अधिक विकल्प जल्द ही आ रहे हैं) +- **स्मार्ट सुरक्षा अलर्ट** +- 🔜 **1-क्लिक डिप्लॉय** टू एडब्ल्यूएस +- 🔜 **स्वचालित गुप्त रोटेशन** +- 🔜 **स्लैक और एमएस टीम्स** संयोजनाएँ -And more. +और अधिक। -## 🚀 Get started +## 🚀 शुरू हो जाओ? -To quickly get started, visit our [get started guide](https://infisical.com/docs/getting-started/introduction). +और ताकि आप त्वरित रूप से शुरू हो सकें, हमारे [शुरू हो जाओ गाइड] पर जाएं।(https://infisical.com/docs/getting-started/introduction).

-## 🔥 What's cool about this? +## 🔥 इसके बारे में क्या अच्छा है? -Infisical makes secret management simple and end-to-end encrypted by default. We're on a mission to make it more accessible to all developers, not just security teams. +Infisical गुप्त प्रबंधन को सरल और डिफ़ॉल्ट रूप से एंड-टू-एंड एन्क्रिप्टेड बनाता है। हम इसे केवल सुरक्षा टीमों के लिए ही नहीं, सभी डेवलपरों के लिए अधिक सुलभ बनाने के मिशन पर हैं. -According to a [report](https://www.ekransystem.com/en/blog/secrets-management), only 10% of organizations use secret management solutions despite all using digital secrets to some extent. +एक के अनुसार [प्रतिवेदन](https://www.ekransystem.com/en/blog/secrets-management), कुछ हद तक डिजिटल रहस्यों का उपयोग करने के बावजूद केवल 10% संगठन गुप्त प्रबंधन समाधानों का उपयोग करते हैं। -If you care about efficiency and security, then Infisical is right for you. +यदि आप कार्यकुशलता और सुरक्षा की परवाह करते हैं, तो Infisical आपके लिए सही है. -We are currently working hard to make Infisical more extensive. Need any integrations or want a new feature? Feel free to [create an issue](https://github.com/Infisical/infisical/issues) or [contribute](https://infisical.com/docs/contributing/overview) directly to the repository. +फ़िलहाल हम Infisical को और व्यापक बनाने के लिए कड़ी मेहनत कर रहे हैं। किसी एकीकरण की आवश्यकता है या कोई नई सुविधा चाहिए? करने के लिए स्वतंत्र महसूस[एक मुद्दा बनाएँ](https://github.com/Infisical/infisical/issues) या [योगदान](https://infisical.com/docs/contributing/overview) सीधे रिपॉजिटरी में. -## 🔌 Integrations +## 🔌 एकीकरण -We're currently setting the foundation and building [integrations](https://infisical.com/docs/integrations/overview) so secrets can be synced everywhere. Any help is welcome! :) +वर्तमान में हम नींव और निर्माण कर रहे हैं[एकीकरण](https://infisical.com/docs/integrations/overview) इसलिए रहस्यों को हर जगह सिंक किया जा सकता है। किसी भी मदद का स्वागत है! :) - - + +
Platforms Frameworksप्लेटफार्म फ्रेमवर्क
@@ -332,37 +333,37 @@ We're currently setting the foundation and building [integrations](https://infis
-## 💚 Community & Support +## 💚 समुदाय का समर्थन -- [Slack](https://join.slack.com/t/infisical-users/shared_invite/zt-1kdbk07ro-RtoyEt_9E~fyzGo_xQYP6g) (For live discussion with the community and the Infisical team) -- [GitHub Discussions](https://github.com/Infisical/infisical/discussions) (For help with building and deeper conversations about features) -- [GitHub Issues](https://github.com/Infisical/infisical-cli/issues) (For any bugs and errors you encounter using Infisical) -- [Twitter](https://twitter.com/infisical) (Get news fast) +- [स्लैक](https://join.slack.com/t/infisical-users/shared_invite/zt-1kdbk07ro-RtoyEt_9E~fyzGo_xQYP6g) (समुदाय और Infisical टीम के साथ लाइव चर्चा के लिए) +- [गिटहब चर्चाएँ](https://github.com/Infisical/infisical/discussions) (सुविधाओं के निर्माण और गहन बातचीत में मदद के लिए) +- [गिटहब मुद्दे](https://github.com/Infisical/infisical-cli/issues) (Infisical का उपयोग करके आपके सामने आने वाली किसी भी बग और त्रुटि के लिए) +- [ट्विटर](https://twitter.com/infisical) (समाचार तेजी से प्राप्त करें) -## 🏘 Open-source vs. paid +## 🏘 ओपन-सोर्स बनाम पेड -This repo is entirely MIT licensed, with the exception of the `ee` directory which will contain premium enterprise features requiring a Infisical license in the future. We're currently focused on developing non-enterprise offerings first that should suit most use cases. +यह रिपो बिल्कुल MIT लाइसेंस से है, केवल `ee` निर्देशिका को छोड़कर, जिसमें भविष्य में एक इंफिसिकल लाइसेंस की आवश्यकता होगी जो प्रीमियम एंटरप्राइज सुविधाओं को समर्थित करेगा। हम वर्तमान में गैर-एंटरप्राइज प्रस्ताव विकसित करने पर केंद्रित हैं जो अधिकांश उपयोग मामलों के लिए उपयुक्त होने चाहिए। -## 🛡 Security +## 🛡 सुरक्षा -Looking to report a security vulnerability? Please don't post about it in GitHub issue. Instead, refer to our [SECURITY.md](./SECURITY.md) file. +सुरक्षा भेद्यता की रिपोर्ट करना चाहते हैं? कृपया इसके बारे में GitHub अंक में पोस्ट न करें। इसके बजाय, हमारी [SECURITY.md](./SECURITY.md) फ़ाइल देखें। -## 🚨 Stay Up-to-Date +## 🚨 अद्यतन रहना -Infisical officially launched as v.1.0 on November 21st, 2022. There are a lot of new features coming very frequently. Watch **releases** of this repository to be notified about future updates: +Infisical को आधिकारिक तौर पर 21 नवंबर, 2022 को v.1.0 के रूप में लॉन्च किया गया। बहुत सी नई सुविधाएँ बहुत बार आ रही हैं। भविष्य के अपडेट के बारे में सूचित करने के लिए इस संग्रह की **रिलीज़** देखें: ![infisical-star-github](https://github.com/Infisical/infisical/blob/main/.github/images/star-infisical.gif?raw=true) -## 🌱 Contributing +## 🌱 योगदान देना -Whether it's big or small, we love contributions ❤️ Check out our guide to see how to [get started](https://infisical.com/docs/contributing/overview). +चाहे वह बड़ा हो या छोटा, हमें योगदान पसंद है ❤️ कैसे [आरंभ करें](https://infisical.com/docs/contributing/overview) देखने के लिए हमारी मार्गदर्शिका देखें . -Not sure where to get started? You can: +सुनिश्चित नहीं हैं कि कहां से प्रारंभ करें? तुम कर सकते हो: -- [Book a free, non-pressure pairing sessions with one of our teammates](mailto:tony@infisical.com?subject=Pairing%20session&body=I'd%20like%20to%20do%20a%20pairing%20session!)! -- Join our Slack, and ask us any questions there. +- [हमारे एक साथी के साथ एक मुफ्त, गैर-दबाव जोड़ी सत्र बुक करें](mailto:tony@infisical.com?subject=Pairing%20session&body=I'd%20like%20to%20do%20a%20pairing%20session!)! +- हमारे साथ शामिल हों स्लैक पर, और वहां हमसे कोई प्रश्न पूछें. -## 🦸 Contributors +## 🦸 योगदानकर्ताओं [//]: contributor-faces @@ -372,8 +373,8 @@ Not sure where to get started? You can: -## 🌎 Translations +## 🌎 अनुवाद -Infisical is currently available in English, Korean, French, and Portuguese (Brazil). Help us translate Infisical to your language! +Infisical वर्तमान में अंग्रेजी, कोरियाई, फ्रेंच, हिंदी और पुर्तगाली (ब्राजील) में उपलब्ध है। Infisical को अपनी भाषा में अनुवाद करने में हमारी मदद करें! -You can find all the info in [this issue](https://github.com/Infisical/infisical/issues/181). +आप में सभी जानकारी प्राप्त कर सकते हैं [यह मुद्दा](https://github.com/Infisical/infisical/issues/181). From a7484f8be5b7be0e50da2f541d1682a45af7b77c Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Sun, 23 Apr 2023 09:49:21 +0300 Subject: [PATCH 03/16] Update node SDK docs, positioning of examples --- docs/getting-started/quickstart.mdx | 36 ++++++----- docs/sdks/languages/node.mdx | 97 +++++++++++++++-------------- 2 files changed, 69 insertions(+), 64 deletions(-) diff --git a/docs/getting-started/quickstart.mdx b/docs/getting-started/quickstart.mdx index f19bd1120..8a2ef75f5 100644 --- a/docs/getting-started/quickstart.mdx +++ b/docs/getting-started/quickstart.mdx @@ -64,7 +64,9 @@ These examples demonstrate how to store and fetch environment variables from [In ### Initialize the Infisical client ```js - await infisical.connect({ + import infisical from "infisical-node"; + + infisical.connect({ token: "your_infisical_token", }); ``` @@ -72,31 +74,31 @@ These examples demonstrate how to store and fetch environment variables from [In ### Get a value ```js - const value = infisical.get("SOME_KEY"); + const value = await infisical.getSecret("SOME_KEY"); ``` ### Example with Express ```js - const express = require("express"); - const port = 3000; - const infisical = require("infisical-node"); + import infisical from "infisical-node"; + import express from "express"; + const app = express(); + const PORT = 3000; - const main = async () => { - await infisical.connect({ - token: "st.xxx.xxx", - }); + await infisical.connect({ + token: "st.xxx.xxx", + }); - // your application logic + // your application logic - app.get("/", (req, res) => { - res.send(`Howdy, ${infisical.get("NAME")}!`); - }); + app.get("/", async (req, res) => { + const name = await infisical.getSecret("NAME"); + res.send(`Hello! My name is: ${name.secretValue}`); + }); - app.listen(port, async () => { - console.log(`App listening on port ${port}`); - }); - }; + app.listen(PORT, async () => { + console.log(`App listening on port ${port}`); + }); ``` diff --git a/docs/sdks/languages/node.mdx b/docs/sdks/languages/node.mdx index fe5e969f8..28ce8cf00 100644 --- a/docs/sdks/languages/node.mdx +++ b/docs/sdks/languages/node.mdx @@ -2,7 +2,7 @@ title: "Node" --- -If you're working with Node.js, the official [infisical-node](https://github.com/Infisical/infisical-node) package is the easiest way to fetch secrets for your application. +If you're working with Node.js, the official [infisical-node](https://github.com/Infisical/infisical-node) package is the easiest way to fetch and work with ecrets for your application. ## Installation @@ -12,14 +12,42 @@ Run `npm` to add `infisical-node` to your project. npm install infisical-node --save ``` -## Initialization +## Configuration -Call `connect()` with your Infisical token as early as possible in the main entry module of your application. This initializes the global instance of the SDK, which can be accessed anywhere in your application. +Import the SDK and call `connect()` with your Infisical token as early as possible in the main entry module of your application. This initializes the global instance of the SDK, which can be accessed anywhere in your application. For multiple Infisical projects or creating multiple SDK instances, use `createConnection()` instead. This returns a local SDK instance, independent of the global instance. ### infisical.connect(options) + + + + ```js + import infisical from "infisical-node"; + + infisical.connect({ + token: "your_infisical_token", + }); + + // your app logic + ``` + + + + ```js + const infisical = require("infisical-node"); + + infisical.connect({ + token: "your_infisical_token" + }); + + // your app logic + ```` + + + + Updates the global instance of the Infisical client with a connection to an Infisical project with the [Infisical Token](/getting-started/dashboard/token). @@ -37,7 +65,7 @@ Updates the global instance of the Infisical client with a connection to an Infi `https://app.infisical.com`) - Time-to-live (in seconds) for cached secrets. If set to 0, data is cached indefinitely. + Time-to-live (in seconds) for refreshing cached secrets. Default: `300`. Whether or not debug mode is on @@ -74,41 +102,21 @@ This method is useful if you wish to connect to two or more Infisical projects w - - - ```js - import infisical from "infisical-node"; - - infisical.connect({ - token: "your_infisical_token", - }); - - // your app logic - ``` - - - - ```js - const infisical = require("infisical-node"); - - infisical.connect({ - token: "your_infisical_token" - }); - - // your app logic - ```` - - - ## Usage ### infisical.getSecret(secretName, options) +```js +const secret = await infisical.getSecret("API_KEY"); +const value = secret.secretValue; // get its value +``` + Retrieve a secret from Infisical. By default, `getSecret()` returns a personal secret. If not found, it returns a shared secret, or tries to retrieve the value from `process.env`. + The key of the secret to retrieve @@ -120,13 +128,12 @@ By default, `getSecret()` returns a personal secret. If not found, it returns a -```js -const secret = await infisical.getSecret("API_KEY"); -const value = secret.secretValue; // get its value -``` - ### infisical.createSecret(secretName, secretValue, options) +```js +const newApiKey = await infisical.createSecret("API_KEY", "FOO"); +``` + Create a new secret in Infisical. @@ -143,12 +150,12 @@ Create a new secret in Infisical. -```js -const newApiKey = await infisical.createSecret("API_KEY", "FOO"); -``` - ### infisical.updateSecret(secretName, secretValue, options) +```js +const updatedApiKey = await infisical.updateSecret("API_KEY", "BAR"); +``` + Update an existing secret in Infisical. @@ -165,12 +172,12 @@ Update an existing secret in Infisical. -```js -const updatedApiKey = await infisical.updateSecret("API_KEY", "BAR"); -``` - ### infisical.deleteSecret(secretName, options) +```js +const deletedSecret = await infisical.deleteSecret("API_KEY"); +``` + Delete a secret in Infisical. @@ -184,10 +191,6 @@ Delete a secret in Infisical. -```js -const deletedSecret = await infisical.deleteSecret("API_KEY"); -``` - ## Example with Express ```js From aacdaf4556053c74f9d4a750716eb974d7ef54dc Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Sun, 23 Apr 2023 12:45:13 +0300 Subject: [PATCH 04/16] Modify Node SDK docs to be inline with new initializer --- docs/sdks/languages/node.mdx | 57 +++++++----------------------------- 1 file changed, 10 insertions(+), 47 deletions(-) diff --git a/docs/sdks/languages/node.mdx b/docs/sdks/languages/node.mdx index 28ce8cf00..5a51afc79 100644 --- a/docs/sdks/languages/node.mdx +++ b/docs/sdks/languages/node.mdx @@ -14,20 +14,15 @@ npm install infisical-node --save ## Configuration -Import the SDK and call `connect()` with your Infisical token as early as possible in the main entry module of your application. This initializes the global instance of the SDK, which can be accessed anywhere in your application. - -For multiple Infisical projects or creating multiple SDK instances, use `createConnection()` instead. This returns a local SDK instance, independent of the global instance. - -### infisical.connect(options) - +Import the SDK and create a client instance with your Infisical token. ```js - import infisical from "infisical-node"; - - infisical.connect({ - token: "your_infisical_token", + import InfisicalClient from "infisical-node"; + + const client = new InfisicalClient({ + token: "your_infisical_token" }); // your app logic @@ -36,9 +31,9 @@ For multiple Infisical projects or creating multiple SDK instances, use `createC ```js - const infisical = require("infisical-node"); + const InfisicalClient = require("infisical-node"); - infisical.connect({ + const client = new InfisicalClient({ token: "your_infisical_token" }); @@ -48,8 +43,6 @@ For multiple Infisical projects or creating multiple SDK instances, use `createC -Updates the global instance of the Infisical client with a connection to an Infisical project with the [Infisical Token](/getting-started/dashboard/token). - @@ -73,36 +66,6 @@ Updates the global instance of the Infisical client with a connection to an Infi -### infisical.createConnection(options) - -Returns a local instance of the Infisical client with a connection to an Infisical project with an [Infisical Token](/getting-started/dashboard/token). - -This method is useful if you wish to connect to two or more Infisical projects within your app. - - - - - An [Infisical Token](/getting-started/dashboard/token) scoped to a project - and environment - - - Your self-hosted absolute site URL including the protocol (e.g. - `https://app.infisical.com`) - - - Time-to-live (in seconds) for cached secrets. If set to 0, data is cached indefinitely. - - - Whether or not debug mode is on - - - - - ## Usage ### infisical.getSecret(secretName, options) @@ -194,18 +157,18 @@ Delete a secret in Infisical. ## Example with Express ```js -import infisical from "infisical-node"; +import InfisicalClient from "infisical-node"; import express from "express"; const app = express(); const PORT = 3000; -infisical.connect({ +const client = new InfisicalClient({ token: "YOUR_INFISICAL_TOKEN" }); app.get("/", async (req, res) => { // access value - const name = await infisical.getSecret("NAME"); + const name = await client.getSecret("NAME"); res.send(`Hello! My name is: ${name.secretValue}`); }); From 7127b60867454903187c2db8dbfc37ec1b050e2d Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Sun, 23 Apr 2023 14:06:28 +0300 Subject: [PATCH 05/16] Undo last README change --- README.md | 109 +++++++++++++++++++++++++++--------------------------- 1 file changed, 54 insertions(+), 55 deletions(-) diff --git a/README.md b/README.md index b80d9105c..f3b3a8783 100644 --- a/README.md +++ b/README.md @@ -3,15 +3,15 @@ infisical

-

आपकी टीम, उपकरणों और बुनियादी ढांचे में रहस्यों और कॉन्फ़िगरेशन को प्रबंधित करने के लिए ओपन-सोर्स, एंड-टू-एंड एन्क्रिप्टेड टूल।

+

Open-source, end-to-end encrypted tool to manage secrets and configs across your team, devices, and infrastructure.

- स्लैक | + Slack | Infisical Cloud | Self-Hosting | - डॉक्स | - वेबसाइट + Docs | + Website

@@ -37,7 +37,7 @@ Dashboard -**इसे अन्य भाषाओं में पढ़ें**: [English language](i18n/README.en.md) +**Read this in other languages**: [English language](i18n/README.en.md) [Spanish language](i18n/README.es.md) [German language](i18n/README.de.md) [Korean language](i18n/README.ko.md) @@ -46,56 +46,55 @@ [Portuguese - Brazil](i18n/README.pt-br.md) [Japanese language](i18n/README.ja.md) [Italian language](i18n/README.it.md) -[Hindi language](i18n/README.it.md) -**[Infisical](https://infisical.com)** एक ओपन सोर्स, एंड-टू-एंड एन्क्रिप्टेड गुप्त प्रबंधक है जिसका उपयोग आप अपनी एपीआई कुंजी और कॉन्फ़िगरेशन को केंद्रीकृत करने के लिए कर सकते हैं। Infisical से, फिर आप इन रहस्यों को अपने संपूर्ण विकास जीवनचक्र में वितरित कर सकते हैं - विकास से लेकर उत्पादन तक। इसे सरल होने और चलने में कुछ मिनट लगने के लिए डिज़ाइन किया गया है. +**[Infisical](https://infisical.com)** is an open source, end-to-end encrypted secret manager which you can use to centralize your API keys and configs. From Infisical, you can then distribute these secrets across your whole development lifecycle - from development to production . It's designed to be simple and take minutes to get going. -- **[उपयोगकर्ता के अनुकूल डैशबोर्ड](https://infisical.com/docs/getting-started/dashboard/project)** परियोजनाओं के भीतर अपनी टीम के रहस्यों और कॉन्फ़िगरेशन को प्रबंधित करने के लिए -- **[भाषा-अज्ञेयवादी सीएलआई](https://infisical.com/docs/cli/overview)** जो आपके स्थानीय कार्यप्रवाह में रहस्य और विन्यास को खींचता है और इंजेक्ट करता है -- **[अपने डेटा पर पूर्ण नियंत्रण](https://infisical.com/docs/self-hosting/overview)** - इसे किसी भी बुनियादी ढाँचे पर स्वयं होस्ट करें -- **एकाधिक वातावरण नेविगेट करें** प्रति परियोजना (जैसे विकास, मंचन, उत्पादन, आदि) -- **निजी ओवरराइड** रहस्य और कॉन्फ़िगरेशन के लिए -- **[एकीकरण](https://infisical.com/docs/integrations/overview)** सीआई/सीडी और उत्पादन बुनियादी ढांचे के साथ -- **[इंफिसिकल एपीआई](https://infisical.com/docs/api-reference/overview/introduction)** - प्लेटफ़ॉर्म पर HTTPS अनुरोधों के माध्यम से रहस्य प्रबंधित करें -- **[गुप्त संस्करण](https://infisical.com/docs/getting-started/dashboard/versioning)** किसी भी रहस्य के परिवर्तन इतिहास को देखने के लिए -- **[ऑडिट लॉग](https://infisical.com/docs/getting-started/dashboard/audit-logs)** एक परियोजना में की गई हर कार्रवाई को रिकॉर्ड करने के लिए -- **[Point-in-time Secrets Recovery](https://infisical.com/docs/getting-started/dashboard/pit-recovery)** पॉइंट-इन-टाइम सीक्रेट रिकवरी -- **भूमिका-आधारित अभिगम नियंत्रण** प्रति पर्यावरण -- **2FA** (अधिक विकल्प जल्द ही आ रहे हैं) -- **स्मार्ट सुरक्षा अलर्ट** -- 🔜 **1-क्लिक डिप्लॉय** टू एडब्ल्यूएस -- 🔜 **स्वचालित गुप्त रोटेशन** -- 🔜 **स्लैक और एमएस टीम्स** संयोजनाएँ +- **[User-Friendly Dashboard](https://infisical.com/docs/getting-started/dashboard/project)** to manage your team's secrets and configs within projects +- **[Language-Agnostic CLI](https://infisical.com/docs/cli/overview)** that pulls and injects esecrets and configs into your local workflow +- **[Complete control over your data](https://infisical.com/docs/self-hosting/overview)** - host it yourself on any infrastructure +- **Navigate Multiple Environments** per project (e.g. development, staging, production, etc.) +- **Personal overrides** for secrets and configs +- **[Integrations](https://infisical.com/docs/integrations/overview)** with CI/CD and production infrastructure +- **[Infisical API](https://infisical.com/docs/api-reference/overview/introduction)** - manage secrets via HTTPS requests to the platform +- **[Secret Versioning](https://infisical.com/docs/getting-started/dashboard/versioning)** to view the change history for any secret +- **[Audit Logs](https://infisical.com/docs/getting-started/dashboard/audit-logs)** to record every action taken in a project +- **[Point-in-time Secrets Recovery](https://infisical.com/docs/getting-started/dashboard/pit-recovery)** for rolling back to any snapshot of your secrets +- **Role-based Access Controls** per environment +- **2FA** (more options coming soon) +- **Smart Security Alerts** +- 🔜 **1-Click Deploy** to AWS +- 🔜 **Automatic Secret Rotation** +- 🔜 **Slack & MS Teams** integrations -और अधिक। +And more. -## 🚀 शुरू हो जाओ? +## 🚀 Get started -और ताकि आप त्वरित रूप से शुरू हो सकें, हमारे [शुरू हो जाओ गाइड] पर जाएं।(https://infisical.com/docs/getting-started/introduction). +To quickly get started, visit our [get started guide](https://infisical.com/docs/getting-started/introduction).

-## 🔥 इसके बारे में क्या अच्छा है? +## 🔥 What's cool about this? -Infisical गुप्त प्रबंधन को सरल और डिफ़ॉल्ट रूप से एंड-टू-एंड एन्क्रिप्टेड बनाता है। हम इसे केवल सुरक्षा टीमों के लिए ही नहीं, सभी डेवलपरों के लिए अधिक सुलभ बनाने के मिशन पर हैं. +Infisical makes secret management simple and end-to-end encrypted by default. We're on a mission to make it more accessible to all developers, not just security teams. -एक के अनुसार [प्रतिवेदन](https://www.ekransystem.com/en/blog/secrets-management), कुछ हद तक डिजिटल रहस्यों का उपयोग करने के बावजूद केवल 10% संगठन गुप्त प्रबंधन समाधानों का उपयोग करते हैं। +According to a [report](https://www.ekransystem.com/en/blog/secrets-management), only 10% of organizations use secret management solutions despite all using digital secrets to some extent. -यदि आप कार्यकुशलता और सुरक्षा की परवाह करते हैं, तो Infisical आपके लिए सही है. +If you care about efficiency and security, then Infisical is right for you. -फ़िलहाल हम Infisical को और व्यापक बनाने के लिए कड़ी मेहनत कर रहे हैं। किसी एकीकरण की आवश्यकता है या कोई नई सुविधा चाहिए? करने के लिए स्वतंत्र महसूस[एक मुद्दा बनाएँ](https://github.com/Infisical/infisical/issues) या [योगदान](https://infisical.com/docs/contributing/overview) सीधे रिपॉजिटरी में. +We are currently working hard to make Infisical more extensive. Need any integrations or want a new feature? Feel free to [create an issue](https://github.com/Infisical/infisical/issues) or [contribute](https://infisical.com/docs/contributing/overview) directly to the repository. -## 🔌 एकीकरण +## 🔌 Integrations -वर्तमान में हम नींव और निर्माण कर रहे हैं[एकीकरण](https://infisical.com/docs/integrations/overview) इसलिए रहस्यों को हर जगह सिंक किया जा सकता है। किसी भी मदद का स्वागत है! :) +We're currently setting the foundation and building [integrations](https://infisical.com/docs/integrations/overview) so secrets can be synced everywhere. Any help is welcome! :) - - + +
प्लेटफार्म फ्रेमवर्कPlatforms Frameworks
@@ -333,37 +332,37 @@ Infisical गुप्त प्रबंधन को सरल और डि
-## 💚 समुदाय का समर्थन +## 💚 Community & Support -- [स्लैक](https://join.slack.com/t/infisical-users/shared_invite/zt-1kdbk07ro-RtoyEt_9E~fyzGo_xQYP6g) (समुदाय और Infisical टीम के साथ लाइव चर्चा के लिए) -- [गिटहब चर्चाएँ](https://github.com/Infisical/infisical/discussions) (सुविधाओं के निर्माण और गहन बातचीत में मदद के लिए) -- [गिटहब मुद्दे](https://github.com/Infisical/infisical-cli/issues) (Infisical का उपयोग करके आपके सामने आने वाली किसी भी बग और त्रुटि के लिए) -- [ट्विटर](https://twitter.com/infisical) (समाचार तेजी से प्राप्त करें) +- [Slack](https://join.slack.com/t/infisical-users/shared_invite/zt-1kdbk07ro-RtoyEt_9E~fyzGo_xQYP6g) (For live discussion with the community and the Infisical team) +- [GitHub Discussions](https://github.com/Infisical/infisical/discussions) (For help with building and deeper conversations about features) +- [GitHub Issues](https://github.com/Infisical/infisical-cli/issues) (For any bugs and errors you encounter using Infisical) +- [Twitter](https://twitter.com/infisical) (Get news fast) -## 🏘 ओपन-सोर्स बनाम पेड +## 🏘 Open-source vs. paid -यह रिपो बिल्कुल MIT लाइसेंस से है, केवल `ee` निर्देशिका को छोड़कर, जिसमें भविष्य में एक इंफिसिकल लाइसेंस की आवश्यकता होगी जो प्रीमियम एंटरप्राइज सुविधाओं को समर्थित करेगा। हम वर्तमान में गैर-एंटरप्राइज प्रस्ताव विकसित करने पर केंद्रित हैं जो अधिकांश उपयोग मामलों के लिए उपयुक्त होने चाहिए। +This repo is entirely MIT licensed, with the exception of the `ee` directory which will contain premium enterprise features requiring a Infisical license in the future. We're currently focused on developing non-enterprise offerings first that should suit most use cases. -## 🛡 सुरक्षा +## 🛡 Security -सुरक्षा भेद्यता की रिपोर्ट करना चाहते हैं? कृपया इसके बारे में GitHub अंक में पोस्ट न करें। इसके बजाय, हमारी [SECURITY.md](./SECURITY.md) फ़ाइल देखें। +Looking to report a security vulnerability? Please don't post about it in GitHub issue. Instead, refer to our [SECURITY.md](./SECURITY.md) file. -## 🚨 अद्यतन रहना +## 🚨 Stay Up-to-Date -Infisical को आधिकारिक तौर पर 21 नवंबर, 2022 को v.1.0 के रूप में लॉन्च किया गया। बहुत सी नई सुविधाएँ बहुत बार आ रही हैं। भविष्य के अपडेट के बारे में सूचित करने के लिए इस संग्रह की **रिलीज़** देखें: +Infisical officially launched as v.1.0 on November 21st, 2022. There are a lot of new features coming very frequently. Watch **releases** of this repository to be notified about future updates: ![infisical-star-github](https://github.com/Infisical/infisical/blob/main/.github/images/star-infisical.gif?raw=true) -## 🌱 योगदान देना +## 🌱 Contributing -चाहे वह बड़ा हो या छोटा, हमें योगदान पसंद है ❤️ कैसे [आरंभ करें](https://infisical.com/docs/contributing/overview) देखने के लिए हमारी मार्गदर्शिका देखें . +Whether it's big or small, we love contributions ❤️ Check out our guide to see how to [get started](https://infisical.com/docs/contributing/overview). -सुनिश्चित नहीं हैं कि कहां से प्रारंभ करें? तुम कर सकते हो: +Not sure where to get started? You can: -- [हमारे एक साथी के साथ एक मुफ्त, गैर-दबाव जोड़ी सत्र बुक करें](mailto:tony@infisical.com?subject=Pairing%20session&body=I'd%20like%20to%20do%20a%20pairing%20session!)! -- हमारे साथ शामिल हों स्लैक पर, और वहां हमसे कोई प्रश्न पूछें. +- [Book a free, non-pressure pairing sessions with one of our teammates](mailto:tony@infisical.com?subject=Pairing%20session&body=I'd%20like%20to%20do%20a%20pairing%20session!)! +- Join our Slack, and ask us any questions there. -## 🦸 योगदानकर्ताओं +## 🦸 Contributors [//]: contributor-faces @@ -373,8 +372,8 @@ Infisical को आधिकारिक तौर पर 21 नवंबर, 2 -## 🌎 अनुवाद +## 🌎 Translations -Infisical वर्तमान में अंग्रेजी, कोरियाई, फ्रेंच, हिंदी और पुर्तगाली (ब्राजील) में उपलब्ध है। Infisical को अपनी भाषा में अनुवाद करने में हमारी मदद करें! +Infisical is currently available in English, Korean, French, and Portuguese (Brazil). Help us translate Infisical to your language! -आप में सभी जानकारी प्राप्त कर सकते हैं [यह मुद्दा](https://github.com/Infisical/infisical/issues/181). +You can find all the info in [this issue](https://github.com/Infisical/infisical/issues/181). \ No newline at end of file From 9e42a7a33e10638822ed34d846099acb7d2ec908 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Sun, 23 Apr 2023 15:51:42 +0300 Subject: [PATCH 06/16] Update quickstart example --- docs/getting-started/quickstart.mdx | 12 ++++++------ docs/sdks/languages/node.mdx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/getting-started/quickstart.mdx b/docs/getting-started/quickstart.mdx index 8a2ef75f5..7fca86d4d 100644 --- a/docs/getting-started/quickstart.mdx +++ b/docs/getting-started/quickstart.mdx @@ -64,9 +64,9 @@ These examples demonstrate how to store and fetch environment variables from [In ### Initialize the Infisical client ```js - import infisical from "infisical-node"; + import InfisicalClient from "infisical-node"; - infisical.connect({ + const client = new InfisicalClient({ token: "your_infisical_token", }); ``` @@ -74,25 +74,25 @@ These examples demonstrate how to store and fetch environment variables from [In ### Get a value ```js - const value = await infisical.getSecret("SOME_KEY"); + const value = await client.getSecret("SOME_KEY"); ``` ### Example with Express ```js - import infisical from "infisical-node"; + import InfisicalClient from "infisical-node"; import express from "express"; const app = express(); const PORT = 3000; - await infisical.connect({ + const client = InfisicalClient({ token: "st.xxx.xxx", }); // your application logic app.get("/", async (req, res) => { - const name = await infisical.getSecret("NAME"); + const name = await client.getSecret("NAME"); res.send(`Hello! My name is: ${name.secretValue}`); }); diff --git a/docs/sdks/languages/node.mdx b/docs/sdks/languages/node.mdx index 5a51afc79..cb56f50d4 100644 --- a/docs/sdks/languages/node.mdx +++ b/docs/sdks/languages/node.mdx @@ -2,7 +2,7 @@ title: "Node" --- -If you're working with Node.js, the official [infisical-node](https://github.com/Infisical/infisical-node) package is the easiest way to fetch and work with ecrets for your application. +If you're working with Node.js, the official [infisical-node](https://github.com/Infisical/infisical-node) package is the easiest way to fetch and work with secrets for your application. ## Installation From 803a97fdfc0c041539f708cffb8de908a62cfcee Mon Sep 17 00:00:00 2001 From: Satyam Gupta Date: Sun, 23 Apr 2023 23:10:47 +0530 Subject: [PATCH 07/16] Translated README.md in Hindi language --- i18n/README.hi.md | 380 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 380 insertions(+) create mode 100644 i18n/README.hi.md diff --git a/i18n/README.hi.md b/i18n/README.hi.md new file mode 100644 index 000000000..b80d9105c --- /dev/null +++ b/i18n/README.hi.md @@ -0,0 +1,380 @@ +

+ infisical + infisical +

+

+

आपकी टीम, उपकरणों और बुनियादी ढांचे में रहस्यों और कॉन्फ़िगरेशन को प्रबंधित करने के लिए ओपन-सोर्स, एंड-टू-एंड एन्क्रिप्टेड टूल।

+

+ +

+ स्लैक | + Infisical Cloud | + Self-Hosting | + डॉक्स | + वेबसाइट +

+ +

+ + Infisical is released under the MIT license. + + + PRs welcome! + + + git commit activity + + + Cloudsmith downloads + + + Slack community channel + + + Infisical Twitter + +

+ +Dashboard + +**इसे अन्य भाषाओं में पढ़ें**: [English language](i18n/README.en.md) +[Spanish language](i18n/README.es.md) +[German language](i18n/README.de.md) +[Korean language](i18n/README.ko.md) +[Turkish language](i18n/README.tr.md) +[Bahasa Indonesia language](i18n/README.id.md) +[Portuguese - Brazil](i18n/README.pt-br.md) +[Japanese language](i18n/README.ja.md) +[Italian language](i18n/README.it.md) +[Hindi language](i18n/README.it.md) + +**[Infisical](https://infisical.com)** एक ओपन सोर्स, एंड-टू-एंड एन्क्रिप्टेड गुप्त प्रबंधक है जिसका उपयोग आप अपनी एपीआई कुंजी और कॉन्फ़िगरेशन को केंद्रीकृत करने के लिए कर सकते हैं। Infisical से, फिर आप इन रहस्यों को अपने संपूर्ण विकास जीवनचक्र में वितरित कर सकते हैं - विकास से लेकर उत्पादन तक। इसे सरल होने और चलने में कुछ मिनट लगने के लिए डिज़ाइन किया गया है. + +- **[उपयोगकर्ता के अनुकूल डैशबोर्ड](https://infisical.com/docs/getting-started/dashboard/project)** परियोजनाओं के भीतर अपनी टीम के रहस्यों और कॉन्फ़िगरेशन को प्रबंधित करने के लिए +- **[भाषा-अज्ञेयवादी सीएलआई](https://infisical.com/docs/cli/overview)** जो आपके स्थानीय कार्यप्रवाह में रहस्य और विन्यास को खींचता है और इंजेक्ट करता है +- **[अपने डेटा पर पूर्ण नियंत्रण](https://infisical.com/docs/self-hosting/overview)** - इसे किसी भी बुनियादी ढाँचे पर स्वयं होस्ट करें +- **एकाधिक वातावरण नेविगेट करें** प्रति परियोजना (जैसे विकास, मंचन, उत्पादन, आदि) +- **निजी ओवरराइड** रहस्य और कॉन्फ़िगरेशन के लिए +- **[एकीकरण](https://infisical.com/docs/integrations/overview)** सीआई/सीडी और उत्पादन बुनियादी ढांचे के साथ +- **[इंफिसिकल एपीआई](https://infisical.com/docs/api-reference/overview/introduction)** - प्लेटफ़ॉर्म पर HTTPS अनुरोधों के माध्यम से रहस्य प्रबंधित करें +- **[गुप्त संस्करण](https://infisical.com/docs/getting-started/dashboard/versioning)** किसी भी रहस्य के परिवर्तन इतिहास को देखने के लिए +- **[ऑडिट लॉग](https://infisical.com/docs/getting-started/dashboard/audit-logs)** एक परियोजना में की गई हर कार्रवाई को रिकॉर्ड करने के लिए +- **[Point-in-time Secrets Recovery](https://infisical.com/docs/getting-started/dashboard/pit-recovery)** पॉइंट-इन-टाइम सीक्रेट रिकवरी +- **भूमिका-आधारित अभिगम नियंत्रण** प्रति पर्यावरण +- **2FA** (अधिक विकल्प जल्द ही आ रहे हैं) +- **स्मार्ट सुरक्षा अलर्ट** +- 🔜 **1-क्लिक डिप्लॉय** टू एडब्ल्यूएस +- 🔜 **स्वचालित गुप्त रोटेशन** +- 🔜 **स्लैक और एमएस टीम्स** संयोजनाएँ + +और अधिक। + +## 🚀 शुरू हो जाओ? + +और ताकि आप त्वरित रूप से शुरू हो सकें, हमारे [शुरू हो जाओ गाइड] पर जाएं।(https://infisical.com/docs/getting-started/introduction). + +

+ + +

+ +## 🔥 इसके बारे में क्या अच्छा है? + +Infisical गुप्त प्रबंधन को सरल और डिफ़ॉल्ट रूप से एंड-टू-एंड एन्क्रिप्टेड बनाता है। हम इसे केवल सुरक्षा टीमों के लिए ही नहीं, सभी डेवलपरों के लिए अधिक सुलभ बनाने के मिशन पर हैं. + +एक के अनुसार [प्रतिवेदन](https://www.ekransystem.com/en/blog/secrets-management), कुछ हद तक डिजिटल रहस्यों का उपयोग करने के बावजूद केवल 10% संगठन गुप्त प्रबंधन समाधानों का उपयोग करते हैं। + +यदि आप कार्यकुशलता और सुरक्षा की परवाह करते हैं, तो Infisical आपके लिए सही है. + +फ़िलहाल हम Infisical को और व्यापक बनाने के लिए कड़ी मेहनत कर रहे हैं। किसी एकीकरण की आवश्यकता है या कोई नई सुविधा चाहिए? करने के लिए स्वतंत्र महसूस[एक मुद्दा बनाएँ](https://github.com/Infisical/infisical/issues) या [योगदान](https://infisical.com/docs/contributing/overview) सीधे रिपॉजिटरी में. + +## 🔌 एकीकरण + +वर्तमान में हम नींव और निर्माण कर रहे हैं[एकीकरण](https://infisical.com/docs/integrations/overview) इसलिए रहस्यों को हर जगह सिंक किया जा सकता है। किसी भी मदद का स्वागत है! :) + + + + + + + + + + +
प्लेटफार्म फ्रेमवर्क
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + ✔️ Docker + + + + ✔️ Docker Compose + + + + ✔️ Heroku + +
+ + ✔️ Vercel + + + + ✔️ Kubernetes + + + + ✔️ Fly.io + +
+ + ✔️ Supabase + + + + ✔️ GitHub Actions + + + + ✔️ Railway + +
+ 🔜 GCP SM (https://github.com/Infisical/infisical/issues/285) + + + ✔️ GitLab CI/CD + + + + ✔️ CircleCI + +
+ 🔜 Jenkins + + 🔜 Digital Ocean + + + ✔️ Azure Key Vault + +
+ + ✔️ Travis CI + + + + ✔️ AWS Secrets Manager + + + 🔜 Forge +
+ 🔜 Bitbucket + + + ✔️ AWS Parameter Store + + + + ✔️ Render + +
+ 🔜 BuddyCI + + 🔜 Serverless + + + ✔️ Netlify + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + ✔️ React + + + + ✔️ Express + +
+ + ✔️ Gatsby + + + + ✔️ Flask + +
+ + ✔️ Django + + + + ✔️ Laravel + +
+ + ✔️ NestJS + + + + ✔️ Remix + +
+ + ✔️ Next.js + + + + ✔️ Vite + +
+ + ✔️ Vue + + + + ✔️ Ruby on Rails + +
+ + ✔️ Fiber + + + + ✔️ Nuxt + +
+ + ✔️ .NET + + + And more... +
+ +
+ +## 💚 समुदाय का समर्थन + +- [स्लैक](https://join.slack.com/t/infisical-users/shared_invite/zt-1kdbk07ro-RtoyEt_9E~fyzGo_xQYP6g) (समुदाय और Infisical टीम के साथ लाइव चर्चा के लिए) +- [गिटहब चर्चाएँ](https://github.com/Infisical/infisical/discussions) (सुविधाओं के निर्माण और गहन बातचीत में मदद के लिए) +- [गिटहब मुद्दे](https://github.com/Infisical/infisical-cli/issues) (Infisical का उपयोग करके आपके सामने आने वाली किसी भी बग और त्रुटि के लिए) +- [ट्विटर](https://twitter.com/infisical) (समाचार तेजी से प्राप्त करें) + +## 🏘 ओपन-सोर्स बनाम पेड + +यह रिपो बिल्कुल MIT लाइसेंस से है, केवल `ee` निर्देशिका को छोड़कर, जिसमें भविष्य में एक इंफिसिकल लाइसेंस की आवश्यकता होगी जो प्रीमियम एंटरप्राइज सुविधाओं को समर्थित करेगा। हम वर्तमान में गैर-एंटरप्राइज प्रस्ताव विकसित करने पर केंद्रित हैं जो अधिकांश उपयोग मामलों के लिए उपयुक्त होने चाहिए। + +## 🛡 सुरक्षा + +सुरक्षा भेद्यता की रिपोर्ट करना चाहते हैं? कृपया इसके बारे में GitHub अंक में पोस्ट न करें। इसके बजाय, हमारी [SECURITY.md](./SECURITY.md) फ़ाइल देखें। + +## 🚨 अद्यतन रहना + +Infisical को आधिकारिक तौर पर 21 नवंबर, 2022 को v.1.0 के रूप में लॉन्च किया गया। बहुत सी नई सुविधाएँ बहुत बार आ रही हैं। भविष्य के अपडेट के बारे में सूचित करने के लिए इस संग्रह की **रिलीज़** देखें: + +![infisical-star-github](https://github.com/Infisical/infisical/blob/main/.github/images/star-infisical.gif?raw=true) + +## 🌱 योगदान देना + +चाहे वह बड़ा हो या छोटा, हमें योगदान पसंद है ❤️ कैसे [आरंभ करें](https://infisical.com/docs/contributing/overview) देखने के लिए हमारी मार्गदर्शिका देखें . + +सुनिश्चित नहीं हैं कि कहां से प्रारंभ करें? तुम कर सकते हो: + +- [हमारे एक साथी के साथ एक मुफ्त, गैर-दबाव जोड़ी सत्र बुक करें](mailto:tony@infisical.com?subject=Pairing%20session&body=I'd%20like%20to%20do%20a%20pairing%20session!)! +- हमारे साथ शामिल हों स्लैक पर, और वहां हमसे कोई प्रश्न पूछें. + +## 🦸 योगदानकर्ताओं + +[//]: contributor-faces + + + + + + + +## 🌎 अनुवाद + +Infisical वर्तमान में अंग्रेजी, कोरियाई, फ्रेंच, हिंदी और पुर्तगाली (ब्राजील) में उपलब्ध है। Infisical को अपनी भाषा में अनुवाद करने में हमारी मदद करें! + +आप में सभी जानकारी प्राप्त कर सकते हैं [यह मुद्दा](https://github.com/Infisical/infisical/issues/181). From e5c5e4cca23056518a8ae9acd990190e78e0583d Mon Sep 17 00:00:00 2001 From: Satyam Gupta Date: Mon, 24 Apr 2023 17:26:33 +0530 Subject: [PATCH 08/16] Updated readme.hi.md --- i18n/README.hi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n/README.hi.md b/i18n/README.hi.md index b80d9105c..c9840b428 100644 --- a/i18n/README.hi.md +++ b/i18n/README.hi.md @@ -46,7 +46,7 @@ [Portuguese - Brazil](i18n/README.pt-br.md) [Japanese language](i18n/README.ja.md) [Italian language](i18n/README.it.md) -[Hindi language](i18n/README.it.md) +[Hindi language](i18n/README.hi.md) **[Infisical](https://infisical.com)** एक ओपन सोर्स, एंड-टू-एंड एन्क्रिप्टेड गुप्त प्रबंधक है जिसका उपयोग आप अपनी एपीआई कुंजी और कॉन्फ़िगरेशन को केंद्रीकृत करने के लिए कर सकते हैं। Infisical से, फिर आप इन रहस्यों को अपने संपूर्ण विकास जीवनचक्र में वितरित कर सकते हैं - विकास से लेकर उत्पादन तक। इसे सरल होने और चलने में कुछ मिनट लगने के लिए डिज़ाइन किया गया है. From 4bda67c9f742e099af8feed64b006912e6d68c50 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 24 Apr 2023 05:16:08 -0700 Subject: [PATCH 09/16] remove check for --env for service tokens --- cli/packages/util/secrets.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/packages/util/secrets.go b/cli/packages/util/secrets.go index e749e20c9..42a535b5a 100644 --- a/cli/packages/util/secrets.go +++ b/cli/packages/util/secrets.go @@ -131,7 +131,7 @@ func GetAllEnvironmentVariables(params models.GetAllSecretsParameters) ([]models isConnected := CheckIsConnectedToInternet() var secretsToReturn []models.SingleEnvironmentVariable - var serviceTokenDetails api.GetServiceTokenDetailsResponse + // var serviceTokenDetails api.GetServiceTokenDetailsResponse var errorToReturn error if infisicalToken == "" { @@ -183,11 +183,11 @@ func GetAllEnvironmentVariables(params models.GetAllSecretsParameters) ([]models } else { log.Debug("Trying to fetch secrets using service token") - secretsToReturn, serviceTokenDetails, errorToReturn = GetPlainTextSecretsViaServiceToken(infisicalToken) + secretsToReturn, _, errorToReturn = GetPlainTextSecretsViaServiceToken(infisicalToken) - if serviceTokenDetails.Environment != params.Environment { - PrintErrorMessageAndExit(fmt.Sprintf("Fetch secrets failed: token allows [%s] environment access, not [%s]. Service tokens are environment-specific; no need for --env flag.", params.Environment, serviceTokenDetails.Environment)) - } + // if serviceTokenDetails.Environment != params.Environment { + // PrintErrorMessageAndExit(fmt.Sprintf("Fetch secrets failed: token allows [%s] environment access, not [%s]. Service tokens are environment-specific; no need for --env flag.", params.Environment, serviceTokenDetails.Environment)) + // } } return secretsToReturn, errorToReturn From fb8aaa9d9f92b45f1d16daae061abe937e9d0bc0 Mon Sep 17 00:00:00 2001 From: Satyam Gupta Date: Mon, 24 Apr 2023 17:57:33 +0530 Subject: [PATCH 10/16] Added country flag [india] --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f3b3a8783..a48e91b94 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ [Portuguese - Brazil](i18n/README.pt-br.md) [Japanese language](i18n/README.ja.md) [Italian language](i18n/README.it.md) +[Hindi language](i18n/README.hi.md) **[Infisical](https://infisical.com)** is an open source, end-to-end encrypted secret manager which you can use to centralize your API keys and configs. From Infisical, you can then distribute these secrets across your whole development lifecycle - from development to production . It's designed to be simple and take minutes to get going. @@ -376,4 +377,4 @@ Not sure where to get started? You can: Infisical is currently available in English, Korean, French, and Portuguese (Brazil). Help us translate Infisical to your language! -You can find all the info in [this issue](https://github.com/Infisical/infisical/issues/181). \ No newline at end of file +You can find all the info in [this issue](https://github.com/Infisical/infisical/issues/181). From 13ecc221598d53310d027ced4db63bc8bb79159c Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 25 Apr 2023 06:51:32 +0000 Subject: [PATCH 11/16] fix: frontend/package.json & frontend/package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-YAML-5458867 --- frontend/package-lock.json | 16 ++++++++-------- frontend/package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 384f3a31d..75db3beb5 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,5 +1,5 @@ { - "name": "frontend", + "name": "npm-proj-1682405486465-0.42385611556033065msLhaJ", "lockfileVersion": 2, "requires": true, "packages": { @@ -75,7 +75,7 @@ "tweetnacl-util": "^0.15.1", "uuid": "^8.3.2", "uuidv4": "^6.2.13", - "yaml": "^2.2.0", + "yaml": "^2.2.2", "yup": "^0.32.11" }, "devDependencies": { @@ -22405,9 +22405,9 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/yaml": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz", - "integrity": "sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.2.tgz", + "integrity": "sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==", "engines": { "node": ">= 14" } @@ -38856,9 +38856,9 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "yaml": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.1.tgz", - "integrity": "sha512-e0WHiYql7+9wr4cWMx3TVQrNwejKaEe7/rHNmQmqRjazfOP5W8PB6Jpebb5o6fIapbz9o9+2ipcaTM2ZwDI6lw==" + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.2.tgz", + "integrity": "sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==" }, "yargs": { "version": "16.2.0", diff --git a/frontend/package.json b/frontend/package.json index 0e1d3a907..f80df6819 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -82,7 +82,7 @@ "tweetnacl-util": "^0.15.1", "uuid": "^8.3.2", "uuidv4": "^6.2.13", - "yaml": "^2.2.0", + "yaml": "^2.2.2", "yup": "^0.32.11" }, "devDependencies": { From a263d7481bdef1ff79a3cbcb900e315edbb4d623 Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Tue, 25 Apr 2023 08:11:31 -0700 Subject: [PATCH 12/16] Added truncation for secret names on the comparison screen --- .../components/EnvComparisonRow/EnvComparisonRow.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/DashboardPage/components/EnvComparisonRow/EnvComparisonRow.tsx b/frontend/src/views/DashboardPage/components/EnvComparisonRow/EnvComparisonRow.tsx index 48ad6b2b8..56dc71306 100644 --- a/frontend/src/views/DashboardPage/components/EnvComparisonRow/EnvComparisonRow.tsx +++ b/frontend/src/views/DashboardPage/components/EnvComparisonRow/EnvComparisonRow.tsx @@ -118,8 +118,8 @@ export const EnvComparisonRow = ({
{index + 1}
-
{secrets![0].key || ''}
- From 3b00df6662c2fa5cda9c81ff599e37874f5c477f Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Tue, 25 Apr 2023 08:12:12 -0700 Subject: [PATCH 13/16] Updated readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a48e91b94..8f03f9960 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ git commit activity - Cloudsmith downloads + Cloudsmith downloads Slack community channel From f0075e8d0956fcdad7109a37092088a20d9ee29a Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 25 Apr 2023 16:15:18 -0400 Subject: [PATCH 14/16] add folder controller --- .../controllers/v1/secretsFolderController.ts | 89 +++++++++++++++++++ backend/src/models/folder.ts | 36 ++++++++ backend/src/utils/folder.ts | 87 ++++++++++++++++++ 3 files changed, 212 insertions(+) create mode 100644 backend/src/controllers/v1/secretsFolderController.ts create mode 100644 backend/src/models/folder.ts create mode 100644 backend/src/utils/folder.ts diff --git a/backend/src/controllers/v1/secretsFolderController.ts b/backend/src/controllers/v1/secretsFolderController.ts new file mode 100644 index 000000000..2e856c2a4 --- /dev/null +++ b/backend/src/controllers/v1/secretsFolderController.ts @@ -0,0 +1,89 @@ +import { Request, Response } from 'express'; +import { Secret } from '../../models'; +import Folder from '../../models/folder'; +import { BadRequestError } from '../../utils/errors'; +import { ROOT_FOLDER_PATH, getFolderPath, getParentPath, normalizePath, validateFolderName } from '../../utils/folder'; +import { ADMIN, MEMBER } from '../../variables'; +import { validateMembership } from '../../helpers/membership'; + +// TODO +// verify workspace id/environment +export const createFolder = async (req: Request, res: Response) => { + const { workspaceId, environment, folderName, parentFolderId } = req.body + if (!validateFolderName(folderName)) { + throw BadRequestError({ message: "Folder name cannot contain spaces. Only underscore and dashes" }) + } + + if (parentFolderId) { + const parentFolder = await Folder.find({ environment: environment, workspace: workspaceId, id: parentFolderId }); + if (!parentFolder) { + throw BadRequestError({ message: "The parent folder doesn't exist" }) + } + } + + let completePath = await getFolderPath(parentFolderId) + if (completePath == ROOT_FOLDER_PATH) { + completePath = "" + } + + const currentFolderPath = completePath + "/" + folderName // construct new path with current folder to be created + const normalizedCurrentPath = normalizePath(currentFolderPath) + const normalizedParentPath = getParentPath(normalizedCurrentPath) + + const existingFolder = await Folder.findOne({ + name: folderName, + workspace: workspaceId, + environment: environment, + parent: parentFolderId, + path: normalizedCurrentPath + }); + + if (existingFolder) { + return res.json(existingFolder) + } + + const newFolder = new Folder({ + name: folderName, + workspace: workspaceId, + environment: environment, + parent: parentFolderId, + path: normalizedCurrentPath, + parentPath: normalizedParentPath + }); + + await newFolder.save(); + + return res.json(newFolder) +} + +export const deleteFolder = async (req: Request, res: Response) => { + const { folderId } = req.params + const queue: any[] = [folderId]; + + const folder = await Folder.findById(folderId); + if (!folder) { + throw BadRequestError({ message: "The folder doesn't exist" }) + } + + // check that user is a member of the workspace + await validateMembership({ + userId: req.user._id.toString(), + workspaceId: folder.workspace as any, + acceptedRoles: [ADMIN, MEMBER] + }); + + while (queue.length > 0) { + const currentFolderId = queue.shift(); + + const childFolders = await Folder.find({ parent: currentFolderId }); + for (const childFolder of childFolders) { + queue.push(childFolder._id); + } + + await Secret.deleteMany({ folder: currentFolderId }); + + await Folder.deleteOne({ _id: currentFolderId }); + } + + res.send() +} \ No newline at end of file diff --git a/backend/src/models/folder.ts b/backend/src/models/folder.ts new file mode 100644 index 000000000..885e320a8 --- /dev/null +++ b/backend/src/models/folder.ts @@ -0,0 +1,36 @@ +import { Schema, Types, model } from 'mongoose'; + +const folderSchema = new Schema({ + name: { + type: String, + required: true, + }, + workspace: { + type: Schema.Types.ObjectId, + ref: 'Workspace', + required: true, + }, + environment: { + type: String, + required: true, + }, + parent: { + type: Schema.Types.ObjectId, + ref: 'Folder', + required: false, // optional for root folders + }, + path: { + type: String, + required: true + }, + parentPath: { + type: String, + required: true, + }, +}, { + timestamps: true +}); + +const Folder = model('Folder', folderSchema); + +export default Folder; \ No newline at end of file diff --git a/backend/src/utils/folder.ts b/backend/src/utils/folder.ts new file mode 100644 index 000000000..f12845339 --- /dev/null +++ b/backend/src/utils/folder.ts @@ -0,0 +1,87 @@ +import Folder from "../models/folder"; + +export const ROOT_FOLDER_PATH = "/" + +export const getFolderPath = async (folderId: string) => { + let currentFolder = await Folder.findById(folderId); + const pathSegments = []; + + while (currentFolder) { + pathSegments.unshift(currentFolder.name); + currentFolder = currentFolder.parent ? await Folder.findById(currentFolder.parent) : null; + } + + return '/' + pathSegments.join('/'); +}; + +/** + Returns the folder ID associated with the specified secret path in the given workspace and environment. + @param workspaceId - The ID of the workspace to search in. + @param environment - The environment to search in. + @param secretPath - The secret path to search for. + @returns The folder ID associated with the specified secret path, or undefined if the path is at the root folder level. + @throws Error if the specified secret path is not found. +*/ +export const getFolderIdFromPath = async (workspaceId: string, environment: string, secretPath: string) => { + const secretPathParts = secretPath.split("/").filter(path => path != "") + if (secretPathParts.length <= 1) { + return undefined // root folder, so no folder id + } + + const folderId = await Folder.find({ path: secretPath, workspace: workspaceId, environment: environment }) + if (!folderId) { + throw Error("Secret path not found") + } + + return folderId +} + +/** + * Cleans up a path by removing empty parts, duplicate slashes, + * and ensuring it starts with ROOT_FOLDER_PATH. + * @param path - The input path to clean up. + * @returns The cleaned-up path string. + */ +export const normalizePath = (path: string) => { + if (path == undefined || path == "" || path == ROOT_FOLDER_PATH) { + return ROOT_FOLDER_PATH + } + + const pathParts = path.split("/").filter(part => part != "") + const cleanPathString = ROOT_FOLDER_PATH + pathParts.join("/") + + return cleanPathString +} + +export const getFoldersInDirectory = async (workspaceId: string, environment: string, pathString: string) => { + const normalizedPath = normalizePath(pathString) + const foldersInDirectory = await Folder.find({ + workspace: workspaceId, + environment: environment, + parentPath: normalizedPath, + }); + + return foldersInDirectory; +} + +/** + * Returns the parent path of the given path. + * @param path - The input path. + * @returns The parent path string. + */ +export const getParentPath = (path: string) => { + const normalizedPath = normalizePath(path); + const folderParts = normalizedPath.split('/').filter(part => part !== ''); + + let folderParent = ROOT_FOLDER_PATH; + if (folderParts.length > 1) { + folderParent = ROOT_FOLDER_PATH + folderParts.slice(0, folderParts.length - 1).join('/'); + } + + return folderParent; +} + +export const validateFolderName = (folderName: string) => { + const validNameRegex = /^[a-zA-Z0-9-_]+$/; + return validNameRegex.test(folderName); +} \ No newline at end of file From a946031d6f673b291de2b5e76b5754b031d77778 Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Tue, 25 Apr 2023 17:14:39 -0700 Subject: [PATCH 15/16] fix loading animation --- frontend/src/pages/dashboard/[id].tsx | 2 -- frontend/src/views/DashboardPage/DashboardEnvOverview.tsx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/pages/dashboard/[id].tsx b/frontend/src/pages/dashboard/[id].tsx index 418c038f5..449182ed8 100644 --- a/frontend/src/pages/dashboard/[id].tsx +++ b/frontend/src/pages/dashboard/[id].tsx @@ -803,8 +803,6 @@ export default function Dashboard() { isReadDenied: false }; - console.log(124, envSlug, selectedWorkspaceEnv) - if (selectedWorkspaceEnv) { if (snapshotData) setSelectedSnapshotEnv(selectedWorkspaceEnv); else setSelectedEnv(selectedWorkspaceEnv); diff --git a/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx b/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx index b71e0118f..a2a2ea624 100644 --- a/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx +++ b/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx @@ -125,7 +125,7 @@ export const DashboardEnvOverview = ({onEnvChange}: {onEnvChange: any;}) => { if (isSecretsLoading || isEnvListLoading) { return ( -
+
loading animation
); From 7a3456ca1dc804ab2dbff88c089cf2e2e46c0c47 Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Tue, 25 Apr 2023 19:25:31 -0700 Subject: [PATCH 16/16] scrolling fix --- frontend/src/views/DashboardPage/DashboardEnvOverview.tsx | 4 ++-- .../components/EnvComparisonRow/EnvComparisonRow.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx b/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx index a2a2ea624..f4efa8583 100644 --- a/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx +++ b/frontend/src/views/DashboardPage/DashboardEnvOverview.tsx @@ -234,14 +234,14 @@ export const DashboardEnvOverview = ({onEnvChange}: {onEnvChange: any;}) => {
*/} -
+
0
0
{userAvailableEnvs?.map(env => { - return
+ return