diff --git a/.github/workflows/build-branch.yml b/.github/workflows/build-branch.yml index 7270213..d0aea6d 100644 --- a/.github/workflows/build-branch.yml +++ b/.github/workflows/build-branch.yml @@ -10,4 +10,6 @@ on: jobs: branch: uses: onecx/ci-quarkus/.github/workflows/build-branch.yml@v1 - secrets: inherit \ No newline at end of file + secrets: inherit + with: + native: true \ No newline at end of file diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index acff155..dcc442b 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -6,4 +6,6 @@ on: jobs: pr: uses: onecx/ci-quarkus/.github/workflows/build-pr.yml@v1 - secrets: inherit \ No newline at end of file + secrets: inherit + with: + native: true \ No newline at end of file diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index b04a59a..26d536a 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -6,4 +6,6 @@ on: jobs: release: uses: onecx/ci-quarkus/.github/workflows/build-release.yml@v1 - secrets: inherit \ No newline at end of file + secrets: inherit + with: + native: true \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8bc82fa..4a3df72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,4 +12,5 @@ jobs: uses: onecx/ci-quarkus/.github/workflows/build.yml@v1 secrets: inherit with: + native: true helmEventTargetRepository: onecx/onecx-welcome \ No newline at end of file diff --git a/src/main/helm/values.yaml b/src/main/helm/values.yaml index 2e89fae..e2f0fdb 100644 --- a/src/main/helm/values.yaml +++ b/src/main/helm/values.yaml @@ -8,7 +8,7 @@ app: enabled: true spec: permissions: - welcome: + image: read: permission on all GET requests and POST search write: permission on PUT, POST, PATCH requests, where objects are saved or updated delete: permission on all DELETE requests \ No newline at end of file diff --git a/src/main/openapi/onecx-welcome-bff.yaml b/src/main/openapi/onecx-welcome-bff.yaml index 56781a8..022cef3 100644 --- a/src/main/openapi/onecx-welcome-bff.yaml +++ b/src/main/openapi/onecx-welcome-bff.yaml @@ -18,7 +18,7 @@ paths: get: x-onecx: permissions: - welcome: + image: - read tags: - imagesInternal @@ -38,7 +38,7 @@ paths: put: x-onecx: permissions: - welcome: + image: - write tags: - imagesInternal @@ -68,7 +68,7 @@ paths: delete: x-onecx: permissions: - welcome: + image: - delete tags: - imagesInternal @@ -85,7 +85,7 @@ paths: post: x-onecx: permissions: - welcome: + image: - write tags: - imagesInternal @@ -113,7 +113,7 @@ paths: get: x-onecx: permissions: - welcome: + image: - read tags: - imagesInternal @@ -132,7 +132,7 @@ paths: post: x-onecx: permissions: - welcome: + image: - write tags: - imagesInternal @@ -157,7 +157,7 @@ paths: post: x-onecx: permissions: - welcome: + image: - write tags: - imagesInternal @@ -194,7 +194,7 @@ paths: get: x-onecx: permissions: - welcome: + image: - read tags: - imagesInternal @@ -214,7 +214,7 @@ paths: put: x-onecx: permissions: - welcome: + image: - write tags: - imagesInternal diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 34f5eff..465f26c 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -30,7 +30,7 @@ quarkus.openapi-generator.codegen.spec.onecx_welcome_internal_yaml.base-package= quarkus.openapi-generator.codegen.spec.onecx_welcome_internal_yaml.return-response=true quarkus.openapi-generator.codegen.spec.onecx_welcome_internal_yaml.additional-api-type-annotations=@org.eclipse.microprofile.rest.client.annotation.RegisterClientHeaders; quarkus.openapi-generator.codegen.spec.onecx_welcome_internal_yaml.type-mappings.File=byte[] - +quarkus.openapi-generator.codegen.spec.onecx_welcome_internal_yaml.additional-model-type-annotations=@io.quarkus.runtime.annotations.RegisterForReflection; quarkus.openapi-generator.codegen.input-base-dir=target/tmp/openapi # INTEGRATION TEST diff --git a/src/test/resources/mockserver/permissions.json b/src/test/resources/mockserver/permissions.json index f1e27f5..9901698 100644 --- a/src/test/resources/mockserver/permissions.json +++ b/src/test/resources/mockserver/permissions.json @@ -13,7 +13,7 @@ "json": { "appId": "onecx-welcome-bff", "permissions": { - "welcome": ["read", "write", "delete"], + "image": ["read", "write", "delete"], "permissions": ["admin-write","admin-read"] } }, @@ -35,7 +35,7 @@ "json": { "appId": "onecx-welcome-bff", "permissions": { - "welcome": ["read"], + "image": ["read"], "permissions": ["admin-write","admin-read"] } },