Sheng
2a46b52eac
Close websocket if there is no corresponding ssh connection
2 years ago
Sheng
9a7cfe767c
Use uuid4 to generate id for Python3.5 Python3.4 Python2.7
2 years ago
Shengdun Hua
a3cb94b45e
Merge pull request #306 from klarose/handle-closed-worker
...
do not process message for closed workers
2 years ago
Shengdun Hua
7b18eac7a6
Merge pull request #305 from klarose/more-secure-worker-id
...
use secrets to generate worker id
2 years ago
Kyle Larose
f0e2ddb821
do not process message for closed workers
...
WsockHandler stores a weak reference to the ssh backend worker. The
worker closes itself if the backend connection closes (e.g. the user
exists the ssh session). That happens in parallel to the websocket
handler processing messages, so it is possible for a message to arrive
when the worker no longer has any strong references, leading to an
exception being thrown.
Handle this case by treating the None worker the same way we do invalid
messages: by simply returning.
2 years ago
Kyle Larose
1b62f379ed
use secrets to generate worker id
...
The worker ID right now is typically based off the address of an object
in memory. This could be guessed. While the worker is tied to a
specific IP, there is a chance an off-path attacker could be hosted
behind the same IP as the caller. They could possibly guess the worker
id of an unclaimed session by observing the sequence of IDs presented to
themselves, leading to them gaining access to an already authenticated
SSH session.
Use the python secrets module to generate a cryptographically secure
token to use as the worker ID. This shoud be much harder to guess.
2 years ago
Sheng
ee24eb7f65
Fixed a bug of getting custom font url
2 years ago
Shengdun Hua
4aec063197
Merge pull request #284 from kensonman/alpine
...
Change the Docker base image from python:3-slim to python:3-alpine.
3 years ago
Kenson Man
309d912985
Change the Docker base image from python:3-slim to python:3-alpine.
...
The final image will be ~79.6MB instead of 163MB. It has 48% smaller.
3 years ago
Sheng
a9d959ffb7
Bump to version 1.6.0
3 years ago
Sheng
97e6d25556
Support Python 3.9
3 years ago
Shengdun Hua
685e1a7df1
Merge pull request #275 from rlucia/master
...
65535/tcp is a valid port number
3 years ago
Rocco Lucia
3c0b0fb332
65535/tcp is a valid port number
3 years ago
Sheng
86c98dacc4
Use decodeURIComponent instead of decodeURI
3 years ago
Sheng
11bd7fea47
Moved some codes into else block
3 years ago
Shengdun Hua
cd3c747747
Merge pull request #270 from Zotil/encoding_timeout
...
timeout on exec_command
3 years ago
Carlos Martínez
c89fcc1da9
fix line length
3 years ago
Carlos Martínez
00a4a77243
timeout on exec_command
3 years ago
Shengdun Hua
d74196eb00
Merge pull request #237 from fakeyw/dev_set_font_color
...
Add url param to change font color
3 years ago
fakeyw
3192cb006c
README add set_font_color example
3 years ago
fakeyw
e25751c132
found the way to change font color
3 years ago
Sheng
ddbb2c3fb1
Ignore invalid font size
3 years ago
Shengdun Hua
de828cbabf
Merge pull request #234 from yc5/patch-1
...
update readme images with relative links
3 years ago
yc5
0d14b8d4ae
update readme images with relative links
3 years ago
Shengdun Hua
e63f2674a3
Merge pull request #233 from joshua5201/master
...
Add fontsize url parameter
3 years ago
Tsung-en Hsiao
e4657761c9
Add fontsize url parameter
3 years ago
Shengdun Hua
2f0d5809ae
Merge pull request #209 from svengo/patch-1
...
Update Dockerfile
4 years ago
Sven Gottwald
8238a49554
Update Dockerfile
...
For security reasons, run the Docker container as an unprivileged user
4 years ago
Sheng
7b8f473ba6
Changed the type of two options into float
4 years ago
Sheng
d54f5b547a
Use options.delay instead of DELAY
4 years ago
Sheng
063b0ee5cf
Bump version to 1.5.3
4 years ago
Sheng
def4c9e653
Updated travis.yml
4 years ago
Sheng
11cc534e48
Use pytest 4.6+
4 years ago
Sheng
760c74a2f7
Use selector event loop for Python 3.8+ on windows
4 years ago
Sheng
19d816f991
Check if channel is closed first when error occurs on reading or writing
4 years ago
Shengdun Hua
596e12d864
Merge pull request #181 from Pofilo/upgrade_paramiko
...
upgrade paramiko to 2.7.2
4 years ago
pofilo
2f53ee5551
upgrade paramiko to 2.7.2
4 years ago
Sheng
51d527fe75
Fixed typo
5 years ago
Sheng
884ac27d5c
Bump version to 1.5.2
5 years ago
Sheng
1fb2fe1e87
Added support for python 3.8
5 years ago
Sheng
396013e14f
Added python 3.8
5 years ago
Sheng
d291199186
Updated requirements.txt
5 years ago
Sheng
815783d6b0
Use warning instead of warn
5 years ago
Sheng
5f4978a994
Set utf-8 as the default encoding if we cannot detect it
5 years ago
Sheng
795875807b
Added two options for user configuration
5 years ago
Sheng
32d7236630
To generate more friendly error message
5 years ago
Shengdun Hua
0afc045f77
Merge pull request #127 from Chunters/help-update
...
additional help description
5 years ago
CHunter
6be01b94b6
additional help description
...
For the --encode option
5 years ago
Sheng
f2c9766c65
Bump version to 1.5.1
5 years ago
Sheng
83f739ca35
Added test for check_encoding_setting
5 years ago