From ce28151952c7e4af17977bf6c3300950255bd589 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Mon, 29 May 2023 14:21:16 +0300 Subject: [PATCH 1/9] Update posthog-js version --- 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 3a04a38a5..eba635446 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,5 +1,5 @@ { - "name": "npm-proj-1684411062139-0.5362546945149991xa7WAK", + "name": "frontend", "lockfileVersion": 2, "requires": true, "packages": { @@ -57,7 +57,7 @@ "lottie-react": "^2.4.0", "markdown-it": "^13.0.1", "next": "^12.3.4", - "posthog-js": "^1.54.0", + "posthog-js": "^1.58.0", "query-string": "^7.1.3", "react": "^17.0.2", "react-beautiful-dnd": "^13.1.1", @@ -17460,9 +17460,9 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" }, "node_modules/posthog-js": { - "version": "1.54.0", - "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.54.0.tgz", - "integrity": "sha512-5kT9zvmBrCshFkWqOrYxk13Y/2j7vtV0sF3XmQa5QDD0bVM1KGU4blyZySBt8SAcO1z3WsKvG4bFGxS7TPqjjw==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.58.0.tgz", + "integrity": "sha512-PpH/MwjwV6UHDsv78xFvteEWYgY3O/HTKBnotzmkNCDWgsKzNr978B1AKzgtBU2GzBsnwUfuK+u2O6mxRzFSWw==", "dependencies": { "fflate": "^0.4.1", "rrweb-snapshot": "^1.1.14" @@ -34822,9 +34822,9 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" }, "posthog-js": { - "version": "1.54.0", - "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.54.0.tgz", - "integrity": "sha512-5kT9zvmBrCshFkWqOrYxk13Y/2j7vtV0sF3XmQa5QDD0bVM1KGU4blyZySBt8SAcO1z3WsKvG4bFGxS7TPqjjw==", + "version": "1.58.0", + "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.58.0.tgz", + "integrity": "sha512-PpH/MwjwV6UHDsv78xFvteEWYgY3O/HTKBnotzmkNCDWgsKzNr978B1AKzgtBU2GzBsnwUfuK+u2O6mxRzFSWw==", "requires": { "fflate": "^0.4.1", "rrweb-snapshot": "^1.1.14" diff --git a/frontend/package.json b/frontend/package.json index babf3c50d..834a10787 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -64,7 +64,7 @@ "lottie-react": "^2.4.0", "markdown-it": "^13.0.1", "next": "^12.3.4", - "posthog-js": "^1.54.0", + "posthog-js": "^1.58.0", "query-string": "^7.1.3", "react": "^17.0.2", "react-beautiful-dnd": "^13.1.1", From c078fb8bc135435bd59c74ed4e1d88b2bfe7207d Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 29 May 2023 15:56:48 -0400 Subject: [PATCH 2/9] allow user to create new keychain --- cli/packages/util/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/packages/util/vault.go b/cli/packages/util/vault.go index ff45be1ca..899c2fe6d 100644 --- a/cli/packages/util/vault.go +++ b/cli/packages/util/vault.go @@ -33,7 +33,7 @@ func GetKeyRing() (keyring.Keyring, error) { LibSecretCollectionName: KEYRING_SERVICE_NAME, KWalletAppID: KEYRING_SERVICE_NAME, KWalletFolder: KEYRING_SERVICE_NAME, - KeychainName: "login", // default so user will not be prompted + KeychainName: "Infisical", // default so user will not be prompted KeychainTrustApplication: true, WinCredPrefix: KEYRING_SERVICE_NAME, FileDir: fmt.Sprintf("~/%s-file-vault", KEYRING_SERVICE_NAME), From f25715b3c4ef72250d91b4e0dd8751013d19863e Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 29 May 2023 17:36:07 -0400 Subject: [PATCH 3/9] update keychain name --- cli/packages/util/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/packages/util/vault.go b/cli/packages/util/vault.go index 899c2fe6d..3aeb62641 100644 --- a/cli/packages/util/vault.go +++ b/cli/packages/util/vault.go @@ -33,7 +33,7 @@ func GetKeyRing() (keyring.Keyring, error) { LibSecretCollectionName: KEYRING_SERVICE_NAME, KWalletAppID: KEYRING_SERVICE_NAME, KWalletFolder: KEYRING_SERVICE_NAME, - KeychainName: "Infisical", // default so user will not be prompted + KeychainName: "infisical", // default so user will not be prompted KeychainTrustApplication: true, WinCredPrefix: KEYRING_SERVICE_NAME, FileDir: fmt.Sprintf("~/%s-file-vault", KEYRING_SERVICE_NAME), From 8d1f3e930a0c886d91e3ac605d0a1eaf72191c3f Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 29 May 2023 18:08:49 -0400 Subject: [PATCH 4/9] revert keychain name --- cli/packages/util/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/packages/util/vault.go b/cli/packages/util/vault.go index 3aeb62641..ff45be1ca 100644 --- a/cli/packages/util/vault.go +++ b/cli/packages/util/vault.go @@ -33,7 +33,7 @@ func GetKeyRing() (keyring.Keyring, error) { LibSecretCollectionName: KEYRING_SERVICE_NAME, KWalletAppID: KEYRING_SERVICE_NAME, KWalletFolder: KEYRING_SERVICE_NAME, - KeychainName: "infisical", // default so user will not be prompted + KeychainName: "login", // default so user will not be prompted KeychainTrustApplication: true, WinCredPrefix: KEYRING_SERVICE_NAME, FileDir: fmt.Sprintf("~/%s-file-vault", KEYRING_SERVICE_NAME), From f7dbd41431b4f3459161c16667951e6b2005daa4 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 29 May 2023 18:46:04 -0400 Subject: [PATCH 5/9] add prod img publish ste p --- .github/workflows/docker-image.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 87797c5f7..38d32e9b6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -5,7 +5,7 @@ on: - "infisical/v*.*.*" jobs: - backend-image: + gamma-backend-image: name: Build backend image runs-on: ubuntu-latest steps: @@ -28,8 +28,8 @@ jobs: - name: 🐋 Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.GAMMA_DOCKERHUB_TOKEN }} + password: ${{ secrets.GAMMA_DOCKERHUB_USERNAME }} - name: Set up Depot CLI uses: depot/setup-action@v1 - name: 📦 Build backend and export to Docker @@ -62,7 +62,7 @@ jobs: infisical/backend:${{ steps.extract_version.outputs.version }} platforms: linux/amd64,linux/arm64 - frontend-image: + gamma-frontend-image: name: Build frontend image runs-on: ubuntu-latest steps: @@ -79,8 +79,8 @@ jobs: - name: 🐋 Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + username: ${{ secrets.GAMMA_DOCKERHUB_TOKEN }} + password: ${{ secrets.GAMMA_DOCKERHUB_USERNAME }} - name: Set up Depot CLI uses: depot/setup-action@v1 - name: 📦 Build frontend and export to Docker @@ -146,10 +146,15 @@ jobs: - name: Download helm values to file and upgrade gamma deploy run: | wget https://raw.githubusercontent.com/Infisical/infisical/main/.github/values.yaml - helm upgrade infisical infisical-helm-charts/infisical --values values.yaml --recreate-pods + helm upgrade --wait --install infisical infisical-helm-charts/infisical --values values.yaml --recreate-pods if [[ $(helm status infisical) == *"FAILED"* ]]; then echo "Helm upgrade failed" exit 1 else echo "Helm upgrade was successful" fi + prod-image-release: + name: Release prod image + runs-on: ubuntu-latest + needs: [gamma-deployment] + environment: production-docker-img-release From 893c4777fea475e905b97ef8bcfb2feb21a37154 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 29 May 2023 18:49:14 -0400 Subject: [PATCH 6/9] add dummy step --- .github/workflows/docker-image.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 38d32e9b6..1908b3775 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -158,3 +158,6 @@ jobs: runs-on: ubuntu-latest needs: [gamma-deployment] environment: production-docker-img-release + steps: + - name: ☁️ Checkout source + uses: actions/checkout@v3 From 03c65c863594054fde99d85eafc0dce74fc9003f Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 30 May 2023 07:29:31 -0400 Subject: [PATCH 7/9] Revert "add dummy step" This reverts commit 893c4777fea475e905b97ef8bcfb2feb21a37154. --- .github/workflows/docker-image.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1908b3775..38d32e9b6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -158,6 +158,3 @@ jobs: runs-on: ubuntu-latest needs: [gamma-deployment] environment: production-docker-img-release - steps: - - name: ☁️ Checkout source - uses: actions/checkout@v3 From 821385c2f30683ac9cf9724f19d515387cfdef6f Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 30 May 2023 07:29:45 -0400 Subject: [PATCH 8/9] Revert "add prod img publish ste p" This reverts commit f7dbd41431b4f3459161c16667951e6b2005daa4. --- .github/workflows/docker-image.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 38d32e9b6..87797c5f7 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -5,7 +5,7 @@ on: - "infisical/v*.*.*" jobs: - gamma-backend-image: + backend-image: name: Build backend image runs-on: ubuntu-latest steps: @@ -28,8 +28,8 @@ jobs: - name: 🐋 Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.GAMMA_DOCKERHUB_TOKEN }} - password: ${{ secrets.GAMMA_DOCKERHUB_USERNAME }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Depot CLI uses: depot/setup-action@v1 - name: 📦 Build backend and export to Docker @@ -62,7 +62,7 @@ jobs: infisical/backend:${{ steps.extract_version.outputs.version }} platforms: linux/amd64,linux/arm64 - gamma-frontend-image: + frontend-image: name: Build frontend image runs-on: ubuntu-latest steps: @@ -79,8 +79,8 @@ jobs: - name: 🐋 Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.GAMMA_DOCKERHUB_TOKEN }} - password: ${{ secrets.GAMMA_DOCKERHUB_USERNAME }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Depot CLI uses: depot/setup-action@v1 - name: 📦 Build frontend and export to Docker @@ -146,15 +146,10 @@ jobs: - name: Download helm values to file and upgrade gamma deploy run: | wget https://raw.githubusercontent.com/Infisical/infisical/main/.github/values.yaml - helm upgrade --wait --install infisical infisical-helm-charts/infisical --values values.yaml --recreate-pods + helm upgrade infisical infisical-helm-charts/infisical --values values.yaml --recreate-pods if [[ $(helm status infisical) == *"FAILED"* ]]; then echo "Helm upgrade failed" exit 1 else echo "Helm upgrade was successful" fi - prod-image-release: - name: Release prod image - runs-on: ubuntu-latest - needs: [gamma-deployment] - environment: production-docker-img-release From 86f76ebe709b389ca6a92b4797a0900db63b3556 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Tue, 30 May 2023 08:39:43 -0400 Subject: [PATCH 9/9] no default user for selfhosting docs --- docs/self-hosting/deployment-options/aws-ec2.mdx | 4 ++++ docs/self-hosting/deployment-options/docker-compose.mdx | 6 +++++- docs/self-hosting/deployment-options/fly.io.mdx | 3 +++ docs/self-hosting/deployment-options/kubernetes-helm.mdx | 5 ++++- docs/self-hosting/deployment-options/render.mdx | 8 +++++++- .../deployment-options/standalone-infisical.mdx | 6 +++++- 6 files changed, 28 insertions(+), 4 deletions(-) diff --git a/docs/self-hosting/deployment-options/aws-ec2.mdx b/docs/self-hosting/deployment-options/aws-ec2.mdx index e5a3c7750..303df2009 100644 --- a/docs/self-hosting/deployment-options/aws-ec2.mdx +++ b/docs/self-hosting/deployment-options/aws-ec2.mdx @@ -12,6 +12,10 @@ This deployment option will use AWS Cloudformation to auto deploy an instance of - 1 DocumentDB instance - Security groups + +Once installation is complete, you will have to create the first account. No default account is provided. + + \ No newline at end of file diff --git a/docs/self-hosting/deployment-options/docker-compose.mdx b/docs/self-hosting/deployment-options/docker-compose.mdx index 979c1ec47..05ce5fe74 100644 --- a/docs/self-hosting/deployment-options/docker-compose.mdx +++ b/docs/self-hosting/deployment-options/docker-compose.mdx @@ -37,7 +37,7 @@ nano .env Infisical assumes that you have configured HTTPS. If you didn't configure HTTPS, set `HTTPS_ENABLED` to `false` in the .env file to avoid frequent logouts. -## Get the service up and running. +## Get the service up and running ```bash # Start up services in detached mode @@ -45,3 +45,7 @@ docker-compose -f docker-compose.yml up -d ``` Your Infisical installation is complete and should be running on [http://localhost:80](http://localhost:80). Please note that the containers are not exposed to the internet and only bind to the localhost. It's up to you to configure a firewall, SSL certificates, and implement any additional security measures. + + +Once installation is complete, you will have to create the first account. No default account is provided. + \ No newline at end of file diff --git a/docs/self-hosting/deployment-options/fly.io.mdx b/docs/self-hosting/deployment-options/fly.io.mdx index ba6f7880a..4f43c9f46 100644 --- a/docs/self-hosting/deployment-options/fly.io.mdx +++ b/docs/self-hosting/deployment-options/fly.io.mdx @@ -58,3 +58,6 @@ Once done, your very own instance of Infisical should be up and running on Fly.i Please note that this version of Infisical requires at least 250MB of memory to operate smoothly. + +Once installation is complete, you will have to create the first account. No default account is provided. + diff --git a/docs/self-hosting/deployment-options/kubernetes-helm.mdx b/docs/self-hosting/deployment-options/kubernetes-helm.mdx index f523ec6a4..36b3c5213 100644 --- a/docs/self-hosting/deployment-options/kubernetes-helm.mdx +++ b/docs/self-hosting/deployment-options/kubernetes-helm.mdx @@ -213,4 +213,7 @@ helm install infisical-helm-charts/infisical --generate-name --values /path/to/v ## Access Infisical Allow 3-5 minutes for the deployment to complete. Once done, you should now be able to access Infisical on the IP address exposed via Ingress on your load balancer. If you are not sure what the IP address is run `kubectl get ingress` to view the external IP address exposing Infisical. - \ No newline at end of file + + +Once installation is complete, you will have to create the first account. No default account is provided. + \ No newline at end of file diff --git a/docs/self-hosting/deployment-options/render.mdx b/docs/self-hosting/deployment-options/render.mdx index 6c253a874..17faf060a 100644 --- a/docs/self-hosting/deployment-options/render.mdx +++ b/docs/self-hosting/deployment-options/render.mdx @@ -12,4 +12,10 @@ Before you start deployment, you will need to obtain document db connection stri You can create a document db database using services such as [MongoDB](https://www.mongodb.com/), [AWS DocumentDB](https://aws.amazon.com/documentdb/), and others. Once done, click the link below to start deployment. -### **[Deploy to Render](https://render.com/deploy?repo=https://github.com/Infisical/infisical)** \ No newline at end of file +### **[Deploy to Render](https://render.com/deploy?repo=https://github.com/Infisical/infisical)** + +# + + +Once installation is complete, you will have to create the first account. No default account is provided. + \ No newline at end of file diff --git a/docs/self-hosting/deployment-options/standalone-infisical.mdx b/docs/self-hosting/deployment-options/standalone-infisical.mdx index 8974ae4e6..c0c9309a4 100644 --- a/docs/self-hosting/deployment-options/standalone-infisical.mdx +++ b/docs/self-hosting/deployment-options/standalone-infisical.mdx @@ -75,4 +75,8 @@ docker run --name infisical-app --env-file ./.env -p 80:80 infisical/infisical:l This command will create a new container named infisical-app using the Infisical Docker image. It will also load the environment variables from the .env file and map the container's port 80 to the host's port 80. ## Verify the installation: -Once the container is running, open a web browser and navigate to http://localhost:80. That's it! You have successfully installed the Infisical application using a single Docker image. \ No newline at end of file +Once the container is running, open a web browser and navigate to http://localhost:80. That's it! You have successfully installed the Infisical application using a single Docker image. + + +Once installation is complete, you will have to create the first account. No default account is provided. + \ No newline at end of file