Skip to content

Commit

Permalink
319 update (#1005)
Browse files Browse the repository at this point in the history
Add docs for 3.1.9's ping pong change.
  • Loading branch information
johrstrom authored Oct 15, 2024
1 parent bac82b7 commit 018cd8f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
42 changes: 42 additions & 0 deletions source/customizations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,48 @@ access into any compute node in our three clusters.
# /etc/ood/config/apps/shell/env
OOD_SSHHOST_ALLOWLIST="r[0-1][0-9][0-9][0-9].ten.osc.edu:o[0-1][0-9][0-9][0-9].ten.osc.edu:p[0-1][0-9][0-9][0-9].ten.osc.edu"
.. _enable-shell-ping-pong:

Enable and configure Shell Ping Pong
------------------------------------

Version 3.1 added the ability for the shell application to send and receive ping pong
messages to keep the connection alive, and thus the terminal session alive.

The drawback to this is that these persistant connections can actually outlive your
authentication timeout settings. Meaning users can have active shell sessions for much
longer than your authentication systems would normally allow. This is because the
connection was made while you were authenticated and it persists after your session
has expired.

So, to keep a conservative security posture, Open OnDemand disables ping pongs by
default letting apache timeout these connections more freely.

In addition to enabling or disabling ping pongs, there are other settings you may wish
to change.

All of these configurations are environment variables are to be placed in
``/etc/ood/config/apps/shell/env``.

Setting ``OOD_SHELL_PING_PONG`` to anything will enable ping pongs. Removing it or
commenting it out will disable ping pongs (it's disabled by default).

``OOD_SHELL_INACTIVE_TIMEOUT_MS`` controls how long a connection can be inactive
for (in milliseconds) before being closed. It defaults to 300000 milliseconds (5 minutes).

``OOD_SHELL_MAX_DURATION_MS`` controls how long a connection can exist regardless
of activity (in milliseconds). After this duration, the connection will be closed
regardless of activity. It's default is 3600000 milliseconds (1 hour).

.. code:: shell
# /etc/ood/config/apps/shell/env
OOD_SHELL_INACTIVE_TIMEOUT_MS=300000
OOD_SHELL_MAX_DURATION_MS=3600000
# OOD_SHELL_PING_PONG=false
Set OOD SSH Port
-----------------

Expand Down
3 changes: 3 additions & 0 deletions source/release-notes/v3.1-release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ The shell app has been updated so that shell sessions can last longer.
The app is better at keeping the connection alive, meaning users
will maintain shell sessions for longer.

This, however, is disabled by default since `3.1.9`. You can see more
details in :ref:`enable-shell-ping-pong`.

aarch64/arm64 and ppc64le packages
..................................

Expand Down

0 comments on commit 018cd8f

Please sign in to comment.