feat: add NATS NKey authentication support
Allow authentication to NATS using NKey seed files as an alternative to credentials files. NKeys use Ed25519 key pairs for authentication. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,6 +48,7 @@ nix build
|
||||
| `--flake.nats.url` | `nats://localhost:4222` | NATS server URL |
|
||||
| `--flake.nats.subject` | `nixos-exporter.remote-rev` | NATS subject for revision updates |
|
||||
| `--flake.nats.credentials-file` | | NATS credentials file (optional) |
|
||||
| `--flake.nats.nkey-seed-file` | | NATS NKey seed file (optional) |
|
||||
|
||||
## NixOS Module Options
|
||||
|
||||
@@ -68,6 +69,7 @@ services.prometheus.exporters.nixos = {
|
||||
url = "nats://localhost:4222";
|
||||
subject = "nixos-exporter.remote-rev";
|
||||
credentialsFile = null; # Optional path to credentials file
|
||||
nkeySeedFile = null; # Optional path to NKey seed file
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user