Home /Modules/psychiatry/README.md

README.md

psychiatry/README.md · 72 line(s) · markdown

<img align="right" src="https://github.com/mearvk/SLeeLa/blob/master/images/debian/debian-logo.png" width="75" height="75" alt="SLeeLa">

<img src="https://github.com/mearvk/SLeeLa/blob/master/images/sleela/sleela-logo-004.jpg" alt="SLeeLa">

psychiatry

Secret.key

Secret.key is a 38,246-hex-digit CSPRNG value (152,984 bits), generated with a cryptographically secure random source and stored as lowercase hexadecimal on a single line.

It is a project artifact / token, in the same spirit as ../CLASS.md and ../MIL.SPEC.md โ€” a fixed, committed random value used as a repository identifier/marker, not a live cryptographic credential.

Note. Because it lives in version control, do not treat this file as an actual secret to protect. If a genuine, protectable secret is ever needed, it must be generated out-of-band and kept out of the repository (e.g. supplied at runtime or via an ignored path), never committed.

Quiet startup verification

Every normal SLeeLa terminal launch performs a small read-only HTTPS check against the master branch psychiatry/Secret.key and compares the published value with the local Secret.key. A match is silent. If there is no connectivity, the remote file is unavailable, or the value differs, SLeeLa prints one minor startup note and continues; the check does not block startup.

keysearch โ€” verify the key against GitHub

From the SLeeLa terminal:

$> SLeeLa keysearch
SLeeLa keysearch: MATCH
  sha256=<64-hex> (38246 hex digits)

keysearch (keysearch.py, dispatched by ../bin/SLeeLa) makes a read-only HTTPS GET of the repo's published Secret.key and compares it to the local copy. Results: MATCH, MISMATCH, NOT FOUND (remote missing / offline / HTTP error), or ERROR (local key unreadable). Exit codes: 0 / 1 / 2 / 3 respectively.

It never uploads the key. Comparison is by SHA-256 digest computed on both sides, so the raw key material never leaves the machine and is never logged, and any network problem fails closed to NOT FOUND (never a false MATCH).

Configuration: SLEELA_KEY_URL overrides the remote URL (default: the repo's master-branch raw URL); SLEELA_KEY_PATH overrides the local key path.

The startup probe uses --startup internally: a matching key is silent, while mismatch/offline/unreadable states emit only the minor note described above and return success so normal SLeeLa startup is not interrupted.


SLeeLa

<p align="center"><img src="images/sleela/sleela-wordmark.svg" alt="SLeeLa โ€” The Now. The Ingredient." width="560"></p> <p align="center"><img src="https://github.com/mearvk/SLeeLa/blob/master/images/sleela-programming-language-002.jpg" alt="SLeeLa Marketing Logo" width="560"></p>