mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add support for multiple SSH public keys
Attaching more than one SSH public key to the same account is useful, e.g. if one uses different machines to access the AUR SSH interface. Multiple keys can now be specified by adding multiple lines to the text area on the account edit form. Implements FS#45469. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org> Acked-by: Leonidas Spyropoulos <artafinde@gmail.com>
This commit is contained in:
parent
dbe56342a1
commit
b036b436aa
5 changed files with 159 additions and 25 deletions
|
@ -3,10 +3,16 @@ want to keep the package contents, please create a backup before starting the
|
|||
upgrade process and import the source tarballs into the Git repositories
|
||||
afterwards.
|
||||
|
||||
1. Add a field for the SSH public key to the Users table:
|
||||
1. Add a table to store SSH public keys:
|
||||
|
||||
----
|
||||
ALTER TABLE Users ADD COLUMN SSHPubKey VARCHAR(4096) NULL DEFAULT NULL;
|
||||
CREATE TABLE SSHPubKeys (
|
||||
UserID INTEGER UNSIGNED NOT NULL,
|
||||
Fingerprint VARCHAR(44) NOT NULL,
|
||||
PubKey VARCHAR(4096) NOT NULL,
|
||||
PRIMARY KEY (Fingerprint),
|
||||
FOREIGN KEY (UserID) REFERENCES Users(ID) ON DELETE CASCADE
|
||||
) ENGINE = InnoDB;
|
||||
----
|
||||
|
||||
2. Create a new user and configure Git/SSH as described in INSTALL.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue