[GH-ISSUE #1276] Policy rules accepts updates with empty sources and destination fields #1995

Closed
opened 2026-08-05 00:44:55 -04:00 by saavagebueno · 1 comment
Owner

Originally created by @mlsmaycon on GitHub (Nov 1, 2023).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1276

Describe the problem
We need a validation for empty sources and destination fields in policy rules
To Reproduce
Steps to reproduce the behavior:

  1. Update a policy with an empty Rules -> Sources or Destinations

Expected behavior
The update should fail

Originally created by @mlsmaycon on GitHub (Nov 1, 2023). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1276 **Describe the problem** We need a validation for empty sources and destination fields in policy rules **To Reproduce** Steps to reproduce the behavior: 1. Update a policy with an empty Rules -> Sources or Destinations **Expected behavior** The update should fail
saavagebueno added the bugmanagement-service labels 2026-08-05 00:44:55 -04:00
Author
Owner

@TechHutTV commented on GitHub (May 9, 2026):

The management API now rejects policy rules with empty sources or destinations (or their resource equivalents). Validation landed in PR #3047. Closing as fixed; please reopen if you can still bypass validation on the latest release.

<!-- gh-comment-id:4413360948 --> @TechHutTV commented on GitHub (May 9, 2026): The management API now rejects policy rules with empty `sources` or `destinations` (or their resource equivalents). Validation landed in PR #3047. Closing as fixed; please reopen if you can still bypass validation on the latest release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#1995