fix(irc): inject GX10 cloak keys from Secret
This commit is contained in:
1354
apps-gx10/irc/irc.yaml
Normal file
1354
apps-gx10/irc/irc.yaml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -685,9 +685,9 @@ data:
|
|||||||
stats-server "stats.iamworkin.lan";
|
stats-server "stats.iamworkin.lan";
|
||||||
help-channel "#general";
|
help-channel "#general";
|
||||||
cloak-keys {
|
cloak-keys {
|
||||||
"ZWKeb8YevNiL45Xdh2p5u4tv2xksWgb8YPQSvmerBmNObyGbTDGnU4PNomZaLbZ1D9M2Cy6njM1XLJUkJhAx1oY3coBdZoPykEo7";
|
"__CLOAK_KEY_1__";
|
||||||
"KqRaLeA6ijOnWDdCqYtJ6rb1VgR8lYnU9Sey7cbRhi3PsGzD5gZONJXyUdbJ7bD26QKCuiDydBsccUVKC3lYN0HJ9sGTlOYR3c2m";
|
"__CLOAK_KEY_2__";
|
||||||
"2I4oopLDY79Fr4Mucy63EVOfkelVV23nESPWoqMnP1pUc8Yg0D4RK1mVtxyEhdTPpLFyKgG4fRlb6R33eHoQe7yi7moOu4W1Waw6";
|
"__CLOAK_KEY_3__";
|
||||||
}
|
}
|
||||||
kline-address "admin@iamwork.in";
|
kline-address "admin@iamwork.in";
|
||||||
maxchannelsperuser 25;
|
maxchannelsperuser 25;
|
||||||
@@ -1006,14 +1006,23 @@ spec:
|
|||||||
- |
|
- |
|
||||||
OPER_PW=$(cat /secrets/password)
|
OPER_PW=$(cat /secrets/password)
|
||||||
LINK_PW=$(cat /secrets/Link-Password)
|
LINK_PW=$(cat /secrets/Link-Password)
|
||||||
|
CLOAK_KEY_1=$(cat /cloak-secrets/cloak-key-1)
|
||||||
|
CLOAK_KEY_2=$(cat /cloak-secrets/cloak-key-2)
|
||||||
|
CLOAK_KEY_3=$(cat /cloak-secrets/cloak-key-3)
|
||||||
sed -e "s|__OPER_PASSWORD__|${OPER_PW}|g" \
|
sed -e "s|__OPER_PASSWORD__|${OPER_PW}|g" \
|
||||||
-e "s|__LINK_PASSWORD__|${LINK_PW}|g" \
|
-e "s|__LINK_PASSWORD__|${LINK_PW}|g" \
|
||||||
|
-e "s|__CLOAK_KEY_1__|${CLOAK_KEY_1}|g" \
|
||||||
|
-e "s|__CLOAK_KEY_2__|${CLOAK_KEY_2}|g" \
|
||||||
|
-e "s|__CLOAK_KEY_3__|${CLOAK_KEY_3}|g" \
|
||||||
/config-template/unrealircd.conf > /injected-config/unrealircd.conf
|
/config-template/unrealircd.conf > /injected-config/unrealircd.conf
|
||||||
echo "Credentials injected into unrealircd.conf"
|
echo "Credentials and cloak keys injected into unrealircd.conf"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: irc-credentials
|
- name: irc-credentials
|
||||||
mountPath: /secrets
|
mountPath: /secrets
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: unrealircd-cloak-keys
|
||||||
|
mountPath: /cloak-secrets
|
||||||
|
readOnly: true
|
||||||
- name: unrealircd-config-template
|
- name: unrealircd-config-template
|
||||||
mountPath: /config-template
|
mountPath: /config-template
|
||||||
readOnly: true
|
readOnly: true
|
||||||
@@ -1071,6 +1080,9 @@ spec:
|
|||||||
- name: irc-credentials
|
- name: irc-credentials
|
||||||
secret:
|
secret:
|
||||||
secretName: irc-credentials
|
secretName: irc-credentials
|
||||||
|
- name: unrealircd-cloak-keys
|
||||||
|
secret:
|
||||||
|
secretName: unrealircd-cloak-keys
|
||||||
- name: unrealircd-config-template
|
- name: unrealircd-config-template
|
||||||
configMap:
|
configMap:
|
||||||
name: unrealircd-config-template
|
name: unrealircd-config-template
|
||||||
|
|||||||
Reference in New Issue
Block a user