Bugzilla2Fedmsg: deploy keytab

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2024-07-04 07:45:53 +02:00
parent 07f6d5967e
commit fb60871402
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 25 additions and 0 deletions

View file

@ -55,6 +55,15 @@
key: msg-client-fedora-prod.key
privatefile: "bugzilla2fedmsg/msg-client-fedora-prod.key"
# FASJSON access
- role: openshift/ipa-client
app: bugzilla2fedmsg
- role: openshift/keytab
app: bugzilla2fedmsg
key: service.keytab
secret_name: keytab
service: bugzilla2fedmsg
- role: openshift/imagestream
app: bugzilla2fedmsg
imagename: bugzilla2fedmsg

View file

@ -27,6 +27,10 @@ spec:
value: "/opt/app-root/bin/bugzilla2fedmsg"
# - name: FEDORA_MESSAGING_CONF
# value: "/etc/fedora-messaging/config.toml"
- name: KRB5_CONFIG
value: /etc/ipa/krb5.conf
- name: KRB5_CLIENT_KTNAME
value: /etc/keytabs/service.keytab
volumeMounts:
- name: fedora-messaging-config-volume
mountPath: /etc/fedora-messaging
@ -51,6 +55,12 @@ spec:
mountPath: /etc/pki/stomp/msg-client-fedora-prod.key
subPath: msg-client-fedora-prod.key
readOnly: true
- name: ipa-config-volume
mountPath: /etc/ipa
readOnly: true
- name: keytab-volume
mountPath: /etc/keytabs
readOnly: true
volumes:
- name: fedora-messaging-config-volume
configMap:
@ -70,6 +80,12 @@ spec:
- name: stomp-key-volume
secret:
secretName: stomp-key
- name: ipa-config-volume
configMap:
name: ipa-client-config
- name: keytab-volume
secret:
secretName: keytab
triggers:
- type: ConfigChange