NeMo-Relay icon indicating copy to clipboard operation
NeMo-Relay copied to clipboard

[Bug]: OIDC sign-in polish: lock file mode, token lifetime in doctor, --config position in the docs

Open flazouh opened this issue 3 weeks ago • 1 comments

Current behavior

Three small problems in the OIDC sign-in of the nemo-relay CLI:

  1. nemo-relay auth creates the sign-in lock file (<session>.lock) with the default mode (0644 under umask 022). The session file next to it is 0600.
  2. nemo-relay doctor shows the access token expiry as a raw Unix time: "The access token is valid until <seconds since 1970> (Unix time)."
  3. docs/nemo-relay-cli/authentication.mdx says that auth login reads "a file passed with --config", but does not say where the flag goes. nemo-relay auth login --config path/to/config.toml fails with error: unexpected argument '--config' found.

Expected behavior

  1. The lock file is 0600 on Unix, like the session file.
  2. doctor says how long the token stays valid, for example "The access token is valid for about 3 hours."
  3. The docs say that --config is a global option and goes before auth: nemo-relay --config path/to/config.toml auth login.

Steps to reproduce

  1. Configure an oidc section and run nemo-relay auth login.
  2. Run ls -l on the sessions folder: the .lock file is -rw-r--r--.
  3. Run nemo-relay doctor: the sign-in check shows a Unix time.
  4. Run nemo-relay auth login --config path/to/config.toml: clap rejects --config.

Environment

  • NeMo Relay commit: 9ed2c9d (main)
  • OS: Linux x86_64

Impact

Low. The lock file holds no token, and the sessions folder is 0700, so nothing leaks today. The mode keeps the lock file in line with the session file. The doctor line and the docs line can confuse users during first sign-in. A fix is ready in a PR that links this issue.

Affected area

Documentation or examples, plus the nemo-relay CLI (not in the template list).

flazouh avatar Nov 10 '26 18:11 flazouh

  1. agreed
  2. I'd prefer a human-readable timestamp using default timezone semantics (YYYY-MM-DD HH:MM:SS) rather than something loose/approximate.
  3. agreed

willkill07 avatar Nov 10 '26 18:11 willkill07