Commit graph

51 commits

Author SHA1 Message Date
RhodeCode Admin
d00bf18b2d fix(tests): fixed svn tests 2024-03-04 12:54:09 +01:00
RhodeCode Admin
104352ccda fix(svn): more binary protocol svn ssh fixes 2024-03-03 08:40:12 +01:00
RhodeCode Admin
747534f76d fix(svn-ssh): fixed svn ssh wrapper 2024-03-01 13:40:11 +01:00
Serhii Ilin
f56c72e441 feat(svn-config): updated with the latest changes. 2024-03-01 12:49:01 +02:00
Serhii Ilin
51a688c0c0 refactor(ssh-wrapper): changed SSHVcsServer to SshVcsServer, updated call_service_api method. 2024-02-28 11:52:11 +02:00
RhodeCode Admin
fc0ee0e99b feat(ssh-wrapper-speedup): major rewrite of code to address imports problem with ssh-wrapper-v2
- use bootstrapped settings rather than config
- use more code split to make sure we don't import heavy code
2024-02-28 09:30:58 +01:00
Serhii Ilin
25f36e9654 feat(svn-config): moved svn related config keys to *.ini file. Fixes: RCCE-60 2024-02-28 09:34:14 +02:00
RhodeCode Admin
2f216c3acf feat(ssh-wrapeprs): moved the setup logging into common function to not relly on v1 codebase 2024-02-27 09:48:58 +01:00
Serhii Ilin
16c169bec2 fix(ssh): Added alternative SshWrapper and changes needed to support it + service api. Fixes: RCCE-6 2024-02-19 13:49:51 +02:00
RhodeCode Admin
8534f3602b fix(ssh): add pull fix into pre_pull hook 2024-02-16 07:45:24 +01:00
RhodeCode Admin
034377cec3 feat(ssh-wrapper): added pre/post pull hooks on top of git for ssh backend.
- this makes it consistent with the http backend and actually adds audit logging into the ssh pulls for git
2024-02-15 19:58:58 +01:00
Serhii Ilin
86bc980004 feat(celery-hooks): added all needed changes to support new celery backend, removed DummyHooksCallbackDaemon, updated tests. Fixes: RCCE-55 2024-02-12 11:38:03 +02:00
Serhii Ilin
6192f14c32 feat(metric): added new metric calculation. Fixes: RCCE-5 2024-01-17 17:19:42 +02:00
RhodeCode Admin
4bbb30fa06 modernize: updates for python3 2023-07-18 14:45:20 +02:00
RhodeCode Admin
4026ee36ee apps: modernize for python3 2023-07-18 14:24:37 +02:00
RhodeCode Admin
42301154fc copyrights: updated for 2023 2023-07-18 11:57:27 +02:00
RhodeCode Admin
c231b4c990 apps: various fixes and improvements for python3 2023-07-18 11:39:51 +02:00
RhodeCode Admin
abbc465e47 core: multiple fixes to unicode vs str usage
- python3 fixes
- import fixes
- list vs iterators
2023-07-18 11:17:17 +02:00
RhodeCode Admin
006cbc84e0 apps: removed utf8 marker 2023-07-18 10:20:56 +02:00
RhodeCode Admin
0c53201403 python3: fixed urllib usage 2023-03-10 10:01:53 +01:00
RhodeCode Admin
c3da01c179 ssh-wrapper: perf optimizations
- make key timestamp update pure sql so we don't generate model import overhead
- code cleanups
2023-03-08 14:57:45 +01:00
RhodeCode Admin
255d0e78ee python3: fix import configparser 2023-03-06 23:30:53 +01:00
RhodeCode Admin
f7091556fd python3: fixed urlparse import 2023-03-06 23:02:03 +01:00
RhodeCode Admin
c691bf8c9a statsd/audit-logs: cleanup push/pull user agent code.
- add normalization
- add user-agent tag into statsd call so we can track protocol/vcs type usage
- internal merge also sends in repo type
2023-01-21 14:38:37 +01:00
RhodeCode Admin
5df5d7893b ssh: handle subrepos better 2021-06-23 21:40:40 +02:00
RhodeCode Admin
1f15dd1741 ssh: use pre-compiled backends for faster matching of vcs detection. 2021-06-23 21:38:16 +02:00
Milka Kuzminski
712064268e ssh: allow clone by ID via SSH operations. 2021-03-04 22:08:18 +01:00
Marcin Kuzminski
dec6e7afda permissions: rename write+ to write or higher for more explicit meaning. 2020-07-24 12:23:53 +02:00
Marcin Kuzminski
fe96e16646 code: update copyrights to 2020 2020-04-16 00:34:52 +02:00
Daniel Dourvaris
fef1c89222 svn: explicitly specify tunnel-user to properly map rhodecode username on svn commit via SSH backend
- fixes #5608
2020-03-31 17:39:58 +02:00
Daniel Dourvaris
bc26425632 svn: fixed case of wrong extracted repository name for SSH backend. In cases
where we commited to a nested subdirs SVN reported the access path with the subdir paths in it.
We couldn't then match that extended name into proper rhodecode repository for ACL checks.

