Skip to content
Snippets Groups Projects
Commit c03f53db authored by Holger Levsen's avatar Holger Levsen
Browse files

i386.reproduce.debian.net: use signup_secret from /opt/etc/rebuilderd.secret

parent c1c34d03
No related branches found
No related tags found
No related merge requests found
## The rebuilderd to connect to
endpoint = "https://i386.reproduce.debian.net"
## The server would either allowlist our key or require a signup secret
#signup_secret = "your_signup_key"
signup_secret = "INSECURE"
[build]
#timeout = 86400 # 24 hours
......
......@@ -22,12 +22,12 @@ bind_addr = "127.0.0.1:8484"
#cookie = "INSECURE"
## IMPORTANT: in production, make sure either `authorized_workers` or `signup_secret` is configured.
#[worker]
[worker]
## If we have a fixed set of workers we can allow-list the keys here.
#authorized_workers = ["key1", "key2"]
## If we want to spawn new workers dynamically we can configure a sign up secret below.
## Use `pwgen -1s 32` to generate one.
#signup_secret = "INSECURE"
signup_secret = "INSECURE"
#[schedule]
## Configure the delay to automatically retry failed rebuilds in hours. The
......
## The rebuilderd to connect to
endpoint = "http://127.0.0.1:8484"
endpoint = "https://i386.reproduce.debian.net"
## The server would either allowlist our key or require a signup secret
#signup_secret = "your_signup_key"
signup_secret = "INSECURE"
[build]
#timeout = 86400 # 24 hours
......
......@@ -734,6 +734,19 @@ if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "ionos7-amd64" ] || [ "$HOSTNA
fi
done
fi
# set secret for remote rebuilderd-workers
case $HOSTNAME in
infom07|infom08*) SIGNUPSECRET="$(cat /opt/etc/rebuilderd.secret)"
for i in rebuilderd.conf rebuilderd-worker.conf ; do
if [ -f /opt/etc/$i ] ; then
if grep -q '^signup_secret = "INSECURE"' ; then
sudo sed -i "s^signup_secret = \"INSECURE\"#signup_secret = \"$SIGNUPSECRET\"#g" opt/etc/$i
fi
fi
done
;;
*) ;;
esac
if [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "ionos7-amd64" ] ; then
if ! $UP2DATE || [ $BASEDIR/hosts/$HOSTNAME/etc/apache2 -nt $STAMP ] ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment