defguard
defguard copied to clipboard
Device public key uniqueness should be enforced at the database level
Describe the bug
In the current implementation, uniqueness of the public keys of devices is enforced only at the backend level. A UNIQUE constraint should be added along with a migration which purges already present duplicate keys from the database.