- Current implementation gives an slight overhead as we have to lookup all repositories
- fixes #5606
2020-03-31 09:25:37 +02:00
Marcin Kuzminski
52b560fe7d ssh: fix invocation of custom hgrc 2019-05-08 09:49:53 +02:00
Marcin Kuzminski
c6963cf66b ssh: call custom hooks via SSH backend 2019-04-17 12:39:26 +02:00
Marcin Kuzminski
d693a556b4 Mercurial: fix ssh-server support for UI objects
- fixed evolve/topic usage
- fixed propagation of publishing and extension flags
2019-04-07 13:39:06 +02:00
Marcin Kuzminski
bd1a9c8201 docs: updated copyrights to 2019 2019-01-02 18:13:27 +01:00
Marcin Kuzminski
3a43ded6b6 hooks: pass in store_path into env for hooks. 2018-09-26 12:14:37 +02:00
Marcin Kuzminski
08d3f6b83b branch-permissions: enabled branch permissions checks for SSH backend. 2018-08-29 16:41:52 +02:00
Marcin Kuzminski
a55becaad1 ssh: improve logging, and make the UI show last accessed date for key. 2018-08-29 14:06:51 +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
0d8040e6fa bootstrap: allow setting certain env flags for usage in CLI scripts.
- we can catch that later in pyramid and skip certain heavy actions to speed-up CLI invokation
2018-03-01 16:42:35 +01:00
Marcin Kuzminski
3e1942b6c6 svn: fixed tests for svn backend. 2018-02-19 13:40:07 +01:00
Marcin Kuzminski
b5b6c94fc2 ssh: fix problems with backend and ssh clones. 2018-02-18 12:24:44 +01:00
Marcin Kuzminski
00b45c1fa7 release: update copyright year to 2018 2018-01-19 17:13:16 +01:00
Marcin Kuzminski
19744d8230 vcs-ops: store user_id inside the extras for vcs context operations.
- we'll use this one for bootstrap of async tasks.
2017-11-30 17:41:05 +01:00
Marcin Kuzminski
af533f47d8 compat: use py3 compatible configparser in all places. 2017-11-15 20:35:22 +01:00
Marcin Kuzminski
15972afecb ssh: use proper way of extracting the HOOK_PROTOCOL out of vcssettings.
- it might be not stored inside the .ini file so we should use the config
that has proper defaults, and it's used in many other places.
2017-11-06 11:43:38 +01:00
Marcin Kuzminski
82baccf66d ssh: prevent exceptions when user associated to stored old key is not found. 2017-11-03 13:07:02 +01:00
Marcin Kuzminski
38c78cd493 ssh: allow customizing the base_url for running application.
Allows proper URLs inside events when executing on SSH calls.
2017-10-25 11:48:03 +02:00
Marcin Kuzminski
d394c2653a ssh-support: enabled full handling of all backends via SSH.
- run callback deamons
- run proper authentication checks
- add relative loging.
- fixes #5312
2017-10-24 23:48:14 +02:00
Marcin Kuzminski
ba710e874d ssh-support: don't use API calls to fetch the data.
We now rely on pure bootstrap executable that has access to the database and can
check things directly without any API calls.
2017-10-23 16:09:50 +02:00