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

Report offline peers to agents #728

Merged
merged 6 commits into from
Mar 7, 2023
Merged

Report offline peers to agents #728

merged 6 commits into from
Mar 7, 2023

Conversation

braginini
Copy link
Contributor

Describe your changes

The peer login expiration ACL check introduced in #714
filters out peers that are expired and agents receive a network map without that expired peers.
However, the agents should see those peers in status "Disconnected".

This PR extends the Agent <-> Management protocol by introducing a new field OfflinePeers
that contain expired peers. Agents keep track of those and display then just in the Status response.

Issue ticket number and link

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

@braginini braginini requested review from mlsmaycon, pascal-fischer and pappz and removed request for mlsmaycon March 6, 2023 17:13
gigovich
gigovich previously approved these changes Mar 7, 2023
Copy link
Contributor

@gigovich gigovich left a comment

Choose a reason for hiding this comment

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

LGTM

@braginini braginini merged commit ed4f90b into main Mar 7, 2023
@braginini braginini deleted the feature/offline_peers branch March 7, 2023 09:17
pulsastrix pushed a commit to pulsastrix/netbird that referenced this pull request Dec 24, 2023
The peer login expiration ACL check introduced in netbirdio#714
filters out peers that are expired and agents receive a network map 
without that expired peers.
However, the agents should see those peers in status "Disconnected".

This PR extends the Agent <-> Management protocol 
by introducing a new field OfflinePeers
that contain expired peers. Agents keep track of those and display 
then just in the Status response.
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.

2 participants