Skip to main content

SciNet Super Simple Secrets Server

Project description

SciNet Super Simple Secrets Server

S⁵ is a minimalist key manager. The server will ask for a secret (e.g. a password) and store it in memory until the client queries and receives it. The specific use case is a queued job in a high performance computing (HPC) environment that needs to use encryption, but the encryption key should not be passed in plaintext when the job is submitted.

When the server starts, it generates a random 96-byte token. The high 48 bytes are used to identify the client, and the low 48 bytes are used as a one-time pad. The client and server communicate via HTTP, despite not using transport layer security, the encrypted response provides resilience to a man-in-the-middle attack.

By default, the token is stored along with the host and port information in the user's home directory. This makes it automatically accessible to a client process running on a compute node that shares a filesystem with the node (e.g. a login node) where the server is running. If the client is not on a shared filesystem, the connection information (including the token) can be specified as command line arguments or the client file can be manually copied.

The server shuts down by default once a successful query is made, but this behaviour can be adjusted with the --success-max command line argument.

Usage

Start the server with s5server and type in the secret. The connection information is saved to ~/.s5client.json by default. If the client will be running on a node that shares a filesystem and can reach the server's node by its hostname, then nothing needs to be done. Run the client with s5client and receive the secret into standard output.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

s5-0.0.3.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

s5-0.0.3-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file s5-0.0.3.tar.gz.

File metadata

  • Download URL: s5-0.0.3.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.3

File hashes

Hashes for s5-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ffcd7f846c93948d4e095b4879f89bffc65f4b24ff5769622fcfe7f2ee830c7c
MD5 e2ece2f8c4de4b2d90ea5042cfcf4423
BLAKE2b-256 ebac8d5952f42e54ada48a36e6318fadc5eca92688d43cfd916e178aedaf342c

See more details on using hashes here.

File details

Details for the file s5-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: s5-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.3

File hashes

Hashes for s5-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ba38f0f5928d18ff3bae12d6b60ddd922db97ce125f0cb87cff72805e09d3685
MD5 3e4faa5932f9265d974a9afbfad1b5aa
BLAKE2b-256 687a5f7823a6be75223da4107c5bd2bd79efa9df8e7fe62def58db70cbbff955

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page