Skip to content

[int] Check all random module usage#8562

Merged
fstagni merged 1 commit into
DIRACGrid:integrationfrom
sfayer:check_rand
Jun 4, 2026
Merged

[int] Check all random module usage#8562
fstagni merged 1 commit into
DIRACGrid:integrationfrom
sfayer:check_rand

Conversation

@sfayer
Copy link
Copy Markdown
Member

@sfayer sfayer commented Jun 2, 2026

Hi,

This is a start of clearing up for bandit tests (part of #8547): I've been through all the usages of the random to ensure it isn't used for security purposes. In all cases but one I've just added a hint comment. For the proxy serial numbers, I did a bit more investigation, random is fine there (but seeing as I was changing it I swapped it our for secret). I decided it needs a bit more number space to avoid the possibility of a collision (not that anyone would probably notice but we want to stay compliant with the RFC if possible).

Regards,
Simon

BEGINRELEASENOTES
*All
CHANGE: Check all random module usage
CHANGE: Increase proxy serial length
ENDRELEASENOTES

@sfayer sfayer marked this pull request as draft June 2, 2026 09:40
@sfayer sfayer marked this pull request as ready for review June 4, 2026 08:20
@fstagni fstagni merged commit 3649f64 into DIRACGrid:integration Jun 4, 2026
32 of 33 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants