Skip to main content

PyPI Badge Read the Docs Code style: black

contextualise-ssh-server

Contextualise motley-cue and pam-ssh-oidc on a VM Server

Installation

contextualise-ssh-server is available on PyPI. Install using pip:

pip install contextualise_ssh_server

Configuration

Config is read from /etc/contextualise_ssh_server.conf

There is a default config file in the place where pip installs this package

There you will also find templates for motley_cue.conf and feudal_adapter.conf

Environment Variables

These control the behaviour:

  • SSH_AUTHORISE_OTHERS_IN_MY_VO: If set to a nonempty value ALL members of ALL VOs of the user will be authorised to log in.

  • SSH_AUTHORISE_VOS: If the above variable is not set and this variable specifies a json list of VOs (actually AARC-G069/G027 Entitlements) to authorise.

    Example: export SSH_AUTHORISE_VOS="['urn:mace:egi.eu:group:cryoem.instruct-eric.eu:admins:role=owner#aai.egi.eu', 'urn:mace:egi.eu:group:umsa.cerit-sc.cz:admins:role=owner#aai.egi.eu']

Usage

The tools will output the two config files motley_cue.conf and feudal_adapter.conf in the folder in which it is called.

Those need to be placed in /etc/motley_cue with the access token of the user as the only parameter:

contextualise_ssh_server <OIDC_ACCESS_TOKEN>

PAM

For enabling and disabling tokens in pam, you can use the scripts enable-pam-ssh.sh and disable-pam-ssh.sh

They are installed into the same folder as the python file, which you can find with contextualise_ssh_server -b

VM Integration

Install packages to VM image:

yum install motley-cue pam-ssh-oidc

Include this in the VM startup:

# enable tokens in pam:
`contextualise_ssh_server -b`/enable-pam-ssh.sh

# create motley-cue config
cd /tmp
contextualise_ssh_server $USER_OIDC_ACCESS_TOKEN

# place them in /etc/motley_cue/ 
sudo cat motley_cue.conf     > /etc/motley_cue/motley_cue.conf
sudo cat feudal_adapter.conf > /etc/motley_cue/feudal_adapter.conf

Metadata

Release files for contextualise-ssh-server 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for contextualise-ssh-server 0.9.0
File Size Uploaded Provenance Actions
contextualise_ssh_server-0.9.0.tar.gz 21.9 kB Without provenance Details for contextualise_ssh_server-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for contextualise-ssh-server 0.9.0
File Interpreter ABI Platform Actions
contextualise_ssh_server-0.9.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for contextualise_ssh_server-0.9.0-py2.py3-none-any.whl

Total release size: 39.4 kB

Release files / contextualise_ssh_server-0.9.0.tar.gz

Download URL contextualise_ssh_server-0.9.0.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1ba99f0c08a7e25f0c9f5a27a52cb276af10d53eb44451c2fde5dc0087b90289
BLAKE2b-256 checksum
How to use checksums
471977e4baa4539d2efa7649bfc827c75f3284e246b606f4f0c962155fe89f5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / contextualise_ssh_server-0.9.0-py2.py3-none-any.whl

Download URL contextualise_ssh_server-0.9.0-py2.py3-none-any.whl
Size 17.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
30215f7b6e828609e1f58fd447e0b6efdf2fed26f57da884395f6cd9ba1366e3
BLAKE2b-256 checksum
How to use checksums
1fdd489c5350f6f180540bc580e8e8cba6a2b2a96c38c839d2c7c024a5ee375d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for contextualise-ssh-server 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page