You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #1187
**This PR is based on #1313**
**It implements:**
* providing a new JWT secret from the `nodebuilder/node` module to both
the node module and the rpc server.
* auth middleware for the `rpc.Server` that verifies the given token
with the server's secret
In a follow-up PR will come the ability to create an rpc client with
elevated permissions (this branch restricts client access to read-only
API methods).
…1429)
Resolves#1187
This PR adds an `auth` subcommand to `bridge`, `full` and `light` nodes.
Intended use: after a node is already initialized and started, a user
can use the CLI to generate a signed token with some given perms via the
`auth` cmd.
Example:
```
celestia bridge auth admin
```
The above command outputs a signed JWT token with admin permissions that
a user can use with `client.NewClient()` to access admin-level methods
on the node.
Reference [this
commit](2c833bc)
for the actual diff.
The text was updated successfully, but these errors were encountered: