nats-account-server icon indicating copy to clipboard operation
nats-account-server copied to clipboard

Is `nats-io/jwt/v2` not supported with `nats-account-server` ?

Open masudur-rahman opened this issue 3 years ago • 1 comments

I created an operator using nats-io/jwt/v2 library. Then I used that as operatorjwtpath in config file. But when I started nats-account-server, it's showing unexpected "ed25519-nkey" algorithm for operator jwt.

$ cat nats-account-server.conf
operatorjwtpath: "/home/masud/go/src/github.com/masudur-rahman/demo-cloudevents/nats/confs/KO.jwt"
http {
    port: 9090
}
store {
    dir: "/tmp/as_store",
    readonly: false,
    shard: true
}
$ nats-account-server -c nats-account-server.conf
2020/09/14 16:34:16.412009 [INF] loading configuration from "/home/masud/nats-account-server.conf"
2020/09/14 16:34:16.412332 [INF] starting NATS Account server, version 0.8.4
2020/09/14 16:34:16.412378 [INF] server time is Mon Sep 14 16:34:16 +06 2020
2020/09/14 16:34:16.412409 [INF] loading operator from /home/masud/go/src/github.com/masudur-rahman/demo-cloudevents/nats/confs/KO.jwt
2020/09/14 16:34:16.412612 [ERR] unexpected "ed25519-nkey" algorithm
2020/09/14 16:34:16.412632 [INF] stopping account server
2020/09/14 16:34:16.412644 [INF] http stopped

masudur-rahman avatar Sep 14 '20 11:09 masudur-rahman

@masudur-rahman did you build the account server from source/main or did you use a released version? Until we make jwt/v2 official and also release nsc/nats-account-server you have to build it manually.

matthiashanel avatar Feb 08 '21 19:02 matthiashanel