Skip to content

Commit 76b31c8

Browse files
authored
feat: cluster TLS root certificate authentication [TCE-52] (#54)
* feat: integrate cluster TLS root cert authentication * chore: create test for TLS root cert authentication * chore(ci): setup TLS root certificates test * fix: run `cargo fmt` * fix(ci): only run `distribution` test initially * fix(ci): working directory for root-ca test * fix(ci): set up `SSH_AUTH_SOCK` correctly * fix(tests): use a different address block for root-ca brokers * fix(tests): use docker-compose down, not stop * fix(tests): use nvm script before `npm test root-ca` * chore: `Cargo.{lock, toml}` fixes after rebase * chore: update TCE
1 parent 6436c16 commit 76b31c8

40 files changed

+1315
-482
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ jobs:
105105
runs-on: tashi-arc-dind
106106
env:
107107
NODE_VERSION: v20.11.0
108-
SSH_AUTH_SOCK: $SSH_AUTH_SOCK
109108
defaults:
110109
run:
111110
working-directory: tests
@@ -117,11 +116,12 @@ jobs:
117116
- name: Add TCE Deploy Key
118117
run: |
119118
mkdir -p ~/.ssh
120-
ssh-agent -a ${SSH_AUTH_SOCK}
119+
eval $(ssh-agent -s)
121120
ssh-add - <<< "${{ secrets.TASHIBOT_SSH_KEY }}"
121+
echo "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" >> $GITHUB_ENV
122122
123123
- name: Build and run the message queue brokers
124-
run: ./run.sh
124+
run: docker compose up --build -d
125125

126126
# actions/setup-node@v4 doesn't seem to work, I didn't investigate.
127127
- name: Install Node and NPM
@@ -137,7 +137,7 @@ jobs:
137137
. ~/.nvm/nvm.sh
138138
nvm use ${NODE_VERSION}
139139
npm i
140-
npm test
140+
npm test distribution
141141
142142
- name: Get Service Logs
143143
if: ${{ failure () }}
@@ -152,7 +152,26 @@ jobs:
152152

153153
- name: Stop the message queue
154154
if: ${{ always() }}
155-
run: docker compose stop
155+
run: docker compose down
156+
157+
- name: Run TLS Root Certificates configuration
158+
working-directory: tests/foxmq-root-ca.d
159+
run: docker compose up --build -d
160+
161+
- name: Run TLS Root Certificates test
162+
run: |
163+
. ~/.nvm/nvm.sh
164+
npm test root-ca
165+
166+
- name: Get Service Logs
167+
if: ${{ failure () }}
168+
working-directory: tests/foxmq-root-ca.d
169+
run: docker compose logs
170+
171+
- name: Stop the message queue
172+
if: ${{ always() }}
173+
working-directory: tests/foxmq-root-ca.d
174+
run: docker compose down
156175

157176
tmq-build-macos:
158177
name: Release Build - macOS

0 commit comments

Comments
 (0)