Skip to content
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

Client JWT verification with multiple secrets #25

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Conversation

michaelsproul
Copy link
Member

This is a breaking change that enforces JWT verification for all non-controlling clients. This makes it safe(r) to expose an Electric Eel server via HTTPS, which is now the recommended mode of access.

  • --client-jwt-secrets must point to a TOML file containing named secrets. See example-secrets.toml for an example.
  • All requests from clients must include a token authenticated with of the secrets. If a key id is provided in the claims, this will be used for fast matching. Otherwise the keys will be iterated and tried in a random order looking for a match.

@michaelsproul michaelsproul merged commit 488ad24 into main Sep 26, 2023
5 checks passed
@michaelsproul michaelsproul deleted the jwt-verification branch September 26, 2023 23:59
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