Skip to content

Commit 22be89d

Browse files
authored
Merge branch 'main' into feature/refactor-maven-profiles
2 parents 135a11d + 3121341 commit 22be89d

File tree

161 files changed

+2008
-953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+2008
-953
lines changed
Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# This is a compose file designed for arm64/Apple Silicon systems
2-
# To adapt this to x86 please find and replace ".arm64" with empty
3-
4-
# ARM64 supported images for kafka can be found here
5-
# https://hub.docker.com/r/confluentinc/cp-kafka/tags?page=1&name=arm64
6-
---
71
version: '3.8'
82
name: "kafbat-ui-dev"
93

@@ -32,8 +26,7 @@ services:
3226
KAFKA_CLUSTERS_0_AUDIT_CONSOLEAUDITENABLED: 'true'
3327

3428
kafka0:
35-
image: confluentinc/cp-kafka:7.8.0.arm64
36-
user: "0:0"
29+
image: confluentinc/cp-kafka:7.8.0
3730
hostname: kafka0
3831
container_name: kafka0
3932
ports:
@@ -60,7 +53,7 @@ services:
6053
CLUSTER_ID: 'MkU3OEVBNTcwNTJENDM2Qk'
6154

6255
schema-registry0:
63-
image: confluentinc/cp-schema-registry:7.8.0.arm64
56+
image: confluentinc/cp-schema-registry:7.8.0
6457
ports:
6558
- 8085:8085
6659
depends_on:
@@ -76,7 +69,7 @@ services:
7669
SCHEMA_REGISTRY_KAFKASTORE_TOPIC: _schemas
7770

7871
kafka-connect0:
79-
image: confluentinc/cp-kafka-connect:7.8.0.arm64
72+
image: confluentinc/cp-kafka-connect:7.8.0
8073
ports:
8174
- 8083:8083
8275
depends_on:
@@ -101,7 +94,7 @@ services:
10194
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components,/usr/local/share/kafka/plugins,/usr/share/filestream-connectors"
10295

10396
ksqldb0:
104-
image: confluentinc/cp-ksqldb-server:7.8.0.arm64
97+
image: confluentinc/cp-ksqldb-server:7.8.0
10598
depends_on:
10699
- kafka0
107100
- kafka-connect0
@@ -119,7 +112,7 @@ services:
119112
KSQL_CACHE_MAX_BYTES_BUFFERING: 0
120113

121114
kafka-init-topics:
122-
image: confluentinc/cp-kafka:7.8.0.arm64
115+
image: confluentinc/cp-kafka:7.8.0
123116
volumes:
124117
- ../documentation/compose/data/message.json:/data/message.json
125118
depends_on:

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
github: [kafbat]
2+
open_collective: kafka-ui

.github/workflows/backend_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
jobs:
22-
build:
22+
build-and-test:
2323
uses: ./.github/workflows/backend_tests.yml
2424
with:
2525
event_name: ${{ github.event_name }}

.github/workflows/backend_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
cancel-in-progress: true
2121

2222
jobs:
23-
build:
23+
build-and-test:
2424
uses: ./.github/workflows/backend_tests.yml
2525
with:
2626
event_name: ${{ github.event_name }}

.github/workflows/cve_checks.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: "Infra: CVE checks"
22
on:
3+
pull_request:
4+
types: [ "opened", "reopened", "synchronize" ]
5+
push:
6+
branches: [ "main" ]
37
workflow_dispatch:
48
schedule:
59
# * is a special character in YAML so you have to quote this string
@@ -9,7 +13,8 @@ permissions:
913
contents: read
1014

1115
jobs:
12-
build-and-test:
16+
17+
check-cves:
1318
runs-on: ubuntu-latest
1419

1520
steps:
@@ -62,8 +67,17 @@ jobs:
6267
cache-to: type=local,dest=/tmp/.buildx-cache
6368

6469
- name: Run CVE checks
65-
uses: aquasecurity/trivy-action@0.19.0
70+
uses: aquasecurity/trivy-action@0.29.0
6671
with:
6772
image-ref: "ghcr.io/kafbat/kafka-ui:${{ steps.build.outputs.version }}"
6873
format: "table"
6974
exit-code: "1"
75+
76+
notify:
77+
needs: check-cves
78+
if: ${{ always() && needs.build-and-test.result == 'failure' && github.event_name == 'schedule' }}
79+
uses: ./.github/workflows/infra_discord_hook.yml
80+
with:
81+
message: "Attention! CVE checks run failed! Please fix them CVEs :("
82+
secrets:
83+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL_CVE }}

