Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
coco
Commits
572e8551
Unverified
Commit
572e8551
authored
Dec 12, 2018
by
老广
Committed by
GitHub
Dec 12, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #134 from jumpserver/dev
Dev
parents
a766b091
9801f751
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
3 deletions
+9
-3
app.py
coco/app.py
+1
-1
config.py
coco/config.py
+1
-0
interface.py
coco/interface.py
+1
-1
conf_example.py
conf_example.py
+4
-0
alpine_requirements.txt
requirements/alpine_requirements.txt
+1
-0
requirements.txt
requirements/requirements.txt
+1
-1
No files found.
coco/app.py
View file @
572e8551
...
...
@@ -20,7 +20,7 @@ from .session import Session
from
.models
import
Connection
__version__
=
'1.4.
4
'
__version__
=
'1.4.
5
'
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))
logger
=
get_logger
(
__file__
)
...
...
coco/config.py
View file @
572e8551
...
...
@@ -277,6 +277,7 @@ access_key_path = os.path.abspath(os.path.join(root_path, 'keys', '.access_key')
default_config
=
{
'NAME'
:
socket
.
gethostname
(),
'CORE_HOST'
:
'http://127.0.0.1:8080'
,
'BOOTSTRAP_TOKEN'
:
os
.
environ
.
get
(
"BOOTSTRAP_TOKEN"
)
or
'PleaseChangeMe'
,
'ROOT_PATH'
:
root_path
,
'DEBUG'
:
True
,
'BIND_HOST'
:
'0.0.0.0'
,
...
...
coco/interface.py
View file @
572e8551
...
...
@@ -176,7 +176,7 @@ class SSHInterface(paramiko.ServerInterface):
'command'
:
command
})
self
.
event
.
set
()
return
Fals
e
return
Tru
e
def
check_channel_forward_agent_request
(
self
,
channel
):
logger
.
debug
(
"Check channel forward agent request:
%
s"
%
channel
)
...
...
conf_example.py
View file @
572e8551
...
...
@@ -17,6 +17,10 @@ class Config:
# Jumpserver项目的url, api请求注册会使用
# CORE_HOST = os.environ.get("CORE_HOST") or 'http://127.0.0.1:8080'
# Bootstrap Token, 预共享秘钥, 用来注册coco使用的service account和terminal
# 请和jumpserver 配置文件中保持一致,注册完成后可以删除
# BOOTSTRAP_TOKEN = "PleaseChangeMe"
# 启动时绑定的ip, 默认 0.0.0.0
# BIND_HOST = '0.0.0.0'
...
...
requirements/alpine_requirements.txt
0 → 100644
View file @
572e8551
krb5-dev sshpass libffi-dev libressl-dev linux-headers
requirements/requirements.txt
View file @
572e8551
...
...
@@ -19,7 +19,7 @@ itsdangerous==0.24
Jinja2==2.10
jmespath==0.9.3
jms-storage==0.0.20
jumpserver-python-sdk==0.0.5
1
jumpserver-python-sdk==0.0.5
3
MarkupSafe==1.0
oss2==2.4.0
paramiko==2.4.1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment