Skip to content

Commit 617918d

Browse files
test(snapshot-s3): Enable TLS in MinIO (#56)
1 parent eb1a56c commit 617918d

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

tests/templates/kuttl/snapshot-s3/11_minio-values.yaml.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ console:
1515
image:
1616
repository: bitnamilegacy/minio-object-browser
1717

18+
tls:
19+
enabled: true
20+
1821
persistence:
1922
enabled: false # "false" means, that an emptyDir is used instead of a persistentVolumeClaim
2023
size: 64Mi

tests/templates/kuttl/snapshot-s3/20-install-opensearch.yaml.j2

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ spec:
4343
plugins.security.ssl.http.pemcert_filepath: /stackable/opensearch/config/tls/tls.crt
4444
plugins.security.ssl.http.pemkey_filepath: /stackable/opensearch/config/tls/tls.key
4545
plugins.security.ssl.http.pemtrustedcas_filepath: /stackable/opensearch/config/tls/ca.crt
46-
s3.client.default.endpoint: http://minio:9000/
47-
s3.client.default.protocol: http
46+
s3.client.default.endpoint: https://minio:9000/
47+
s3.client.default.protocol: https
4848
s3.client.default.region: unused # but required
4949
s3.client.default.path_style_access: "true"
5050
podOverrides:
@@ -74,12 +74,32 @@ spec:
7474
- name: keystore-secrets
7575
mountPath: /stackable/opensearch/keystore-secrets
7676
readOnly: true
77+
- name: init-system-keystore
78+
image: oci.stackable.tech/sdp/opensearch:3.1.0-stackable0.0.0-dev
79+
command:
80+
- update-ca-trust
81+
args:
82+
- extract
83+
- --output
84+
- /stackable/ca-trust
85+
volumeMounts:
86+
- name: system-trust-store
87+
mountPath: /stackable/ca-trust
88+
readOnly: false
89+
- name: s3-ca-crt
90+
mountPath: /etc/pki/ca-trust/source/anchors/s3-ca.crt
91+
subPath: tls.crt
92+
readOnly: true
7793
containers:
7894
- name: opensearch
7995
volumeMounts:
8096
- name: security-config
8197
mountPath: /stackable/opensearch/config/opensearch-security
8298
readOnly: true
99+
- name: system-trust-store
100+
mountPath: /etc/pki/java/cacerts
101+
subPath: java/cacerts
102+
readOnly: true
83103
- name: tls
84104
mountPath: /stackable/opensearch/config/tls
85105
readOnly: true
@@ -95,10 +115,17 @@ spec:
95115
secret:
96116
secretName: s3-credentials
97117
defaultMode: 0o660
118+
- name: s3-ca-crt
119+
secret:
120+
secretName: minio-ca-crt
121+
defaultMode: 0o660
98122
- name: security-config
99123
secret:
100124
secretName: opensearch-security-config
101125
defaultMode: 0o660
126+
- name: system-trust-store
127+
emptyDir:
128+
sizeLimit: 10Mi
102129
- name: tls
103130
ephemeral:
104131
volumeClaimTemplate:

0 commit comments

Comments
 (0)