Skip to content

Feature: Network configuration for Network Configuration Operators - #3608

Merged
mergify[bot] merged 1 commit into
mainfrom
feature/network-configuration-operators
Oct 11, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
feature/network-configuration-operators

Conversation

@BornToBeRoot

Copy link
Copy Markdown
Owner

Changes proposed in this pull request

  • Network Interface: members of the "Network Configuration Operators" group may change the network configuration without being an administrator, if NETworkManager runs elevated (IsInRole only reports enabled groups, so the check is only true in an elevated process). Only used by Network Interface; IsAdmin is unchanged for all other tools.
  • Errors of netsh/ipconfig are no longer ignored: each command's output and exit code are checked, the first failing command stops the operation and its (localized) message is shown instead of "applied successfully". Commands that would not change anything (DHCP/DNS autoconfiguration already enabled) are skipped, since netsh fails for them.
  • The admin hint is also shown as tooltip on the disabled "Apply" in the profile context menu, and mentions the group.

Related issue(s)

To-Do

Contributing

By submitting this pull request, I confirm the following:

…3606)

- Network Interface: members of the "Network Configuration Operators" group
  may change the network configuration without being an administrator, if
  NETworkManager runs elevated (IsInRole only reports enabled groups, so the
  check is only true in an elevated process). Only used by Network
  Interface; IsAdmin is unchanged for all other tools.
- Errors of netsh/ipconfig are no longer ignored: each command's output and
  exit code are checked, the first failing command stops the operation and
  its (localized) message is shown instead of "applied successfully".
  Commands that would not change anything (DHCP/DNS autoconfiguration
  already enabled) are skipped, since netsh fails for them.
- The admin hint is also shown as tooltip on the disabled "Apply" in the
  profile context menu, and mentions the group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 11, 2026 22:03
@github-actions github-actions Bot added this to the next-release milestone Oct 11, 2026
@mergify

mergify Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Culture-specific resources override the updated permission hint with stale text that omits the newly supported group.

1 open finding
What changed in this PR

Enables Network Configuration Operators to manage network interfaces and improves command failure reporting.

Changes:

  • Adds permission checks for administrators and Network Configuration Operators.
  • Validates netsh/ipconfig exit codes and displays failures.
  • Updates UI hints and documentation.
File Description
Website/​docs/​changelog/​next-release.md Records the permission and error-reporting changes.
Website/​docs/​application/​network-interface.md Documents elevation requirements and errors.
Source/​NETworkManager/​Views/​NetworkInterfaceView.xaml Adds permission-aware hints and visibility.
Source/​NETworkManager/​ViewModels/​NetworkInterfaceViewModel.cs Uses the expanded permission check.
Source/​NETworkManager.Models/​Network/​NetworkInterface.cs Implements permissions, state detection, and command validation.
Source/​NETworkManager.Localization/​Resources/​Strings.resx Expands the English permission hint.
Source/​NETworkManager.Localization/​Resources/​Strings.Designer.cs Updates generated resource documentation.
Files not reviewed (1)
  • Source/NETworkManager.Localization/Resources/Strings.Designer.cs: Generated file

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

</data>
<data name="NetworkInterfaceConfigureAdminMessage" xml:space="preserve">
<value>Configuring the network interface requires elevated rights!</value>
<value>Configuring the network interface requires elevated rights (administrator or member of the "Network Configuration Operators" group)!</value>
@mergify
mergify Bot merged commit cfd5dfa into main Oct 11, 2026
8 checks passed
@mergify
mergify Bot deleted the feature/network-configuration-operators branch October 11, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change IPs without being administrator

2 participants