Skip to content

[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

Merged
merged 3 commits into from
Aug 4, 2025
Merged

[management, client] Add logout feature #4268

merged 3 commits into from
Aug 4, 2025

Conversation

lixmal
Copy link
Collaborator

@lixmal lixmal commented Aug 1, 2025

Describe your changes

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

@Copilot Copilot AI review requested due to automatic review settings August 1, 2025 21:59
Copy link
Contributor

@Copilot Copilot AI left a 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

crn4
crn4 previously approved these changes Aug 1, 2025
Copy link
Contributor

@crn4 crn4 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

sonarqubecloud bot commented Aug 2, 2025

@lixmal lixmal merged commit b5ed948 into main Aug 4, 2025
52 of 53 checks passed
@lixmal lixmal deleted the logout branch August 4, 2025 08:17
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.

3 participants