Commit graph

24 commits

Author SHA1 Message Date
Marcin Lulek
725145927b security: limit the maximum password lenght to 72 characters to prevent possible
server side resource consumption attack.

- bcrypt heavy computation can lead to DOS using a very long password .eg 10**8 lenght.
- we allowed this on registration or on password update
2017-09-27 10:52:17 +02:00
Marcin Kuzminski
990994942d pull-requests: use close action with proper --close-commit solution.
- Mercurial settings are no long as LABS
- Unified some code between GIT and HG on rebase/close/delete feature branches
2017-08-24 22:36:34 +02:00
Mathieu Cantin
761e973359 mercurial: Add option to close a branch before merging 2017-08-08 13:46:42 -04:00
Marcin Kuzminski
c650cdddcc pyramid: if possible fetch csrf tokens from pyramid session.
- we need to explicitly pass in requests into secure forms
- allows to not use pylons global session for fetching csrf tokens
2017-07-13 12:35:42 +02:00
Marcin Kuzminski
bd1e865c9c pull-request: extended default reviewers functionality.
- added mandatory reviewers JS logic Fixes: #4219
- added option to forbid author to be a reviewer via JS/Frontend checks. Fixes #5190
- added option to forbid adding new reviewers except those defined. Fixes #5208
2017-05-29 20:10:17 +02:00
Marcin Kuzminski
4801f5f8ca mercurial-evolve: enable evolve setting on repositories. 2017-05-10 18:33:59 +02:00
Marcin Kuzminski
b4b97b1b4e repo-creation: validate and forbid creating .git suffixed repository names.
- because of git-lfs support, and also becuase to support the clone of git bare repositories
we cannot allow creating such repositories.
2017-04-18 12:23:14 +02:00
Marcin Kuzminski
858dfef419 git-lfs: settings for GIT repos to enable git-lfs and set store location
- ref #4235
2017-03-21 17:23:28 +01:00
Marcin Kuzminski
aa95986678 mercurial: allow editing largefile store from web interface. 2017-03-17 22:08:34 +01:00
Marcin Kuzminski
fcc027c282 license: updated copyright year to 2017 2017-01-02 09:30:39 +01:00
Marcin Kuzminski
9e6713219c repo-groups: implemented default personal repo groups logic.
- fixes #4003
- adds new settings to automatically create personal repo groups for users on API cal, add user form, registration
- it's possible to create a pattern based repo group for example /u/{username}
2016-11-07 15:27:36 +01:00
Marcin Kuzminski
cbafa9652e user-groups: new selector for user group memebers.
- removed old two column selector in replacement of autocomplete list
- scales much better for alrge number of users
- still allows to select single users and user groups
- fixes #4291 (user group shows only username in members)
2016-11-06 16:01:21 +01:00
lisaq
607fd8931d settings: fix #3944 add password reset permission 2016-10-25 17:37:14 +02:00
Daniel Dourvaris
b3e97c1715 reviewers: store reviewer reasons to database, fixes #4238 2016-09-27 02:34:15 +03:00
Marcin Kuzminski
d92e030879 vcs: moved svn proxy settings into vcs related settings
- vcs middleware now returns dummyHandler if not configured
- propagate the per-repo vcs related configs into VCSMiddleware
- moved the forms arround and group things into more logical blocks
2016-09-06 12:29:54 +02:00
lisaq
ca1ec404c2 svn: moving svn http support out of labs settings. 2016-08-23 17:07:22 +02:00
Daniel Dourvaris
b51406ec1d account: convert change password form to colander schema and fix bug
where user could use same password as before when changing
password, fixes #2264
2016-08-05 06:55:35 +03:00
Marcin Kuzminski
198c6fda61 gists: use colander schema to validate input data.
- brings consistent validation acros API and web
- use nicer and stricter schemas to validate data
- fixes #4118
2016-07-31 20:11:12 +02:00
Daniel Dourvaris
61553db529 deform: use pypi deform library and add helpers to deform scope directly
to avoid passing it each time form is rendered
2016-07-29 17:27:38 +03:00
Daniel Dourvaris
9dd0674b39 forms: add deform for integration settings forms 2016-07-27 11:39:23 +03:00
Martin Bornhold
77c3287d4a settings: Delete obsolete code related to the rebase-merge lab settings. 2016-06-27 16:53:36 +02:00
Martin Bornhold
b3a1dec11e settings: Add the 'rebase-merge' setting to VCS base form and VCS settings model. 2016-06-27 11:00:22 +02:00
Marcin Kuzminski
2687022328 repos, repo groups, user groups: allow to use disabled users in owner field.
This fixes #3374. There's no good benefit of having possibility to prevent
setting disabled user from beeing an owner.
It can happen that we start preperating a system and use disabled accounts.
Also users shouldn't be forbidden to edit settings on an disabled owner.
2016-06-18 02:03:43 +02:00
Marcin Kuzminski
9a0d8c0b77 project: added all source files and assets 2016-05-24 15:56:53 +02:00