Rotate administrator keys with safe re-enable and exact retry
This commit is contained in:
1 parent
9cf8249398
commit
55b47ce039
20 files changed
+3072
-104
No files matched your search
@@ -0,0 +1,22 @@
|
||||
CREATE TABLE `admin_account_rotations` (
|
||||
`operation_id` text PRIMARY KEY NOT NULL,
|
||||
`actor_admin_id` text NOT NULL,
|
||||
`request_hash` text NOT NULL,
|
||||
`target_admin_id` text NOT NULL,
|
||||
`name` text NOT NULL,
|
||||
`role` text NOT NULL,
|
||||
`previous_enabled` integer NOT NULL,
|
||||
`enabled` integer NOT NULL,
|
||||
`created_at` integer NOT NULL,
|
||||
`updated_at` integer NOT NULL,
|
||||
`expected_updated_at` integer NOT NULL,
|
||||
`reason` text NOT NULL,
|
||||
`rotated_at` integer NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
CREATE INDEX `admin_account_rotations_target` ON `admin_account_rotations` (`target_admin_id`,`rotated_at`);
|
||||
--> statement-breakpoint
|
||||
CREATE TABLE `admin_account_retired_keys` (
|
||||
`key_hash` text PRIMARY KEY NOT NULL,
|
||||
`admin_id` text NOT NULL
|
||||
);
|
||||
File diff suppressed because it is too large.
Load diff
@@ -141,6 +141,13 @@
|
||||
"when": 1790682568001,
|
||||
"tag": "0019_admin_accounts",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 20,
|
||||
"version": "6",
|
||||
"when": 1790682568002,
|
||||
"tag": "0020_admin_key_rotation",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user