OAuth

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

This file covers the oauth command family.

Commands

  • nomatron oauth rotate-signing-key

When To Use It

Nomatron’s built-in OAuth authorization server signs the access tokens it issues with an RSA key. Rotate the key on a schedule, or straight away if you think it has been exposed.

Rotating creates a new signing key and retires the current one. The retired key stays in the server’s published key set (JWKS) for up to 24 hours, so tokens signed before the rotation keep validating until they expire. Access tokens last 10 minutes by default.

Only callers with the global oauth_signing_keys rotate permission can rotate keys.

Example

bash
nomatron oauth rotate-signing-key

The command prints the new key ID (kid) and its creation time. Add --format json for machine-readable output.