Skip to content

Add multiple public keys #23

Description

@graft

Currently the user model has a 'public_key' field, which holds a string of the user's only key. However, many users will want to set multiple public keys which they can use from many different machines. We should be able to support having multiple public keys available.

The model implementation is simple: Create a 'public_key' model with a user_id and link to the user model as many_to_one (and vice-versa).

The public key is used in one place, User#valid_signature? This method also needs to support verifying a signature against multiple public keys.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions