GitLab Bot
8b2a413032
Add latest changes from gitlab-org/gitlab@master
2025-02-26 15:12:07 +00:00
GitLab Bot
d2d9859ef4
Add latest changes from gitlab-org/gitlab@master
2024-05-29 09:13:37 +00:00
GitLab Bot
79a7da2537
Add latest changes from gitlab-org/gitlab@master
2021-12-14 12:13:33 +00:00
GitLab Bot
e5e0589e09
Add latest changes from gitlab-org/gitlab@master
2021-04-26 12:09:44 +00:00
GitLab Bot
8d97a3e6ce
Add latest changes from gitlab-org/gitlab@master
2020-11-25 09:09:14 +00:00
GitLab Bot
5ad0cf2655
Add latest changes from gitlab-org/gitlab@master
2020-01-23 12:08:38 +00:00
GitLab Bot
3ad11f24ca
Add latest changes from gitlab-org/gitlab@master
2019-12-22 09:07:51 +00:00
GitLab Bot
9763c08170
Add latest changes from gitlab-org/gitlab@master
2019-12-17 03:07:45 +00:00
GitLab Bot
d10a462fed
Add latest changes from gitlab-org/gitlab@master
2019-12-16 12:07:43 +00:00
GitLab Bot
8cc5f27909
Add latest changes from gitlab-org/gitlab@master
2019-12-13 12:07:41 +00:00
GitLab Bot
175b4fa261
Add latest changes from gitlab-org/gitlab@master
2019-12-11 18:08:10 +00:00
GitLab Bot
eb7390edf3
Add latest changes from gitlab-org/gitlab@master
2019-11-25 21:06:28 +00:00
GitLab Bot
d4aaea5efa
Add latest changes from gitlab-org/gitlab@master
2019-11-03 03:06:20 +00:00
Jasper Maes
56296f1eda
Remove rails4 specific code
2018-12-16 10:48:41 +01:00
gfyoung
c858f70d07
Enable frozen string for lib/gitlab/*.rb
2018-10-22 07:00:50 +00:00
Jasper Maes
3091897bf9
Permit concurrent loads in gpg keychain mutex
2018-07-29 15:12:52 +02:00
Stan Hu
36a8f1a677
Reject GPG keys that have e-mail or names with non-valid UTF-8 encodings
...
These were causing 500 Errors when accessing GPG keys for some users.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/47280
2018-06-05 14:39:44 -07:00
Rubén Dávila
c50725fecf
Address feedback from last code review
2017-10-05 08:25:27 -05:00
Rubén Dávila
d0572d9aad
Refactor the extraction and generation of GPG subkeys
2017-10-05 08:25:27 -05:00
Rubén Dávila
62d5403401
Process and create subkeys when a new GPG key is created
2017-10-05 08:25:27 -05:00
Alexis Reigel
bb1cf2aaf9
Fix: GPG tmp dir removal race condition
2017-09-13 11:31:37 +00:00
Alexis Reigel
2a89037b63
downcase gpg key's emails
...
this is necessary for email comparisons
2017-09-05 12:18:31 +02:00
Alexis Reigel
a175966677
reset original directory in ensure
2017-08-14 12:57:56 +02:00
Alexis Reigel
edcc488b75
use mutex for keychain interaction
...
setting of the gpg home directory is not thread safe, as the directoy
gets stored on the class.
if multiple threads change the directory at the same time, one of the
threads will be working in the wrong directory.
2017-08-14 12:57:56 +02:00
Alexis Reigel
6cd9888f6f
store gpg return directory locally
2017-08-11 08:38:42 +02:00
Alexis Reigel
cd01e82873
store gpg user name and email on the signature
2017-07-27 15:44:39 +02:00
Alexis Reigel
deb474b413
extract common method
2017-07-27 15:43:37 +02:00
Alexis Reigel
2f956fae03
verify gpg commit using tmp keyring and db query
2017-07-27 15:42:53 +02:00
Alexis Reigel
3c42d73098
add primary keyid attribute to gpg keys
2017-07-27 15:42:53 +02:00
Alexis Reigel
7e13d96715
don't sync to keychain file
2017-07-27 15:42:53 +02:00
Alexis Reigel
8bd94a7304
remove gpg from keychain when user's email changes
2017-07-27 15:42:04 +02:00
Alexis Reigel
0668521b2b
move current keychain methods to namespace
2017-07-27 15:40:41 +02:00
Alexis Reigel
0e3d3d60ba
email handling for gpg keys
2017-07-27 15:40:41 +02:00
Alexis Reigel
87c0fd3455
add / remove gpg keys to / from system keychain
2017-07-27 15:40:41 +02:00
Alexis Reigel
e34cef0cd2
extract gpg functionality to lib class
2017-07-27 15:40:41 +02:00