Gibheer
2f27ee2232
variable should not use ALL_CAPS
9 years ago
Gibheer
12403bdfb0
allow native and ssh-keygen public key check
...
This commit adds the possibibility to use either the native golang
libraries or ssh-keygen to check public keys. The check is adjusted
depending on the settings, so that only supported keys are let through.
This commit also brings back the blacklist feature, which was removed in
7ef9a05588
. This allows to blacklist
algorythms or keys based on the key length. This works with the native
and the ssh-keygen way.
Because of #2179 it also includes a way to adjust the path to
ssh-keygen and the working directory for ssh-keygen. With this,
sysadmins should be able to adjust the settings in a way, that SELinux
is okay with it. In the worst case, they can switch to the native
implementation and only loose support for ed25519 keys at the moment.
There are some other places which need adjustment to utilize the
parameters and the native implementation, but this sets the ground work.
9 years ago
John Maguire
b3e0efc0c3
Trim whitespace when adding SSH keys ( fixes #2447 )
9 years ago
John Maguire
caa4ca46c0
Add debug log when SSH key for deletion isn't found
9 years ago
Unknwon
7ef9a05588
#2179 use Go sub-repo ssh to verify public key content
9 years ago
Unknwon
53eb37d529
fix #1436
9 years ago
Unknwon
bc17f2f759
#2147 fix rewrites authorized_keys when builtin SSH server is enabled
9 years ago
Unknwon
978dc00305
APIs: admin users
9 years ago
Unknwon
cc8f5add6e
fix #976
9 years ago
Unknwon
f455125d4d
fix #878
9 years ago
Unknwon
18c841050b
fix 1540 and experimental SSH server support
9 years ago
Unknwon
8eb4c3121a
work on #1880
9 years ago
Unknwon
75aab86a8d
fix problem with #1879
9 years ago
Gibheer
b90b0c1191
move minimum key sizes to config
...
This moves the minimum key sizes into the config file, so that anyone
can modify the restrictions.
9 years ago
Unknwon
d185f601d3
#1622 comment with whitespace
9 years ago
Unknwon
260301bf2e
#1535 Removing deploy key does not remove key
9 years ago
Yixin Hao
5f25553b0d
Modify minimumKeySize of RSA to 1024 for old keys.
9 years ago
Unknwon
062adbed8a
add confirmation to delete ssh key
9 years ago
Don Bowman
1d52793faf
remove empty line as per https://github.com/gogits/gogs/pull/1475
9 years ago
Don Bowman
ab0247b4dc
race condition on keydelete
9 years ago
Unknwon
0acf209e2a
fix UNIQUE
9 years ago
Unknwon
39a3b768bc
#334 : Add Deployment Key Support
9 years ago
Unknwon
aae74c793a
#1133 add config option [service] DISABLE_MINIMUM_KEY_SIZE_CHECK
10 years ago
Unknwon
80b23854bc
#1050 : Bad permissions on authorized_keys after rewrite
10 years ago
Unknwon
4aafeace23
fix HTTP/HTTPS push update func call panic #1037 and `http: multiple response.WriteHeader calls`
10 years ago
Unknwon
d446be9f5f
models: mirror fix on #964
10 years ago
Peter Smit
aa35be975f
Fix #922
10 years ago
Unknwon
f15fa9167a
cmd: code fix for #905
...
- routers/admin: add rewrite update hook operation
- conf/locale: update locale file due to ini behavior changes
- cmd/cert_stub.go: remove useless code
- cmd/fix.go: no longer need fix command(at least now)
10 years ago
Peter Smit
1ab09e4f1b
Add option to provide configuration file on command line
10 years ago
Unknwon
0a2068d7fb
models: code fix on #818
10 years ago
Peter Smit
6251626de4
Implement #798 Flexible ssh-key input
...
It is now possible to input ssh keys in a number of formats: openssh, SSH2 or just the base64 encoded key.
10 years ago
fzerorubigd
6643647687
add afunction to rewrite all public keys on admin request
...
refs #763
10 years ago
Unknwon
1b66600bd0
Fix #652
10 years ago
Unknwon
ce8d4cc80b
#634
10 years ago
Unknwon
1e47e2df85
quick fix
10 years ago
Unknwon
5d9ef2bb12
lock gopmfile
10 years ago
Unknwon
8c9338a537
add personal access token panel #12
10 years ago
Eryx
e84e0ab904
Fix #266
10 years ago
Unknwon
452ccff81c
Mirror fix on add ssh key
10 years ago
Unknwon
fb839ca0fb
More debug info
10 years ago
Unknwon
b7b7863364
Work on ssh key issue
10 years ago
fundon
eb1e6f8e3e
support dsa key format
10 years ago
Unknown
ebb4f1b78c
Work #475 and #458
10 years ago
Unknwon
c1ceec45da
Fix mirror UI style and work on #475
10 years ago
Unknwon
9a1d5d2489
Finish new web hook pages
10 years ago
Unknwon
9d5c0c80a4
Mirror fix on #352
10 years ago
Sebastian Jackel
0bfbefc38a
Moved defer f.Close() up so there is no chance of returning without closing and handled an error on f.Chmod
10 years ago
Sebastian Jackel
51abaf788c
Corrected log message
10 years ago
Sebastian Jackel
be7ce72ebe
Make sure, .ssh directory and authorized_keys file are kept at correct permissions
10 years ago
Unknwon
8dd07c0ddd
New UI merge in progress
11 years ago