.github/workflows/docker_publish.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
registry: [ 'docker.io', 'ghcr.io', 'ecr' ]
23+
registry: [ 'docker.io', 'ghcr.io', 'public.ecr.aws' ]
2424

2525
runs-on: ubuntu-latest
2626
steps:
@@ -31,7 +31,8 @@ jobs:
3131
name: image
3232
path: /tmp
3333

34-
# setup containerd to preserve provenance attestations :https://docs.docker.com/build/attestations/#creating-attestations
34+
# setup containerd to preserve provenance attestations:
35+
# https://docs.docker.com/build/attestations/#creating-attestations
3536
- name: Setup docker with containerd
3637
uses: crazy-max/ghaction-setup-docker@v3
3738
with:
@@ -63,33 +64,33 @@ jobs:
6364
password: ${{ secrets.GITHUB_TOKEN }}
6465

6566
- name: Configure AWS credentials
66-
if: matrix.registry == 'ecr'
67+
if: matrix.registry == 'public.ecr.aws'
6768
uses: aws-actions/configure-aws-credentials@v4
6869
with:
6970
aws-region: us-east-1 # This region only for public ECR
7071
role-to-assume: ${{ secrets.AWS_ROLE }}
7172

7273
- name: Login to public ECR
73-
if: matrix.registry == 'ecr'
74+
if: matrix.registry == 'public.ecr.aws'
7475
id: login-ecr-public
7576
uses: aws-actions/amazon-ecr-login@v2
7677
with:
7778
registry-type: public
7879

79-
- name: define env vars
80+
- name: Define env vars for container registry URL
8081
run: |
81-
if [ ${{matrix.registry }} == 'docker.io' ]; then
82-
echo "REGISTRY=${{ matrix.registry }}" >> $GITHUB_ENV
83-
echo "REPOSITORY=${{ github.repository }}" >> $GITHUB_ENV
84-
elif [ ${{ matrix.registry }} == 'ghcr.io' ]; then
85-
echo "REGISTRY=${{ matrix.registry }}" >> $GITHUB_ENV
86-
echo "REPOSITORY=${{ github.repository }}" >> $GITHUB_ENV
87-
elif [ ${{ matrix.registry }} == 'ecr' ]; then
82+
if [ ${{ matrix.registry }} == 'public.ecr.aws' ]; then
83+
# vars.ECR_REGISTRY value is expected to be of the `public.ecr.aws/<public_ecr_id>` form
84+
# The `public_ecr_id` must be a *default* alias associated with public regsitry (rather
85+
# than a custom alias)
8886
echo "REGISTRY=${{ vars.ECR_REGISTRY }}" >> $GITHUB_ENV
87+
# Trim GH Org name so that resulting Public ECR URL has no duplicate org name
88+
# Public ECR default alias: public.ecr.aws/<public_ecr_id>/kafka-ui
89+
# Public ECR custom alias: public.ecr.aws/kafbat/kafka-ui
90+
echo "REPOSITORY=$(basename ${{ github.repository }})" >> $GITHUB_ENV
91+
else # this covers the case of docker.io and ghcr.io
92+
echo "REGISTRY=${{ matrix.registry }}" >> $GITHUB_ENV
8993
echo "REPOSITORY=${{ github.repository }}" >> $GITHUB_ENV
90-
else
91-
echo "REGISTRY=" >> $GITHUB_ENV
92-
echo "REPOSITORY=notworking" >> $GITHUB_ENV
9394
fi
9495
9596
- name: Push images to ${{ matrix.registry }}

.github/workflows/frontend_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
build:
18+
build-and-test:
1919
uses: ./.github/workflows/frontend_tests.yml

.github/workflows/frontend_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
jobs:
19-
build:
19+
build-and-test:
2020
uses: ./.github/workflows/frontend_tests.yml

.github/workflows/frontend_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323

2424
- uses: pnpm/[email protected]
2525
with:
26-
version: 9.15.0
26+
version: 9.15.4
2727

2828
- name: Install node
2929
uses: actions/[email protected]
3030
with:
31-
node-version: "18.17.1"
31+
node-version: "22.12.0"
3232
cache: "pnpm"
3333
cache-dependency-path: "./frontend/pnpm-lock.yaml"
3434

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'Discord hook'
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
message:
7+
description: 'Message text'
8+
required: true
9+
type: string
10+
secrets:
11+
DISCORD_WEBHOOK_URL:
12+
required: true
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
19+
hook:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Notify Discord on Failure
23+
uses: Ilshidur/[email protected]
24+
with:
25+
args: ${{ inputs.message }}
26+
env:
27+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}

0 commit comments

Comments
 (0)