Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
requested changes
Daniel Hougaard835b2fba9c7b
diff --git a/.github/workflows/release_docker_gateway.yaml b/.github/workflows/release_docker_gateway.yamlindex 666b2c46c8..da1e105e3e 100644--- a/.github/workflows/release_docker_gateway.yaml+++ b/.github/workflows/release_docker_gateway.yaml@@ -6,7 +6,6 @@ on:permissions:contents: write- pull-requests: writejobs:release-image:@@ -18,7 +17,7 @@ jobs:run: echo "::set-output name=version::${GITHUB_REF_NAME#infisical-gateway/}"- name: Checkout code- uses: actions/checkout@v2+ uses: actions/checkout@v4- name: 🔧 Set up QEMUuses: docker/setup-qemu-action@v1diff --git a/.github/workflows/release_helm_gateway.yaml b/.github/workflows/release_helm_gateway.yamlindex 466849a2d5..1b067bd737 100644--- a/.github/workflows/release_helm_gateway.yaml+++ b/.github/workflows/release_helm_gateway.yaml@@ -8,7 +8,7 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v2+ uses: actions/checkout@v4- name: Install Helmuses: azure/setup-helm@v3diff --git a/Dockerfile.gateway b/Dockerfile.gatewayindex dd4b3f0fea..24c03e3e00 100644--- a/Dockerfile.gateway+++ b/Dockerfile.gateway@@ -7,7 +7,7 @@ COPY ./cli .RUN go build -o infisical-cli .-FROM alpine:latest+FROM alpine:3.19ENV TOKEN=""ENV INFISICAL_API_URL="https://app.infisical.com"diff --git a/helm-charts/infisical-gateway/templates/deployment.yaml b/helm-charts/infisical-gateway/templates/deployment.yamlindex 99b107ef5b..636e88d35b 100644--- a/helm-charts/infisical-gateway/templates/deployment.yaml+++ b/helm-charts/infisical-gateway/templates/deployment.yaml@@ -37,11 +37,9 @@ spec:{{- end }}image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"imagePullPolicy: {{ .Values.image.pullPolicy }}- env:- {{- range $key, $value := .Values.env }}- - name: {{ $key }}- value: {{ $value | quote }}- {{- end }}+ envFrom:+ - secretRef:+ name: {{ .Values.secret.name }}ports:- name: httpcontainerPort: {{ .Values.service.port }}diff --git a/helm-charts/infisical-gateway/templates/secret.yaml b/helm-charts/infisical-gateway/templates/secret.yamlnew file mode 100644index 0000000000..f186b8ec4c--- /dev/null+++ b/helm-charts/infisical-gateway/templates/secret.yaml@@ -0,0 +1,13 @@+{{- if .Values.secret.create -}}+apiVersion: v1+kind: Secret+metadata:+ name: {{ .Values.secret.name }}+ labels:+ {{- include "infisical-gateway.labels" . | nindent 4 }}+type: Opaque+data:+ {{- range $key, $value := .Values.secret.data }}+ {{ $key }}: {{ $value | b64enc }}+ {{- end }}+{{- end }}\ No newline at end of filediff --git a/helm-charts/infisical-gateway/values.yaml b/helm-charts/infisical-gateway/values.yamlindex e2bb8e9adf..bb63a82a8c 100644--- a/helm-charts/infisical-gateway/values.yaml+++ b/helm-charts/infisical-gateway/values.yaml@@ -1,16 +1,22 @@image:repository: infisical/infisical-gatewaypullPolicy: IfNotPresent- tag: "latest"+ tag: "v0.0.1"-# Environment variables for the gateway-env:- TOKEN: ""- INFISICAL_API_URL: "https://app.infisical.com/api"+secret:+ # create a new secret (if true) or use existing (if false)+ create: true+ # name of the secret to use/create+ name: "infisical-gateway-secrets"++ # Secret data (only used if create: true)+ data:+ TOKEN: ""+ INFISICAL_API_URL: "https://app.infisical.com"resources:limits:- cpu: 100m+ cpu: 500mmemory: 128Mirequests:cpu: 100m@@ -28,8 +34,12 @@ serviceAccount:podAnnotations: {}podLabels: {}-podSecurityContext: {}-securityContext: {}+podSecurityContext:+ runAsNonRoot: true++securityContext:+ runAsNonRoot: true+affinity: {}tolerations: {}nodeSelector: {}