Skip to content

[HorizonDB] Validate pool firewall rules and add cluster authentication commands - #10611

Merged
Yeming Liu (isra-fel) merged 7 commits into
Azure:mainfrom
rmendiza:feature-horizondb-firewall
Nov 23, 2026
Merged

Yeming Liu (isra-fel) merged 7 commits into
Azure:mainfrom
rmendiza:feature-horizondb-firewall

Conversation

@rmendiza

@rmendiza rmendiza commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

🤖 PR Validation — ❌ Action needed

Breaking Changes Suppressions
❌ 1 ⚠️ 4 added
❌Azure CLI Extensions Breaking Change Test
❌horizondb
rule cmd_name rule_message suggest_message
❌ 1008 - ParaPropAdd horizondb cluster pool firewall-rule create cmd horizondb cluster pool firewall-rule create update parameter end_ip_address: added property required=True please remove property required=True for parameter end_ip_address of cmd horizondb cluster pool firewall-rule create
❌ 1008 - ParaPropAdd horizondb cluster pool firewall-rule create cmd horizondb cluster pool firewall-rule create update parameter start_ip_address: added property required=True please remove property required=True for parameter start_ip_address of cmd horizondb cluster pool firewall-rule create
⚠️ 1011 - SubgroupAdd horizondb cluster authentication sub group horizondb cluster authentication added

This PR adds warning or check suppressions. Fix the underlying warning where possible and justify each remaining suppression in a code comment or the PR description.

4 added suppressions
File Line Kind Code
src/horizondb/azext_horizondb/aaz/latest/horizondb/cluster/authentication/password/custom.py 23 pylint validate = password._fmt # pylint: disable=protected-access
src/horizondb/azext_horizondb/aaz/latest/horizondb/cluster/authentication/password/custom.py 32 pylint password._fmt = validate_without_echo # pylint: disable=protected-access
src/horizondb/azext_horizondb/tests/latest/test_horizondb_authentication_scenario.py 34 skipped test self.skipTest('Authentication cassette missing; record explicitly in a disposable subscription.')
src/horizondb/azext_horizondb/tests/latest/unittest_firewall_rule.py 82 pylint }}, schema_builder=Update.FirewallRulesGet._build_schema_on_200) # pylint: disable=protected-access

Related commands

az horizondb cluster pool firewall-rule {create,update}, az horizondb cluster authentication list, and az horizondb cluster authentication password {show,create,update,wait}.

Use create for a new pool firewall rule and update for an existing rule. Validate the effective IPv4 range before writing and warn which range is being allowed; two 0.0.0.0 bounds get an explicit all-Azure-resources warning.

Add password authentication for 2026-10-01-preview, including secure prompting, sparse PATCH updates, --no-wait, and wait. Consolidates #10610 into one preview release.

Companion model PR: Azure/aaz#1179

Validation

  • azdev style horizondb and medium-severity command-table lint
  • python scripts/ci/test_index.py -q (7 passed, 2 skipped)
  • Preview version and release notes updated (1.0.0b11).

66 unit tests passed. Recorded pool lifecycle playback passed with outbound connections blocked. The authentication recording was generated against a live cluster and replayed successfully with outbound sockets blocked. Both password writes were redacted.

rmendiza and others added 4 commits November 20, 2026 13:58
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 623396a5-dd46-4d21-9278-63b6e564f9b3
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 623396a5-dd46-4d21-9278-63b6e564f9b3
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 623396a5-dd46-4d21-9278-63b6e564f9b3
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 623396a5-dd46-4d21-9278-63b6e564f9b3
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

)
class Create(AAZCommand):
"""Create a HorizonDB pool firewall rule.
"""Create or replace a HorizonDB pool firewall rule.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

remove replace

