Confirm and audit credential rotation in the panel
This commit is contained in:
1 parent
c2655b57f5
commit
651f041e84
10 files changed
+662
-17
No files matched your search
@@ -165,10 +165,13 @@ class ServiceCredentialAccess(models.Model):
|
||||
REJECTED = "rejected", "Password confirmation failed"
|
||||
UNAVAILABLE = "unavailable", "Credentials unavailable"
|
||||
REVEALED = "revealed", "Credentials revealed"
|
||||
ROTATED = "rotated", "Password changed"
|
||||
BLOCKED = "blocked", "Password change was blocked"
|
||||
|
||||
class Method(models.TextChoices):
|
||||
REVEAL = "reveal", "Show connection details"
|
||||
PHPMYADMIN = "phpmyadmin", "phpMyAdmin"
|
||||
ROTATE = "rotate", "Rotate password"
|
||||
|
||||
method = models.CharField(
|
||||
max_length=10, choices=Method, default=Method.REVEAL
|
||||
@@ -178,6 +181,8 @@ class ServiceCredentialAccess(models.Model):
|
||||
)
|
||||
actor_username = models.CharField(max_length=150)
|
||||
hosting_account_id = models.PositiveBigIntegerField()
|
||||
rotation_id = models.UUIDField(null=True)
|
||||
previous_rotation_id = models.UUIDField(null=True)
|
||||
kind = models.CharField(max_length=8, choices=Kind)
|
||||
resource = models.CharField(max_length=254)
|
||||
requested_at = models.DateTimeField(default=timezone.now)
|
||||
@@ -190,6 +195,8 @@ class ServiceCredentialAccess(models.Model):
|
||||
permissions = [
|
||||
("reveal_database_credentials", "Can reveal database credentials"),
|
||||
("reveal_mailbox_credentials", "Can reveal mailbox credentials"),
|
||||
("rotate_database_credentials", "Can rotate database credentials"),
|
||||
("rotate_mailbox_credentials", "Can rotate mailbox credentials"),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user