Skip to content

Conversation

@aparcar
Copy link
Contributor

@aparcar aparcar commented Nov 22, 2025

Instead of generating randm UUID and keys, base them on a counter. This makes them reproducible when running an experiment multiple times.

To make those keys more obvious generated, set all values to ff except the UUIDv4 bits and the counter at the end.

Example key IDs

ffffffff-ffff-4fff-8fff-000000000001
ffffffff-ffff-4fff-8fff-000000000002
...

Instead of generating randm UUID and keys, base them on a counter. This
makes them reproducible when running an experiment multiple times.

To make those keys more obvious generated, set all values to `ff` except
the UUIDv4 bits and the counter at the end.

Example key IDs

    ffffffff-ffff-4fff-8fff-000000000001
    ffffffff-ffff-4fff-8fff-000000000002
    ...

Drop the no longer required google/uuid package and KeyStore.

Signed-off-by: Paul Spooren <mail@aparcar.org>
@aparcar
Copy link
Contributor Author

aparcar commented Nov 22, 2025

2025/11/22 15:51:09.546425 <-- BACKUP: received key_id ffffffff-ffff-4fff-8fff-000000000009
2025/11/22 15:51:09.546808 <-- BACKUP: configure wireguard interface
2025/11/22 15:51:14.547609 <-- BACKUP: received key_id ffffffff-ffff-4fff-8fff-000000000010
2025/11/22 15:51:14.547936 <-- BACKUP: configure wireguard interface
2025/11/22 15:51:19.543934 <-- BACKUP: received key_id ffffffff-ffff-4fff-8fff-000000000011
2025/11/22 15:51:19.544230 <-- BACKUP: configure wireguard interface
2025/11/22 15:51:24.546971 <-- BACKUP: received key_id ffffffff-ffff-4fff-8fff-000000000012
2025/11/22 15:51:24.547266 <-- BACKUP: configure wireguard interface
2025/11/22 15:51:29.542821 <-- BACKUP: received key_id ffffffff-ffff-4fff-8fff-000000000013
2025/11/22 15:51:29.543223 <-- BACKUP: configure wireguard interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant