Skip to content

[management] fix a bug with missed extra dns labels for a new peer #3798

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 5 commits into from
May 14, 2025

Conversation

crn4
Copy link
Contributor

@crn4 crn4 commented May 7, 2025

Describe your changes

during a registration of a new peer we miss to add extra dns labels to peer object

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

@Copilot Copilot AI review requested due to automatic review settings May 7, 2025 06: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 pull request fixes a bug where extra DNS labels were not set on a new peer during registration.

  • Fixes missing assignment of extra DNS labels
  • Updates the peer creation logic in the account manager
Comments suppressed due to low confidence (2)

management/server/peer.go:774

  • Add unit tests for peer registration to ensure that the ExtraDNSLabels field is correctly set on new peer objects. This will help catch any regressions in future changes.
ExtraDNSLabels: login.ExtraDNSLabels,

management/server/peer.go:774

  • Verify that the data type of login.ExtraDNSLabels matches the expected type in the nbpeer.Peer struct. If any transformation is needed due to type differences, apply it to ensure compatibility.
ExtraDNSLabels: login.ExtraDNSLabels,

Copy link

sonarqubecloud bot commented May 9, 2025

@crn4 crn4 merged commit adf494e into main May 14, 2025
35 checks passed
@crn4 crn4 deleted the fix/dnslabels-miss branch May 14, 2025 15:50
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