From 4cd203c194f437e281a481755007602aaf5c0a24 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 17 Jul 2023 19:56:07 -0400 Subject: [PATCH] add ss-webhook to values file k8-infisical --- backend/src/index.ts | 2 +- helm-charts/infisical/Chart.yaml | 2 +- helm-charts/infisical/templates/ingress.yaml | 7 +++ helm-charts/infisical/values.yaml | 52 -------------------- 4 files changed, 9 insertions(+), 54 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 0d923fd85..251340526 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -105,7 +105,7 @@ const main = async () => { smee.start() } - app.use(createNodeMiddleware(GithubSecretScanningService, { probot, webhooksPath: "api/ss-webhook" })); // secret scanning webhook + app.use(createNodeMiddleware(GithubSecretScanningService, { probot, webhooksPath: "/ss-webhook" })); // secret scanning webhook } if ((await getNodeEnv()) === "production") { diff --git a/helm-charts/infisical/Chart.yaml b/helm-charts/infisical/Chart.yaml index 01d6524d1..6f7f359ba 100644 --- a/helm-charts/infisical/Chart.yaml +++ b/helm-charts/infisical/Chart.yaml @@ -7,7 +7,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.0 +version: 0.2.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/helm-charts/infisical/templates/ingress.yaml b/helm-charts/infisical/templates/ingress.yaml index a675fa2ff..659948510 100644 --- a/helm-charts/infisical/templates/ingress.yaml +++ b/helm-charts/infisical/templates/ingress.yaml @@ -44,6 +44,13 @@ spec: name: {{ include "infisical.backend.fullname" . }} port: number: 4000 + - path: /ss-webhook + pathType: Exact + backend: + service: + name: {{ include "infisical.backend.fullname" . }} + port: + number: 4000 {{- if $ingress.hostName }} host: {{ $ingress.hostName }} {{- end }} diff --git a/helm-charts/infisical/values.yaml b/helm-charts/infisical/values.yaml index d346dca86..a65f59223 100644 --- a/helm-charts/infisical/values.yaml +++ b/helm-charts/infisical/values.yaml @@ -169,53 +169,6 @@ backendEnvironmentVariables: ## MONGO_URL: "" -secretScanningGitApp: - ## @param backend.enabled Enable git scanning app - ## - enabled: false - ## @param backend.name Backend name - ## - name: secret-scanning-git-app - ## @param backend.fullnameOverride Backend fullnameOverride - ## - fullnameOverride: "" - ## @param backend.podAnnotations Backend pod annotations - ## - podAnnotations: {} - ## @param backend.deploymentAnnotations Backend deployment annotations - ## - deploymentAnnotations: {} - ## @param backend.replicaCount Backend replica count - ## - replicaCount: 2 - ## Backend image parameters - ## - image: - ## @param backend.image.repository Backend image repository - ## - repository: infisical/staging_deployment_secret-scanning-git-app - ## @param backend.image.tag Backend image tag - ## - tag: "latest" - ## @param backend.image.pullPolicy Backend image pullPolicy - ## - pullPolicy: IfNotPresent - ## @param backend.kubeSecretRef Backend secret resource reference name (containing required [backend configuration variables](https://infisical.com/docs/self-hosting/configuration/envars)) - ## - kubeSecretRef: "" - ## Backend service - ## - service: - ## @param backend.service.annotations Backend service annotations - ## - annotations: {} - ## @param backend.service.type Backend service type - ## - type: ClusterIP - ## @param backend.service.nodePort Backend service nodePort (used if above type is `NodePort`) - ## - nodePort: "" - ## @section MongoDB(®) parameters ## Documentation : https://github.com/bitnami/charts/blob/main/bitnami/mongodb/values.yaml ## @@ -374,11 +327,6 @@ ingress: backend: path: /api pathType: Prefix - ## @skip ingress.backend - ## - secretScanningGitApp: - path: /git-app-api - pathType: Prefix ## @param ingress.tls Ingress TLS hosts (matching above hostName) ## Replace with your own domain ##