Skip to content

feat: allow keeping the JWT secret constant #3592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

joske
Copy link
Contributor

@joske joske commented Apr 11, 2025

Motivation

Allow a JWT web token to be specified on the command line (#3586) for keeping the JWT constant across invocations. To use, you need to pass in the private key of the node, specify a fixed 16 bytes for the JWT secret (base64 encoded) and a unix timestamp for the token validity (somewhere in the last 10 years).

Example:

snarkos start --nodisplay --network 1 --client --jwt-secret FVPjEPVAKh2f0EkRCpQkqA== --private-key APrivateKey1zkp3AdnT785GvH3gubbZAPkPg9UCcsEhkrsj15aWKovPi4R --jwt-timestamp 174437065

Test Plan

Tested manually.

@joske joske changed the title feat: allow passing in 16 bytes for the JWT secret feat: allow keeping a constant JWT Apr 11, 2025
@joske joske changed the title feat: allow keeping a constant JWT feat: allow keeping the JWT secret constant Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant