Rotate robot user uuid when the credentials change
This commit is contained in:
parent
ce8fcbeaae
commit
a9b7ac6b48
1 changed files with 1 additions and 0 deletions
|
@ -255,6 +255,7 @@ def regenerate_robot_token(robot_shortname, parent):
|
|||
robot = lookup_robot(robot_username)
|
||||
password = random_string_generator(length=64)()
|
||||
robot.email = password
|
||||
robot.uuid = str(uuid4())
|
||||
|
||||
service = LoginService.get(name='quayrobot')
|
||||
login = FederatedLogin.get(FederatedLogin.user == robot, FederatedLogin.service == service)
|
||||
|
|
Reference in a new issue