diff --git a/.github/reusable-steps/publish-test-report/action.yaml b/.github/reusable-steps/publish-test-report/action.yaml index 29f898415c..f27458959a 100644 --- a/.github/reusable-steps/publish-test-report/action.yaml +++ b/.github/reusable-steps/publish-test-report/action.yaml @@ -1,10 +1,9 @@ name: Run Publish Tests Report description: Publishes tests report to github runs: - using: composite + using: "composite" steps: - name: Publish Test Report - shell: bash uses: ctrf-io/github-test-reporter@024bc4b64d997ca9da86833c6b9548c55c620e40 # v1 with: report-path: './tools/automated-tests/testReport.json' diff --git a/.github/workflows/event-gateway-tests.yaml b/.github/workflows/event-gateway-tests.yaml index c0ea56ddff..d2602fab08 100644 --- a/.github/workflows/event-gateway-tests.yaml +++ b/.github/workflows/event-gateway-tests.yaml @@ -39,6 +39,12 @@ jobs: - name: Generate instruction files uses: './.github/reusable-steps/generate-instruction-files' + - name: Download Kong License + uses: Kong/kong-license@master + id: getLicense + with: + op-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + - name: Run tests working-directory: tools/automated-tests shell: bash diff --git a/app/_how-tos/encrypt-kafka-messages-with-event-gateway.md b/app/_how-tos/encrypt-kafka-messages-with-event-gateway.md index 6bfd65a68c..07ce73f742 100644 --- a/app/_how-tos/encrypt-kafka-messages-with-event-gateway.md +++ b/app/_how-tos/encrypt-kafka-messages-with-event-gateway.md @@ -188,13 +188,11 @@ In production, we recommend using [SNI routing](/event-gateway/architecture/#hos Use OpenSSL to generate the key that will be used to encrypt and decrypt messages: -{% validation custom-command %} -command: | - export MY_KEY=$(openssl rand -base64 32) -expected: - return_code: 0 -render_output: false -{% endvalidation %} + +{% env_variables %} +MY_KEY: $(openssl rand -base64 32) +{% endenv_variables %} + ## Add a static key @@ -292,6 +290,7 @@ Now let's verify that the message was encrypted, by consuming the message direct command: | kafkactl -C kafkactl.yaml --context direct consume my-test-topic --exit --output json --from-beginning --print-headers expected: + message: '"kong/enc": "\u0000\u0001\u0000-static://' return_code: 0 render_output: false {% endvalidation %} diff --git a/app/_includes/how-tos/validations/env-variables/index.html b/app/_includes/how-tos/validations/env-variables/index.html index 6d7fc2372e..1ffd565fcf 100644 --- a/app/_includes/how-tos/validations/env-variables/index.html +++ b/app/_includes/how-tos/validations/env-variables/index.html @@ -1,6 +1,10 @@ +{% if page.works_on contains 'on-prem' %}