You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WPB:18722: Remove Postgres and smtp hard coded passwords (#817)
* patch the postgresql password to the k8s cluster
* Update demo setup script and secrets example
* add changelog
* Add label specfic build for the CI
* Remove conditional logics form dependent steps
* hand wire-server chart installation with k8s pg password
* refactor the pg secret name
* update the secret reference
* Utilize sync script to sync k8s postgres secret with wire helm secret
echo"⚠️ Warning: PostgreSQL secret exists but password is empty"
114
+
fi
115
+
else
116
+
echo"⚠️ Warning: PostgreSQL secret 'wire-postgresql-secret' not found in namespace '${NAMESPACE}'"
117
+
echo" PostgreSQL password will need to be synced manually"
118
+
fi
119
+
else
120
+
echo"⚠️ Warning: kubectl not found, PostgreSQL password will need to be synced manually"
121
+
fi
122
+
echo""
123
+
99
124
echo"Installing wire-server, this may take a long time, and take a long time before reporting errors. (timeout of $timeout seconds.) You may check for potential problems with 'kubectl -n $NAMESPACE get pods -w' or 'kubectl -n $NAMESPACE get all' and look for errors/pending."
Copy file name to clipboardExpand all lines: bin/wiab-demo/offline_deploy_k8s.sh
+26-8Lines changed: 26 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,17 @@ COTURN_NODE="K8S_COTURN_NODE"
17
17
# keeping it empty to be replaced
18
18
HOST_IP="WIRE_IP"
19
19
20
-
# it creates the values.yaml from prod-values.example.yaml and secrets.yaml from prod-secrets.example.yaml, it works on the directory $BASE_DIR"/values/ in the bundle
21
-
process_charts() {
22
-
20
+
# Creates values.yaml from demo-values.example.yaml and secrets.yaml from demo-secrets.example.yaml
21
+
# This script is for WIAB/demo deployments only
22
+
# Works on all chart directories in $BASE_DIR/values/
23
+
process_charts() {
24
+
23
25
ENV=$1
24
26
25
-
if [ "$ENV"!="prod" ] && [ "$ENV"!="demo" ];then
26
-
echo"ENV is neither prod nor demo"
27
+
if [ "$ENV"!="demo" ];then
28
+
echo"Error: This script only supports demo deployments. ENV must be 'demo', got: '$ENV'"
Changed: Remove hardcoded PostgreSQL passwords from demo-secrets.example.yaml and automatically inject passwords from databases-ephemeral chart during deployment. Updated demo-setup.sh and bin/wiab-demo/offline_deploy_k8s.sh to retrieve and inject PostgreSQL passwords using --set flags. Add PR label-based build optimization to offline.yml workflow (use 'demo-only' or 'min-only' labels to skip unnecessary builds)
0 commit comments