From e4c7a56aeb16042be0fcdbe066e5fd64950bd8d4 Mon Sep 17 00:00:00 2001 From: Sahil Aggarwal Date: Tue, 2 Apr 2024 15:30:19 +0200 Subject: [PATCH 1/2] kics findings fixed --- CHANGELOG.md | 6 ++++++ .../src/main/resources/static/access-control-openapi.yaml | 1 + backend/src/main/resources/static/aas-registry-openapi.yaml | 1 + 3 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c39a0ef8..a933c9fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.4.2 +### Added +## fixed +- KICS findings fixed + + ## 0.4.1 ### Added - Added API POST lookup/shellsByAssetLink to retrieve shell ids without base64 encryption. diff --git a/access-control-service-sql-impl/src/main/resources/static/access-control-openapi.yaml b/access-control-service-sql-impl/src/main/resources/static/access-control-openapi.yaml index bf7f8498..6af0b7e4 100644 --- a/access-control-service-sql-impl/src/main/resources/static/access-control-openapi.yaml +++ b/access-control-service-sql-impl/src/main/resources/static/access-control-openapi.yaml @@ -73,6 +73,7 @@ paths: properties: items: type: array + maxItems: 10000 items: $ref: './access-control-openapi_schemas.yaml#/schemas/ReadUpdateAccessRule' required: diff --git a/backend/src/main/resources/static/aas-registry-openapi.yaml b/backend/src/main/resources/static/aas-registry-openapi.yaml index caafc23e..62e2bbba 100644 --- a/backend/src/main/resources/static/aas-registry-openapi.yaml +++ b/backend/src/main/resources/static/aas-registry-openapi.yaml @@ -791,6 +791,7 @@ paths: properties: result: type: array + maxItems: 10000 items: type: string '400': From 5748e8d8c25c3a32f809536bb4f62d3f29810d92 Mon Sep 17 00:00:00 2001 From: Sahil Aggarwal Date: Tue, 2 Apr 2024 15:46:31 +0200 Subject: [PATCH 2/2] kics findings fixed --- backend/src/main/resources/static/aas-registry-openapi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/resources/static/aas-registry-openapi.yaml b/backend/src/main/resources/static/aas-registry-openapi.yaml index 62e2bbba..7a2aa935 100644 --- a/backend/src/main/resources/static/aas-registry-openapi.yaml +++ b/backend/src/main/resources/static/aas-registry-openapi.yaml @@ -791,7 +791,7 @@ paths: properties: result: type: array - maxItems: 10000 + maxItems: 1000 items: type: string '400':