mirror of
https://github.com/clearml/clearml-server
synced 2025-02-07 13:33:42 +00:00
Don't use special characters in secrets
This commit is contained in:
parent
39ceb5ac5c
commit
cb253cff9e
@ -33,5 +33,5 @@ def get_secret_key(length=50):
|
||||
NOTE: asterisk is not supported due to issues with environment variables containing
|
||||
asterisks (in case the secret key is stored in an environment variable)
|
||||
"""
|
||||
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&(-_=+)'
|
||||
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
|
||||
return get_random_string(length, chars)
|
||||
|
Loading…
Reference in New Issue
Block a user