mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-19 22:42:24 -05:00
This closes a small window where new workers could give keys not accepted by the old workers before they're gracefully shut down. This will also be needed when syncing keys across a cluster.
11 lines
183 B
Bash
Executable file
11 lines
183 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -o errexit -o nounset -o pipefail
|
|
|
|
cd /etc/session-ticket-keys
|
|
|
|
for i in next.key {1..4}.key; do
|
|
head -c 80 </dev/random >$i
|
|
done
|
|
|
|
cat next.key {1..4}.key > keys
|