Skip to content

4.5.0: leave the trigger's caller IP list out unless allowed_ips is set - #2

Merged
craigthackerx merged 1 commit into
mainfrom
fix/trigger-allowed-ips-unset
Oct 22, 2026
Merged

craigthackerx merged 1 commit into
mainfrom
fix/trigger-allowed-ips-unset

Conversation

@craigthackerx

Copy link
Copy Markdown
Contributor

What

access_control.trigger.allowed_ips now defaults to null, and allowedCallerIpAddresses is written only when it is set.

Why

The old [] default was always written, and Logic Apps reads an empty list as "other Logic Apps only". A trigger with only an authorization policy therefore shut out every token-bearing caller (AuthorizationFailed ... not in the allowed caller IP address ranges, proven live in the device intake lab), and the only workaround was 0.0.0.0/0.

Behaviour change

  • Unset allowed_ips (the default) now means no caller IP list: any address may call, and the token or SAS is the gate. Before, it meant Logic Apps only.
  • A caller who relied on the unset default meaning Logic Apps only must now say allowed_ips = [] explicitly.
  • An explicit list, including [], is written as before.

Tests

New run trigger_ips_unset_are_omitted_and_empty_is_kept: with policies and no allowed_ips no list is written; an explicit [] is kept. 43 runs pass.

access_control.trigger.allowed_ips now defaults to null, and the module writes
allowedCallerIpAddresses only when it is set. Before, the [] default was always written, and Logic
Apps reads an empty list as "other Logic Apps only": a trigger configured with only an
authorization policy shut out every token-bearing caller (AuthorizationFailed ... not in the
allowed caller IP address ranges, proven live), and the only way round it was 0.0.0.0/0.

An explicit [] is still written as it is, so a caller who meant Logic Apps only keeps it. The
complete example drops its wide allow, which the default now gives.
@craigthackerx
craigthackerx merged commit b559fd6 into main Oct 22, 2026
2 checks passed
@craigthackerx
craigthackerx deleted the fix/trigger-allowed-ips-unset branch October 22, 2026 09:06
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.

1 participant