Skip to content

Commit 1da7211

Browse files
author
morvencao
committed
add certificate rotation e2e test.
Signed-off-by: morvencao <lcao@redhat.com>
1 parent 76ac7dc commit 1da7211

5 files changed

Lines changed: 397 additions & 66 deletions

File tree

templates/agent-template.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ parameters:
6363
- name: MQTT_ROOT_CERT
6464
description: Root Certificate for the mqtt broker.
6565

66-
- name: MQTT_CLENT_CERT
66+
- name: MQTT_CLIENT_CERT
6767
description: Client certificate to access the mqtt broker.
6868

69-
- name: MQTT_CLENT_KEY
69+
- name: MQTT_CLIENT_KEY
7070
description: Client private key to access the mqtt broker.
7171

7272
objects:
@@ -337,8 +337,8 @@ objects:
337337
username: ${MQTT_USER}
338338
password: ${MQTT_PASSWORD}
339339
caFile: ${MQTT_ROOT_CERT}
340-
clientCertFile: ${MQTT_CLENT_CERT}
341-
clientKeyFile: ${MQTT_CLENT_KEY}
340+
clientCertFile: ${MQTT_CLIENT_CERT}
341+
clientKeyFile: ${MQTT_CLIENT_KEY}
342342
topics:
343343
sourceEvents: sources/maestro/consumers/${CONSUMER_NAME}/sourceevents
344344
agentEvents: sources/maestro/consumers/${CONSUMER_NAME}/agentevents

templates/agent-tls-template.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ parameters:
6363
- name: MQTT_ROOT_CERT
6464
description: Root Certificate for the mqtt broker.
6565

66-
- name: MQTT_CLENT_CERT
66+
- name: MQTT_CLIENT_CERT
6767
description: Client certificate to access the mqtt broker.
6868

69-
- name: MQTT_CLENT_KEY
69+
- name: MQTT_CLIENT_KEY
7070
description: Client private key to access the mqtt broker.
7171

7272
objects:
@@ -351,8 +351,8 @@ objects:
351351
username: ${MQTT_USER}
352352
password: ${MQTT_PASSWORD}
353353
caFile: ${MQTT_ROOT_CERT}
354-
clientCertFile: ${MQTT_CLENT_CERT}
355-
clientKeyFile: ${MQTT_CLENT_KEY}
354+
clientCertFile: ${MQTT_CLIENT_CERT}
355+
clientKeyFile: ${MQTT_CLIENT_KEY}
356356
topics:
357357
sourceEvents: sources/maestro/consumers/${CONSUMER_NAME}/sourceevents
358358
agentEvents: sources/maestro/consumers/${CONSUMER_NAME}/agentevents

templates/mqtt-tls-template.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -41,35 +41,7 @@ objects:
4141
type: ClusterIP
4242
status:
4343
loadBalancer: {}
44-
45-
- apiVersion: v1
46-
kind: Service
47-
metadata:
48-
name: ${MQTT_BROKER_NAME}-server
49-
spec:
50-
ports:
51-
- name: mosquitto
52-
port: 1883
53-
protocol: TCP
54-
targetPort: 1883
55-
selector:
56-
name: ${MQTT_BROKER_NAME}
57-
type: ClusterIP
58-
59-
- apiVersion: v1
60-
kind: Service
61-
metadata:
62-
name: ${MQTT_BROKER_NAME}-agent
63-
spec:
64-
ports:
65-
- name: mosquitto
66-
port: 1883
67-
protocol: TCP
68-
targetPort: 1883
69-
selector:
70-
name: ${MQTT_BROKER_NAME}
71-
type: ClusterIP
72-
44+
7345
- kind: Deployment
7446
apiVersion: apps/v1
7547
metadata:

0 commit comments

Comments
 (0)