Marcin Kuzminski
e9e73ec871
caches: use safest possible pickle for cache backends.
...
- If this crashes we end up in fatal non-recoverable state.
2018-07-23 15:26:36 +02:00
Marcin Kuzminski
b51d537e66
exceptions: don't log error the lookup method errors. This happens so often we spam
...
the logs with errors , while it's simply commit not found. Other backends don't report this anyway exception HG.
2018-07-23 14:50:15 +02:00
Marcin Kuzminski
21c608be71
exceptions: added new exception tracking capability.
...
- store exceptions
- expose super admin interface to browse latest errors
2018-07-23 15:56:09 +02:00
Marcin Kuzminski
099f68a724
pull-requests: make the renderer stored and saved for each pull requests.
...
- gives backward compatability with previous versions which didn't set renderer
- allows versioning of renderer changes
2018-07-17 14:45:29 +02:00
Marcin Kuzminski
1bd980d752
emails: ensure none empty emails are fetched from admin accounts in recipinets aren't specified.
...
- in some cases we could create LDAP or other external accounts with empty email. That could crash the mailing lib.
2018-07-16 18:24:46 +02:00
Marcin Kuzminski
9665179aa5
caches: use new decorator that uses conditional caches skipping dogpile if cache is disabled.
2018-07-14 18:17:42 +02:00
Marcin Kuzminski
6e45dc9605
caches: introduce new conditional cache function.
2018-07-14 18:17:02 +02:00
Marcin Kuzminski
ec504c9907
caches: use delete_multi for clearing out cache keys.
...
- This is a safer and more efficient way of purging many keys.
- For file based cache it only opens the DB once
2018-07-13 18:39:52 +02:00
Marcin Kuzminski
f4b8149962
caches: allow debug of max_size reached by the MemoryLRU cache.
2018-07-13 17:29:36 +02:00
Marcin Kuzminski
f652093d5d
http: use better logging with vcsserver context UUID.
2018-07-13 15:33:25 +02:00
Marcin Kuzminski
7d7d6741bb
caches: added logging for dogpile configuration.
2018-07-13 13:06:04 +02:00
Marcin Kuzminski
84d673d387
caches: use dogpile for sql_cache_short region.
2018-07-12 17:20:03 +02:00
Marcin Kuzminski
0e05d6dd64
caches: use a faster LRUDict implementation for LRUMemoryCache
2018-07-12 17:48:12 +02:00
Marcin Kuzminski
a19d4b732a
caches: use a gevent compatible file-lock mechanism.
...
- because of gevent we can run into a deadlock situation and worker freeze because of
each of the workers will try to aquire a lock.
- This should help with the issue and gevent.
2018-07-12 10:40:18 +02:00
Marcin Kuzminski
a48ab8a32d
caches: don't use beaker for file caches anymore
2018-07-06 12:55:13 +02:00
Marcin Kuzminski
ddc445856e
caches: rewrite of auth/permission caches to dogpile.
2018-07-05 20:14:33 +02:00
Marcin Kuzminski
c8cd3e9740
caches: use LRUDict inside our lru helper so we can import it later on when required.
2018-07-04 22:26:52 +02:00
Marcin Kuzminski
564c09e772
ip-restritions: fix issue with loading empty IP rules for non-logged not-anonymous users.
...
This case won't have any IP rules set. And we accidentally loaded them becuase of no empty user filter
was present. This caused some odd display warnings for users.
2018-07-04 12:19:08 +02:00
Marcin Kuzminski
f62a1b94f7
tests: don't use md5 for testing crypto for compliance reasons.
2018-07-03 14:30:57 +02:00
Marcin Kuzminski
2306cd3189
base: drop usage of md5 for calculation of version hash.
2018-07-03 14:28:50 +02:00
Marcin Kuzminski
edc9dc5771
caches: don't use deprecated md5 for key calculation.
...
- md5 isn't a valiable option for compliance reasons
2018-07-03 14:27:32 +02:00
Marcin Kuzminski
225757aaf3
hooks: made the callback host configurable.
...
- This allows easier docker container seperation
2018-07-03 11:57:03 +02:00
Marcin Kuzminski
f7b8c0f22a
gevent: use cython compatible option. so no keyword argument specified.
2018-07-03 09:48:20 +02:00
Marcin Kuzminski
3fceb045dc
gevent: fix new switch version
2018-07-02 14:03:34 +02:00
Marcin Kuzminski
06ef71e55a
auth: code style, more python3 compat changes.
2018-06-27 17:05:24 +02:00
Marcin Kuzminski
e9d1e470b6
auth: code cleanup, use set literals for py3 compat
2018-06-27 17:26:15 +02:00
Marcin Kuzminski
eb7e9c6ce1
logging: updated logging information on IP checks.
2018-06-27 16:54:58 +02:00
Marcin Kuzminski
e32681449c
caches: switch other permission cache to use same cache region.
2018-06-22 18:35:41 +02:00
Marcin Kuzminski
2044170b28
caches: use different namespaces for conditional_cache wrapper.
...
Before we used one namespace for ALL meaning caches were kept in single file, or single DB row.
While this makes sense for single functions, a per-user, per-group cache should be divided to single files.
2018-06-22 17:31:48 +02:00
Marcin Kuzminski
9c384313d1
auth: update logging for permission calculation function
2018-06-22 13:34:58 +02:00
Marcin Kuzminski
42c80fe075
shadow-repos: use numeric repo id for creation of shadow repos.
...
- Fixes a problem after rename or move into repository group.
2018-06-21 14:04:06 +02:00
Marcin Kuzminski
8bb0fee018
audit-logs: improve help text, and expose all audit commands for easier filtering +ui fixes
2018-06-18 23:28:06 +02:00
Marcin Kuzminski
e0b621ed56
permissions: enable caching by controlling short_term cache settings.
2018-06-15 19:36:19 +02:00
Marcin Kuzminski
1bc95ca628
debug: add new custom logging to track unique requests across systems.
2018-06-15 19:34:39 +02:00
Marcin Kuzminski
367a32a69a
git: use force fetch and update for target ref. This solves a case
...
when in PRs a target is force updated and is out of sync. Before
we used a pull which --ff-only fails obviosly because two are out of
sync. This change uses new logic that resets the target branch according to the
source target branch allowing smooth merge simulation.
2018-06-08 15:42:01 +02:00
Marcin Kuzminski
ce7620668d
git: add option to skip stderr logging.
2018-06-08 11:54:41 +02:00
Marcin Kuzminski
1a3259da85
git: quote fake merge user to prevent this command to potentially fail
2018-06-05 00:07:14 +02:00
Marcin Kuzminski
ede517c6b1
shadow-repos: use safer way to destroy shadow repositories.
...
we had reported errors on removal of shadow repos. Not reproduced, however
suspecting are filesystem sync/symlink race-conditions on shared storage.
End result were existing shadow-repo directories that tricked rhodecode
into thinking shadow repos is existing, but infact it was a dummy
structure semi-removed. Using shutil.move we ENSURE rhodecode doesn't
read those back even if removal fails.
2018-06-05 09:53:29 +02:00
Marcin Kuzminski
998cfa7aaa
email: fixed logging on smtp library.
2018-05-28 18:12:58 +02:00
Marcin Kuzminski
3a3b980003
svn: fix usage of http exception from webob to pyramid one.
...
Webob exception had an condition that was unfilled for svn causing unexpected 500s.
2018-05-28 17:13:59 +02:00
Marcin Kuzminski
027132e56b
db: don't propagate ping connection option into engine configuration as it's an internal flag for rhodecode.
2018-05-28 16:44:14 +02:00
Marcin Kuzminski
ce37751c44
sqlalchemy: allow ping connection using dedicated flag for sqlachemy.
...
- this is usefull flag but we don't need it to be connected to debug flag.
2018-05-23 13:15:25 +02:00
Marcin Kuzminski
c067ed3ca8
beaker: fix cache sqlalchemy options.
2018-05-23 12:36:00 +02:00
Marcin Kuzminski
213cf5463d
release: merge back stable branch into default
2018-05-15 16:04:13 +02:00
Marcin Kuzminski
b929a9a3c9
hooks: execute web-based hooks for SVN
2018-05-14 14:22:28 +02:00
Marcin Kuzminski
382b0cf748
mercurial: compatability changes for mercurial 4.6.0 release
2018-05-09 21:40:20 +02:00
Marcin Kuzminski
91718020e4
diff-cache: use bz2 to reduce diff-cache size.
2018-04-18 17:50:32 +02:00
Marcin Kuzminski
ea287e0d07
diff-caches: show count and size in caches view per repository.
2018-04-18 16:52:40 +02:00
Marcin Kuzminski
7d870ea83a
mercurial: protocol security updates.
...
- fixes Mercurial CVE for lack of permissions checking on mercurial batch commands
- more strict checks for permissions, now default to push instead of pull
to be always on safe side.
- decypher batch commands and pick top-most permission to be used
2018-04-25 13:10:52 +02:00
Bartłomiej Wołyńczyk
4637dd151e
caching: add option to cache diffs for commits and pull requests.
...
- new option for vcs settings to enable caching of diffs and commits
- enables auditing of PR after closing it, and removing commits from source repo
- speed up for large PR upto 20x
- reduced memory usage
2018-04-17 18:46:20 +02:00