chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import secrets
|
||||
|
||||
|
||||
def generate_new_authentication_token() -> str:
|
||||
"""Generate an authentication token for the cluster.
|
||||
|
||||
256 bits of entropy is considered sufficient to be durable to brute force attacks.
|
||||
"""
|
||||
return secrets.token_hex(32)
|
||||
Reference in New Issue
Block a user