Skip to content

remove ntp firewall rule#4720

Merged
tamirkamara merged 5 commits into
mainfrom
jc-wk/remove-ntp-firewall-rule
Oct 22, 2025
Merged

remove ntp firewall rule#4720
tamirkamara merged 5 commits into
mainfrom
jc-wk/remove-ntp-firewall-rule

Conversation

@JC-wk

@JC-wk JC-wk commented Oct 17, 2025

Copy link
Copy Markdown
Collaborator

Resolves #4703

What is being addressed

Remove the network rule collection containing the default allow all rule to UDP 123

Why

Workspaces by default block outbound UDP however the core subnets do not.
The linux vm's in the core subnet use chronyd to synchronize against the Azure host rather than an external NTP time source.
The rule being a wildcard also presents a risk of it being used for data exfiltration.

Users can audit NTP by running the following in their primary log analytics workspace (log-TREName)

AZFWNetworkRule 
| where Protocol == "UDP" and DestinationPort == "123" 
| summarize by SourceIp, DestinationIp

I have done this and only the admin Jumpbox was using it however it does not require it due to it also supporting the host sync method.

TRE's requiring NTP

If a TRE requires NTP for non-core purposes such as to sync with domain controller this can be achieved in either of the following ways:

  1. Create a shared service containing the required firewall rule in terraform.
  2. Add the rule to the Template pipeline of the service they are deploying (see https://microsoft.github.io/AzureTRE/unreleased/tre-templates/pipeline-templates/pipeline-schema/)

@JC-wk JC-wk marked this pull request as ready for review October 17, 2025 10:58
@JC-wk JC-wk requested a review from a team as a code owner October 17, 2025 10:58
@github-actions

github-actions Bot commented Oct 17, 2025

Copy link
Copy Markdown

Unit Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 6d47507.

♻️ This comment has been updated with latest results.

Comment thread CHANGELOG.md Outdated

@james-annages james-annages left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Comment thread core/terraform/firewall/rules.tf
@JC-wk JC-wk requested a review from tamirkamara October 20, 2025 15:20
@tamirkamara

Copy link
Copy Markdown
Collaborator

/test-extended 6d47507

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/18693935782 (with refid f23a3a7b)

(in response to this comment from @tamirkamara)

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/18693935782 (with refid f23a3a7b)

(in response to this comment from @tamirkamara)

@tamirkamara

Copy link
Copy Markdown
Collaborator

/test-destroy-env

@github-actions

Copy link
Copy Markdown

Destroying branch test environment (RG: rg-tre22a1cade)... (run: https://github.com/microsoft/AzureTRE/actions/runs/18706944417)

@github-actions

Copy link
Copy Markdown

Branch test environment destroy complete (RG: rg-tre22a1cade)

@github-actions

Copy link
Copy Markdown

Destroying PR test environment (RG: rg-tref23a3a7b)... (run: https://github.com/microsoft/AzureTRE/actions/runs/18706944417)

@github-actions

Copy link
Copy Markdown

PR test environment destroy complete (RG: rg-tref23a3a7b)

@tamirkamara

Copy link
Copy Markdown
Collaborator

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/18707546077 (with refid f23a3a7b)

(in response to this comment from @tamirkamara)

@tamirkamara

Copy link
Copy Markdown
Collaborator

/test-force-approve

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 6d47507)

(in response to this comment from @tamirkamara)

@tamirkamara tamirkamara merged commit 96184cc into main Oct 22, 2025
12 checks passed
@tamirkamara tamirkamara deleted the jc-wk/remove-ntp-firewall-rule branch October 22, 2025 10:34
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.

Remove NTP Outbound Firewall Rule

5 participants