Skip to content

Commit 9c33116

Browse files
committed
Fix doc
1 parent 88b3cfd commit 9c33116

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ sudo llng-pam-enroll
539539

540540
1. **Protect configuration files**: `/etc/security/pam_llng.conf` and `.token` should be readable only by root
541541
2. **Use TLS**: Always use HTTPS for portal_url
542-
3. **Server tokens**: Treat like SSH private keys; rotate if compromised
542+
3. **Server tokens**: Server tokens are automatically rotated via refresh token mechanism (`token_rotate_refresh = true` by default). If you suspect compromise, re-enroll the server with `llng-pam-enroll`
543543
4. **Backup access**: Keep a root password or console access as fallback
544544

545545
## License

SECURITY.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,14 @@ The PAM module authenticates to the LLNG server using:
5656
| Setting | Description |
5757
|---------|-------------|
5858
| `server_token_file` | Path to file containing server bearer token |
59-
| `server_group` | Server group name _(default: "default")_ |
59+
| `server_group` | Server group name (default: "default") |
60+
| `token_rotate_refresh` | Automatically rotate refresh tokens (default: true) |
6061

61-
The server token should be stored in a file with restricted permissions _(0600)_ owned by root.
62+
The server token should be stored in a file with restricted permissions (0600) owned by root.
63+
64+
### Automatic Token Rotation
65+
66+
When `token_rotate_refresh = true` (default), the module automatically rotates the refresh token after each successful token refresh. This limits the window of opportunity if a token is compromised, as stolen tokens become invalid after the next legitimate use.
6267

6368
## Token Cache Security
6469

0 commit comments

Comments
 (0)