ssh: embedded ssh support
- updated command generation and added debug flag - updated .ini config to have ALL required components to run SSH commands - rcssh-wrapper now is embedded and pinned into version of enterprise - update ssh_support configration - implements #5343
This commit is contained in:
parent
3ea8958a92
commit
034abca8dc
16 changed files with 1813 additions and 37 deletions
|
|
@ -33,6 +33,7 @@ from rhodecode.lib import user_sessions
|
|||
from rhodecode.lib.utils2 import safe_int
|
||||
from rhodecode.model.db import UserIpMap
|
||||
from rhodecode.model.scm import ScmModel
|
||||
from rhodecode.model.settings import VcsSettingsModel
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
|
@ -74,6 +75,35 @@ def get_server_info(request, apiuser):
|
|||
return server_info
|
||||
|
||||
|
||||
@jsonrpc_method()
|
||||
def get_repo_store(request, apiuser):
|
||||
"""
|
||||
Returns the |RCE| repository storage information.
|
||||
|
||||
:param apiuser: This is filled automatically from the |authtoken|.
|
||||
:type apiuser: AuthUser
|
||||
|
||||
Example output:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
id : <id_given_in_input>
|
||||
result : {
|
||||
'modules': [<module name>,...]
|
||||
'py_version': <python version>,
|
||||
'platform': <platform type>,
|
||||
'rhodecode_version': <rhodecode version>
|
||||
}
|
||||
error : null
|
||||
"""
|
||||
|
||||
if not has_superadmin_permission(apiuser):
|
||||
raise JSONRPCForbidden()
|
||||
|
||||
path = VcsSettingsModel().get_repos_location()
|
||||
return {"path": path}
|
||||
|
||||
|
||||
@jsonrpc_method()
|
||||
def get_ip(request, apiuser, userid=Optional(OAttr('apiuser'))):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue