DefGuard / DefGuard/defguard

Device public key uniqueness should be enforced at the database level

Open
#657 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
2.8k
Forks
115
Avg merge
1d 3h
Merged PRs (30d)
53

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.