-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema model for user public keys #1287
Schema model for user public keys #1287
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to see 1 key per DB row.
done |
internal/dbmodel/user_ssh_key.go
Outdated
} | ||
|
||
// userSSHKey holds an SSH key for a user. | ||
type userSSHKey struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would we not want this exported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, use constructor
Co-authored-by: SimoneDutto <[email protected]> Co-authored-by: Babak K. Shandiz <[email protected]> Co-authored-by: Ales Stimec <[email protected]> Co-authored-by: Kian Parvin <[email protected]> Co-authored-by: Piotr Kulik <[email protected]>
Description
In order to persist user's public keys, we require a model. This PR implements that.
Fixes JIRA/GitHub issue number
Engineering checklist
Check only items that apply
Test instructions
Notes for code reviewers