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

feat: added support for client and frontend tokens to offline mode. #465

Merged
merged 9 commits into from
Sep 19, 2024

Conversation

chriswk
Copy link
Contributor

@chriswk chriswk commented May 15, 2024

Also assumes tokens passed in --tokens are client tokens, so if instantiated in offline mode with the current way of --tokens <token1>, another node connected to it, will get a validation result saying this token is a client token. If one wants to add frontend tokens, use --frontend-tokens.

Discussion points

Not a 100% sure we really want to add this, but it feels like a better solution than what we currently have where offline nodes just refuses any edge clients. (It still works with an offline node from a normal SDK, but Edge is not a normal SDK)

fixes: #463

…ssume tokens passed in --tokens are client tokens
@chriswk chriswk requested a review from sighphyre May 15, 2024 14:19
@chriswk chriswk self-assigned this May 15, 2024
server/src/builder.rs Fixed Show fixed Hide fixed
server/src/builder.rs Fixed Show fixed Hide fixed
Copy link

github-actions bot commented Jun 5, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chriswk chriswk enabled auto-merge (squash) September 19, 2024 09:07
@chriswk chriswk merged commit b48604c into main Sep 19, 2024
9 checks passed
@chriswk chriswk deleted the feat/addClientAndFrontendTokenToOffline branch September 19, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

UNLEASH EDGE DAISY CHAIN ISSUE
2 participants