fix(actions): prevent deleted records' UUID from colliding with new records (#3830)
This commit changes the code that deletes a runner so it updates the UUID before deleting the record. The new UUID is set to 8 0xff bytes followed by a little endian version of the record's numeric ID. Such UUIDs cannot be created from tokens when registering runners, as the first 16 bytes of the token are in the `[0-9a-f]` range. This should prevent deleted runners from colliding with new records if the tokens share the same first 16 characters. It is a possible solution to issue #3828 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3830 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Co-authored-by: Emmanuel BENOÎT <tseeker@nocternity.net> Co-committed-by: Emmanuel BENOÎT <tseeker@nocternity.net>
This commit is contained in:
parent
e4c3c039be
commit
0801518f5d
5 changed files with 99 additions and 2 deletions
1
release-notes/8.0.0/3830.md
Normal file
1
release-notes/8.0.0/3830.md
Normal file
|
@ -0,0 +1 @@
|
|||
Neutralize delete runners' UUID to prevent collisions with new records
|
Loading…
Add table
Add a link
Reference in a new issue