[PR #5179] [MERGED] Add Istance Version Endpoints #25183

Closed
opened 2026-08-05 06:09:38 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/5179
Author: @braginini
Created: 1/25/2026
Status: Merged
Merged: 1/25/2026
Merged by: @mlsmaycon

Base: feature/user-invite-selfhostedHead: feature/instance-version


📝 Commits (6)

  • 1da8fdf Add version endpoint
  • da2ba4d Add version endpoint
  • 60980c6 Add version endpoint
  • 92b760b Don't call GitHub endpoints in tests
  • 67bb327 Fix API definition for invite passwords
  • 8fa983e Added 422 validation_failed response to all invite-related POST endpoints:

📊 Changes

7 files changed (+621 additions, -2 deletions)

View changed files

📝 management/server/http/handler.go (+1 -0)
📝 management/server/http/handlers/instance/instance_handler.go (+35 -0)
📝 management/server/http/handlers/instance/instance_handler_test.go (+54 -0)
📝 management/server/instance/manager.go (+175 -0)
management/server/instance/version_test.go (+285 -0)
📝 shared/management/http/api/openapi.yml (+55 -1)
📝 shared/management/http/api/types.gen.go (+16 -1)

📄 Description

Describe your changes

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)

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

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • New Features

    • Added new /api/instance/version endpoint returning current and available management and dashboard versions with update availability status.
    • Strengthened password requirements: minimum 8 characters with at least one uppercase letter, one digit, and one special character.
  • Tests

    • Added comprehensive test coverage for version management functionality.

✏️ Tip: You can customize this high-level summary in your review settings.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/5179 **Author:** [@braginini](https://github.com/braginini) **Created:** 1/25/2026 **Status:** ✅ Merged **Merged:** 1/25/2026 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `feature/user-invite-selfhosted` ← **Head:** `feature/instance-version` --- ### 📝 Commits (6) - [`1da8fdf`](https://github.com/netbirdio/netbird/commit/1da8fdff9d913928b2a6bd5501bc6e8a117e99fd) Add version endpoint - [`da2ba4d`](https://github.com/netbirdio/netbird/commit/da2ba4df950104bea3a28770ceae532089511a67) Add version endpoint - [`60980c6`](https://github.com/netbirdio/netbird/commit/60980c6e17b4cecce00b48c74e76adcc12812341) Add version endpoint - [`92b760b`](https://github.com/netbirdio/netbird/commit/92b760ba22aacc9b97386c4c93b12124739ff394) Don't call GitHub endpoints in tests - [`67bb327`](https://github.com/netbirdio/netbird/commit/67bb327987c247f08941b18edee660e910a84767) Fix API definition for invite passwords - [`8fa983e`](https://github.com/netbirdio/netbird/commit/8fa983e868e049831dfde6acba93d86f99348d1a) Added 422 validation_failed response to all invite-related POST endpoints: ### 📊 Changes **7 files changed** (+621 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `management/server/http/handler.go` (+1 -0) 📝 `management/server/http/handlers/instance/instance_handler.go` (+35 -0) 📝 `management/server/http/handlers/instance/instance_handler_test.go` (+54 -0) 📝 `management/server/instance/manager.go` (+175 -0) ➕ `management/server/instance/version_test.go` (+285 -0) 📝 `shared/management/http/api/openapi.yml` (+55 -1) 📝 `shared/management/http/api/types.gen.go` (+16 -1) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added new /api/instance/version endpoint returning current and available management and dashboard versions with update availability status. * Strengthened password requirements: minimum 8 characters with at least one uppercase letter, one digit, and one special character. * **Tests** * Added comprehensive test coverage for version management functionality. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 06:09:38 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#25183