Marcin Kuzminski
772de504bb
encryption: Implement a slightly improved AesCipher encryption.
...
This addresses issues from #4036
- we use a backward compatible cipher that can implement HMAC signature
- with HMAC signature we can detected mangled data or wrong secret key
- this allows more explicit errors than UnicodeDecode errors
- added a new .ini values that controls strict mode
2016-06-27 19:26:03 +02:00
Marcin Kuzminski
9446dff948
system-settings: prepare to allow to create snapshots of full system settings
...
for support.
2016-06-28 02:08:54 +02:00
Marcin Kuzminski
0e916f338a
user: indicate missing super admin or default as fatal errors.
2016-06-28 01:25:33 +02:00
Marcin Kuzminski
16a626ce44
refactor: renamed get_first_admin to get_first_super_admin which
...
reflects better what kind of user we're fetching.
2016-06-28 01:24:24 +02:00
Marcin Kuzminski
ad176ab69b
tests: fixed home tests with cached values
2016-06-28 00:14:31 +02:00
Marcin Kuzminski
7902155b2e
settings: use invalidate after updating settings.
2016-06-27 22:46:33 +02:00
Marcin Kuzminski
b2175b8e8c
tests: fixed pull requests my account tests.
2016-06-27 22:20:43 +02:00
Marcin Kuzminski
449905939f
tests: fixed mock test for utils2
2016-06-27 19:52:43 +02:00
Marcin Kuzminski
c7b2b53fff
tests: fixed tests for helpers.
2016-06-27 19:48:37 +02:00
Marcin Kuzminski
94813be133
docs: improve contribution docs on how to run tests.
2016-06-27 19:32:22 +02:00
lisaq
524fe3d09a
docs: updates to contributor documentation #4039
2016-06-23 16:13:49 +02:00
Marcin Kuzminski
cf352c6625
paster: fix redundant question on writable dir. The question needs to
...
be asked only when the dir is actually not writable.
2016-06-24 20:50:51 +02:00
Marcin Kuzminski
8667353668
config: synced .ini files with latest changes
2016-06-24 13:32:59 +02:00
Marcin Kuzminski
858cf0db77
encryption: allow to pass in alternative key for encryption values
2016-06-24 13:29:27 +02:00
Marcin Kuzminski
2600624410
templates: expose above blocks for login and register pages.
2016-06-24 13:15:39 +02:00
Daniel Dourvaris
d017c17269
celery: log exception in the event of unknown IOError
2016-06-24 14:35:49 +03:00
Daniel Dourvaris
38df61623b
celery: fixed bug where celery was not running
2016-06-24 14:21:29 +03:00
Daniel Dourvaris
fa69408b87
javascript: add default value for js generate ini option
2016-06-06 17:27:04 +03:00
Daniel Dourvaris
7bcafe31fd
javascript: use separate ini config for generating dynamic js files
2016-06-06 16:38:09 +03:00
Marcin Kuzminski
b191ddbc07
utils: make sure we don't import any models inside utils
2016-06-23 16:17:18 +02:00
Marcin Kuzminski
a51519ed0a
encryption: use common method to fetch encryption key for encrypted fields.
2016-06-23 13:48:11 +02:00
Marcin Kuzminski
055024f665
settings: use cached settings in few places we only often use it for reading.
2016-06-23 12:33:04 +02:00
Marcin Kuzminski
e0266a9130
settings: use cache on whole result not just the query since it's the computation
...
of values that is slow not the query itself.
2016-06-23 11:51:41 +02:00
Marcin Kuzminski
f81bdd6a6b
helpers: commit parsers, use caching queries to save tons of time when parsing over the same repo
...
commit messages.
2016-06-22 11:53:47 +02:00
lisaq
e54e3df806
docs: adding contribution links to readme #4039
2016-06-22 17:34:08 +02:00
Daniel Dourvaris
e9b8c7a94a
admin: generate password in add user page wasn't working
2016-06-22 21:46:43 +03:00
Marcin Kuzminski
56c24af7bc
caches: use optional identity cache options on get_by_repo_name and get_by_username
...
methods. Disabled by now.
2016-06-22 20:38:44 +02:00
Marcin Kuzminski
a30ccd1470
helpers: fixed some errors on helpers, and removed dead code.
2016-06-22 11:32:13 +02:00
Marcin Kuzminski
4531ebf106
helpers: optimize slight calls for link_to_user to save some
...
intense queries.
2016-06-21 20:14:15 +02:00
Daniel Dourvaris
f43669f817
model: log exception if multiple repos rather than hard error
2016-06-22 18:29:41 +03:00
Daniel Dourvaris
114e4097ca
model: make sure only 1 repo in session when get_by_repo_name
2016-06-22 18:18:59 +03:00
Daniel Dourvaris
6f322f3be9
speedup: join repo on fork/user/group by default
2016-06-22 14:58:05 +03:00
Daniel Dourvaris
80943648ff
debug: skip model.settings query logging
2016-06-22 14:57:37 +03:00
Daniel Dourvaris
c00cc3ef14
speedup: check identity_map when getting by repo name
2016-06-22 13:38:11 +03:00
Daniel Dourvaris
450bb8142e
speedup: check local session for repo by repo name first
2016-06-22 12:53:43 +03:00
Daniel Dourvaris
1536e48bab
refactor: remove old error controller, which has been replaced by pyramid
2016-06-22 12:39:11 +03:00
lisaq
17a75f2b8e
ux: bringing my account pull request list into the great future #4038
2016-06-22 15:26:04 +02:00
Martin Bornhold
6b84fcdb1d
threading: Use the curl session factory.
2016-06-22 10:18:33 +02:00
Martin Bornhold
4a1c60fba2
threading: Add factory that creates curl session for each thread.
...
When creating a repo with an import url pointing to another repo on the same enterprise instance
we call the vcssserver to check the url. The vcsserver then calls to enterprise to verify the url.
This leads to two threads using the same cur session.
2016-06-22 10:18:06 +02:00
Johannes Bornhold
24d554a54e
nix: Propagate doCheck attribute.
2016-06-15 11:15:09 +02:00
Johannes Bornhold
711cda9de3
release: Provide attribute releaseName
...
Used from rcpkgs to package things up for the installer and control.
2016-06-07 08:23:17 +02:00
Johannes Bornhold
03b1542a52
release: Remove dependency greenlet
2016-06-07 06:07:47 +02:00
Johannes Bornhold
cf906eafe6
authn: Use type() instead of __class__ attribute.
2016-06-21 08:09:55 +02:00
Johannes Bornhold
24e2b4a137
authn: Test authentication plugin settings POST views.
2016-06-20 17:27:31 +02:00
Johannes Bornhold
b5079c9ba9
authn: Fix priority of default values if some values are missing during POST
...
Normally this affects only the test suite but doesn't hurt to be correct :)
2016-06-20 17:27:04 +02:00
Johannes Bornhold
a1b5f9d602
authn: Allow to pass in a default value if setting is not available in DB.
2016-06-20 17:25:35 +02:00
Martin Bornhold
30ce19fa4f
authn: Unit tests to simply get the authentication settings pages.
...
Checks for enabled (retcode=200) and disabled (retcode=404) plugins.
2016-06-20 15:48:23 +02:00
Martin Bornhold
94d448b77c
authn: Create context managers to enable/disable an authentication plugin in DB.
2016-06-20 15:46:35 +02:00
Martin Bornhold
df46a4458a
authn: Add fixture that provides authentication plugin instances.
2016-06-20 15:45:58 +02:00
Johannes Bornhold
825e26db6f
authn: Don't use setting value to compute the setting type.
2016-06-20 11:52:24 +02:00