Repository navigation
[HorizonDB] Validate pool firewall rules and add cluster authentication commands - #10611
Conversation
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: There may be pipelines that require an authorized user to comment /azp run to run. |
|
/azp run |
|
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. |
| 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 |
There was a problem hiding this comment.
Create is not to be used as replace.
|
Show warning:
|
…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
|
Updated the firewall create help, example, and README to direct changes to existing rules through |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
🟡 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
| 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
|
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. |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |

🤖 PR Validation — ❌ Action needed
❌Azure CLI Extensions Breaking Change Test
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
src/horizondb/azext_horizondb/aaz/latest/horizondb/cluster/authentication/password/custom.pyvalidate = password._fmt # pylint: disable=protected-accesssrc/horizondb/azext_horizondb/aaz/latest/horizondb/cluster/authentication/password/custom.pypassword._fmt = validate_without_echo # pylint: disable=protected-accesssrc/horizondb/azext_horizondb/tests/latest/test_horizondb_authentication_scenario.pyself.skipTest('Authentication cassette missing; record explicitly in a disposable subscription.')src/horizondb/azext_horizondb/tests/latest/unittest_firewall_rule.py}}, schema_builder=Update.FirewallRulesGet._build_schema_on_200) # pylint: disable=protected-accessRelated commands
az horizondb cluster pool firewall-rule {create,update},az horizondb cluster authentication list, andaz horizondb cluster authentication password {show,create,update,wait}.Use
createfor a new pool firewall rule andupdatefor an existing rule. Validate the effective IPv4 range before writing and warn which range is being allowed; two0.0.0.0bounds 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 horizondband medium-severity command-table lintpython scripts/ci/test_index.py -q(7 passed, 2 skipped)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.