Comment thread src/horizondb/README.md Outdated
az horizondb cluster pool firewall-rule create --resource-group example-resource-group --cluster-name example-cluster --pool-name example-pool --name client-access --start-ip-address 203.0.113.10 --end-ip-address 203.0.113.10
```

`create` replaces a rule of the same name and requires both ends of the inclusive

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Create is not to be used as replace.

@nasc17

nasc17 commented Nov 20, 2026

Copy link
Copy Markdown
Member

Show warning:

  • Configuring server firewall rule to accept connections from '%s' to '%s'...', start_ip_address, end_ip_address

  • if user passes in start_ip_address == '0.0.0.0' and end_ip_address == '0.0.0.0' "Configuring firewall rule to accept connections from all Azure resources..."

rmendiza and others added 2 commits November 23, 2026 11:20
…t allowed access

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 623396a5-dd46-4d21-9278-63b6e564f9b3
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 623396a5-dd46-4d21-9278-63b6e564f9b3
@rmendiza rmendiza changed the title [HorizonDB] Validate pool firewall rule ranges and correct CLI help [HorizonDB] Validate pool firewall rules and add cluster authentication commands Nov 23, 2026
@rmendiza

Copy link
Copy Markdown
Member Author

Updated the firewall create help, example, and README to direct changes to existing rules through update. Create and update now warn with the effective range, or explicitly say “all Azure resources” when both bounds are 0.0.0.0. Authentication from #10610 is included in this draft; the matching AAZ changes are in Azure/aaz#1179.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@rmendiza
rmendiza marked this pull request as ready for review November 23, 2026 19:50
Copilot AI balanced review requested due to automatic review settings November 23, 2026 19:50

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

The authentication lifecycle test lacks ArmOperationResultsRecordingProcessor registration for recording and replay, so recording the pending cassette would persist signed ARM operation-result URL parameters.

1 open issue
What changed in this PR

This PR strengthens HorizonDB pool firewall validation and adds cluster password-authentication management, consolidating the authentication work from #10610 into preview release 1.0.0b11.

Changes:

  • Require both IPv4 bounds when creating firewall rules, validate effective update ranges, and warn about allowed access.
  • Add authentication commands with secure password prompting, sparse PATCH updates, --no-wait, and polling support.
  • Add unit and lifecycle tests, update documentation, and bump the preview version. Authentication live recording remains pending.

Paths below are relative to src/horizondb/.

File Description
setup.py Bumps the version to 1.0.0b11.
README.md Documents authentication and firewall workflows.
HISTORY.rst Adds release notes for both features.
azext_horizondb/​tests/​latest/​unittest_firewall_rule.py Tests range validation and access warnings.
azext_horizondb/​tests/​latest/​unittest_authentication.py Tests requests, prompting, polling, and password redaction.
azext_horizondb/​tests/​latest/​test_horizondb_authentication.py Adds an authentication lifecycle scenario.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​pool/​firewall_rule/​custom.py Validates effective ranges and emits warnings.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​pool/​firewall_rule/​_update.py Corrects the update help example.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​pool/​firewall_rule/​_create.py Requires both bounds and corrects help.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​authentication/​password/​custom.py Customizes password validation, handling, and output.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​authentication/​password/​_wait.py Adds password-authentication condition polling.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​authentication/​password/​_update.py Adds sparse PATCH updates.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​authentication/​password/​_show.py Adds password-authentication retrieval.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​authentication/​password/​_create.py Adds password-authentication PUT configuration.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​authentication/​password/​__init__.py Exports password commands.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​authentication/​password/​__cmd_group.py Defines the preview password command group.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​authentication/​_list.py Adds paginated authentication listing.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​authentication/​__init__.py Exports authentication group and list command.
azext_horizondb/​aaz/​latest/​horizondb/​cluster/​authentication/​__cmd_group.py Defines the preview authentication command group.
azext_horizondb/​__init__.py Registers custom authentication and firewall handlers.

Review effort: Balanced

Comment on lines +12 to +17
from .constants import CLUSTER_NAME_MAX_LENGTH, CLUSTER_NAME_PREFIX, JAPANEAST


class HorizonDBAuthenticationScenarioTest(ScenarioTest):

def setUp(self):
…ioned pool

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 623396a5-dd46-4d21-9278-63b6e564f9b3
@rmendiza

Copy link
Copy Markdown
Member Author

Added the live authentication recording. The scenario passed against a single-node pool and covers list, password create, wait, show, and a password rotation via update. The sanitized cassette also passed replay with outbound sockets blocked.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@isra-fel
Yeming Liu (isra-fel) merged commit a8b0129 into Azure:main Nov 23, 2026
24 checks passed
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.

7 participants