We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cc6b08 commit 1ccc5fcCopy full SHA for 1ccc5fc
1 file changed
startupscript/butane/055-provide-secrets.sh
@@ -190,7 +190,9 @@ done
190
echo "Delivering ${PIPE_SECRET_COUNT} secret(s) to container..."
191
192
set +o xtrace
193
-echo "${SECRETS_JSON}" | docker exec -i "${CONTAINER_NAME}" sh -c "cat > ${PIPE_PATH}"
194
-set -o xtrace
+if ! echo "${SECRETS_JSON}" | timeout 30 docker exec -i "${CONTAINER_NAME}" sh -c "cat > ${PIPE_PATH}"; then
+ >&2 echo "ERROR: Timed out writing secrets to container pipe."
195
+ exit 1
196
+fi
197
198
echo "Secrets delivered successfully."
0 commit comments