gitea/options/locale
zeripath 01c10a951b
Fix ssh deploy and user key constraints (#1357) (#5939)
1. A key can either be an ssh user key or a deploy key. It cannot be both.
2. If a key is a user key - it can only be associated with one user.
3. If a key is a deploy key - it can be used in multiple repositories and the permissions it has on those repositories can be different.
4. If a repository is deleted, its deploy keys must be deleted too.

We currently don't enforce any of this and multiple repositories access with different permissions doesn't work at all. This PR enforces the following constraints:

- [x] You should not be able to add the same user key as another user
- [x] You should not be able to add a ssh user key which is being used as a deploy key
- [x] You should not be able to add a ssh deploy key which is being used as a user key
- [x] If you add an ssh deploy key to another repository you should be able to use it in different modes without losing the ability to use it in the other mode.
- [x] If you delete a repository you must delete all its deploy keys.

Fix #1357
2019-02-03 23:56:53 +00:00
..
TRANSLATORS Update TRANSLATORS (#5194) 2018-10-26 13:37:36 -04:00
locale_bg-BG.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_cs-CZ.ini [skip ci] Updated translations via Crowdin 2019-01-28 15:55:40 +00:00
locale_de-DE.ini [skip ci] Updated translations via Crowdin 2019-01-29 21:28:45 +00:00
locale_en-US.ini Fix ssh deploy and user key constraints (#1357) (#5939) 2019-02-03 23:56:53 +00:00
locale_es-ES.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_fa-IR.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_fi-FI.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_fr-FR.ini [skip ci] Updated translations via Crowdin 2019-01-29 21:28:45 +00:00
locale_hu-HU.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_id-ID.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_it-IT.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_ja-JP.ini [skip ci] Updated translations via Crowdin 2019-01-31 13:39:54 +00:00
locale_ko-KR.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_lt-LT.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_lv-LV.ini [skip ci] Updated translations via Crowdin 2019-01-28 15:55:40 +00:00
locale_nb-NO.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_nl-NL.ini [skip ci] Updated translations via Crowdin 2019-01-28 14:16:11 +00:00
locale_nn-NO.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_no-NO.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_pl-PL.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_pt-BR.ini [skip ci] Updated translations via Crowdin 2019-01-28 15:55:40 +00:00
locale_ru-RU.ini [skip ci] Updated translations via Crowdin 2019-01-27 09:27:05 +00:00
locale_ru-UA.ini [skip ci] Updated translations via Crowdin 2018-05-19 14:58:24 +00:00
locale_sr-SP.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_sv-SE.ini [skip ci] Updated translations via Crowdin 2019-01-27 09:27:05 +00:00
locale_tr-TR.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_uk-UA.ini [skip ci] Updated translations via Crowdin 2019-01-27 09:27:05 +00:00
locale_vi-VN.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_zh-CN.ini [skip ci] Updated translations via Crowdin 2019-01-28 15:55:40 +00:00
locale_zh-HK.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00
locale_zh-TW.ini [skip ci] Updated translations via Crowdin 2019-01-23 20:11:56 +00:00