-
-
Notifications
You must be signed in to change notification settings - Fork 846
[management, client] Add logout feature #4268
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a logout feature that allows peers to disconnect from the NetBird management server and remove themselves. The logout functionality spans both the management server (handling logout requests) and the client daemon (providing CLI and gRPC interfaces).
- Adds a new
Logout
RPC method to the management service that deletes peers from the server - Implements client-side logout functionality through both the daemon service and CLI command
- Extends the management client interface to support logout operations
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
management/server/grpcserver.go | Implements the Logout RPC handler to delete peers from the management server |
management/proto/*.proto | Defines the Logout RPC method in the management service protobuf interface |
management/proto/*.pb.go | Generated protobuf code for the management service logout method |
management/client/*.go | Adds logout functionality to management client interface and implementations |
client/server/server.go | Implements daemon-side logout logic including connection cleanup and management server communication |
client/proto/*.proto | Defines the Logout RPC method in the daemon service protobuf interface |
client/proto/*.pb.go | Generated protobuf code for the daemon service logout method |
client/cmd/*.go | Adds CLI logout command and integrates it into the root command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Describe your changes
Issue ticket number and link
Stack
Checklist