nats-io/nsc

Bad diagnostic for adding user without using signing-key when operator is strict_signing_key_usage

philpennock opened this issue · 0 comments

What version were you using?

nsc 2.8.4.

What environment was the server running in?

Linux/amd64 (Ubuntu 20.04 LTS)

Is this defect reproducible?

Yes.

  1. Have an operator with the strict_signing_key_usage set to true. Optionally, forget that this is the case.
  2. Create a new account.
  3. Try to create a user in the account.
  4. See an error about "any of the following" with nothing following

Given the capability you are leveraging, describe your expectation?

A diagnostic which points me in the right direction, along the lines of:

error: operator 'foobar' has strict_signing_key_usage set, refusing to add user to account 'baz' without an account signing key

Given the expectation, what is the defect you are observing?

$ nsc add user --name pt-second-pdp-2023-12-06
Error: unable to resolve any of the following signing keys in the keystore:
[error code 1] $