NeMo-Relay
NeMo-Relay copied to clipboard
[Bug]: OIDC sign-in polish: lock file mode, token lifetime in doctor, --config position in the docs
Current behavior
Three small problems in the OIDC sign-in of the nemo-relay CLI:
nemo-relay authcreates the sign-in lock file (<session>.lock) with the default mode (0644 under umask 022). The session file next to it is 0600.nemo-relay doctorshows the access token expiry as a raw Unix time: "The access token is valid until <seconds since 1970> (Unix time)."docs/nemo-relay-cli/authentication.mdxsays thatauth loginreads "a file passed with--config", but does not say where the flag goes.nemo-relay auth login --config path/to/config.tomlfails witherror: unexpected argument '--config' found.
Expected behavior
- The lock file is 0600 on Unix, like the session file.
doctorsays how long the token stays valid, for example "The access token is valid for about 3 hours."- The docs say that
--configis a global option and goes beforeauth:nemo-relay --config path/to/config.toml auth login.
Steps to reproduce
- Configure an
oidcsection and runnemo-relay auth login. - Run
ls -lon the sessions folder: the.lockfile is-rw-r--r--. - Run
nemo-relay doctor: the sign-in check shows a Unix time. - 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).
- agreed
- I'd prefer a human-readable timestamp using default timezone semantics (YYYY-MM-DD HH:MM:SS) rather than something loose/approximate.
- agreed