From 867a71c1cd00a592b6d85fd49f193c169baad644 Mon Sep 17 00:00:00 2001 From: Mathias Brunkow Moser Date: Mon, 6 Feb 2023 12:33:30 +0100 Subject: [PATCH] updated kics workflow --- .github/workflows/kics.yml | 2 +- charts/consumer-backend/templates/deployment.yaml | 2 ++ .../openapi/product-passport-consumer-backend.json | 10 +++++----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/kics.yml b/.github/workflows/kics.yml index 7d8a8384..d2af959e 100644 --- a/.github/workflows/kics.yml +++ b/.github/workflows/kics.yml @@ -16,7 +16,7 @@ name: "KICS" on: push: - branches: [main, master] + branches: [ main ] # pull_request: # The branches below must be a subset of the branches above # branches: [main, master] diff --git a/charts/consumer-backend/templates/deployment.yaml b/charts/consumer-backend/templates/deployment.yaml index 2e51ac1f..9b106e79 100644 --- a/charts/consumer-backend/templates/deployment.yaml +++ b/charts/consumer-backend/templates/deployment.yaml @@ -37,6 +37,8 @@ spec: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + securityContext: + allowPrivilegeEscalation: false env: - name: "client.id" valueFrom: diff --git a/consumer-backend/productpass/openapi/product-passport-consumer-backend.json b/consumer-backend/productpass/openapi/product-passport-consumer-backend.json index 02cb4820..5d78b932 100644 --- a/consumer-backend/productpass/openapi/product-passport-consumer-backend.json +++ b/consumer-backend/productpass/openapi/product-passport-consumer-backend.json @@ -207,7 +207,7 @@ }, "security": [ { - "API-Key": [] + "API-Key": null } ] } @@ -262,7 +262,7 @@ }, "security": [ { - "API-Key": [] + "API-Key": null } ] } @@ -298,7 +298,7 @@ }, "security": [ { - "API-Key": [] + "API-Key": null } ] } @@ -374,7 +374,7 @@ }, "security": [ { - "API-Key": [] + "API-Key": null } ] } @@ -531,7 +531,7 @@ }, "security": [ { - "API-Key": [] + "API-Key": null } ], "components": {