diff --git a/src/accounts/userservice/userservice.py b/src/accounts/userservice/userservice.py index 0a482f769..f6a6d27cf 100644 --- a/src/accounts/userservice/userservice.py +++ b/src/accounts/userservice/userservice.py @@ -22,7 +22,6 @@ import os import sys import re -from turtle import pu import bcrypt import jwt @@ -261,6 +260,10 @@ def login(): # Assuming the public key bit size has been set in app.config['PUBLIC_KEY_BIT_SIZE'] public_key_bit_size = app.config.get('PUBLIC_KEY_BIT_SIZE', None) encode_span.set_attribute("public_key_bit_size", public_key_bit_size) + if public_key_bit_size > 512: + app.logger.error("Public key bit size is greater than 512 bits.") + else: + app.logger.info("Public key bit size equal to 512 bits.") # Log the success of the JWT generation jwt_span.set_attribute("jwt.success", True)