Skip to content

[int] Check all random module usage#8562

Draft
sfayer wants to merge 1 commit into
DIRACGrid:integrationfrom
sfayer:check_rand
Draft

[int] Check all random module usage#8562
sfayer wants to merge 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
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.

2 participants