From a9b7ac6b48f57c7ccf3582431df90e6b91f04437 Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Thu, 31 Dec 2015 13:57:43 -0500 Subject: [PATCH] Rotate robot user uuid when the credentials change --- data/model/user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/data/model/user.py b/data/model/user.py index fbcb7d9e4..4db9e132b 100644 --- a/data/model/user.py +++ b/data/model/user.py @@ -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)