Skip to content

ci: run horton-e2e against a hub with local authentication disabled - #1277

Merged
Ewerton Scaboro da Silva (ewertons) merged 4 commits into
mainfrom
horton-e2e-disable-local-auth
Dec 4, 2026
Merged

Ewerton Scaboro da Silva (ewertons) merged 4 commits into
mainfrom
horton-e2e-disable-local-auth

Conversation

@ewertons

@ewertons Ewerton Scaboro da Silva (ewertons) commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

vsts/horton-e2e.yaml now creates its per-run IoT Hub with local authentication disabled (Microsoft Entra ID only).

  • Pins the e2e-fx framework (Azure/iot-sdks-e2e-fx) to commit c8c4e99e8dd99b8fe47896f833f49d1fee7747a8 (AzIotSdkTest 1.11.1) instead of master, in both the e2e_fx repository resource and Horton.FrameworkRef. A full commit SHA is immutable, unlike a tag. That commit has the disable_local_auth parameter and retries throttled storage setup calls.
  • Passes disable_local_auth: true to steps-create-azure-resources.yaml. The framework then:
    • runs the registry and service calls with Entra tokens from the iot hub sdk service connection;
    • routes telemetry to an Event Hub that accepts only Entra ID and reads it from there.

Device authentication is unchanged. Test jobs take 12-18 minutes, which is within the lifetime of the access tokens.

Also sets a 10 s HTTP timeout on the provisioning e2e service client (tests/e2e/provisioning_e2e/service_helper.py) so a hung response is retried by msrest instead of hitting the 60 s pytest timeout (seen in dps-e2e on this PR).

Pin the e2e-fx framework to 72c8b9527c9fd7459e4cf8901ad68f7e1e7df3a2 instead
of master, for both the template repository resource and the framework clone,
and create the hub with disable_local_auth: true. The service side of the
tests then uses Microsoft Entra ID, and telemetry is read from an Event Hub
the hub routes it to, so no IoT Hub shared access key is used.

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.

🟢 Approval recommended

No active review issues remain for the Horton end-to-end CI authentication update.

No open issues 🎉

What changed in this PR

Updates Horton end-to-end CI to test against an IoT Hub with local authentication disabled, while leaving device authentication unchanged.

Changes:

  • Pins both framework references to the commit supporting disable_local_auth.
  • Enables Entra-only service authentication and routed Event Hub telemetry through the framework template.
File Description
vsts/​horton-e2e.yaml Pins the framework revision and enables disable_local_auth during resource creation.

Review effort: Balanced

Comment thread vsts/horton-e2e.yaml
type: github
name: Azure/iot-sdks-e2e-fx
ref: refs/heads/master
ref: c8c4e99e8dd99b8fe47896f833f49d1fee7747a8 # AzIotSdkTest 1.11.1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is meant to stay pinned, but not to this commit forever: the SHA gets bumped in a PR whenever a newer e2e-fx is needed, like any other dependency version.

Why pin at all: with master, every e2e-fx merge changed what this pipeline ran without a change here. That includes the hub setup, which now differs between the keyed and Entra-only paths.

Why a SHA instead of a tag: a tag can be moved or deleted after the fact, and a full commit SHA cannot. Pinning to the v1.11.x tag would work as well if you prefer readability over immutability; let me know and I'll switch it.

@ewertons
Ewerton Scaboro da Silva (ewertons) merged commit 3ea0f95 into main Dec 4, 2026
42 checks passed
@ewertons
Ewerton Scaboro da Silva (ewertons) deleted the horton-e2e-disable-local-auth branch December 4, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants