Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to structured firewall logs #3816

Conversation

dusan-ilic-mhra
Copy link
Contributor

Resolves HASH_SIGN_FOLLOWED_BY_ISSUE_NUMBER

What is being addressed

As Structured Logs are in general availability:
https://azure.microsoft.com/en-us/updates/general-availability-new-monitoring-and-logging-updates-in-azure-firewall/
we could switch to resource-specific tables

@github-actions github-actions bot added the external PR from an external contributor label Dec 21, 2023
Copy link

github-actions bot commented Dec 21, 2023

Unit Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 360ee61.

♻️ This comment has been updated with latest results.

@marrobi
Copy link
Member

marrobi commented Dec 21, 2023

/test-extended

Copy link

🤖 pr-bot 🤖

⚠️ When using /test-extended on external PRs, the SHA of the checked commit must be specified

(in response to this comment from @marrobi)

@marrobi
Copy link
Member

marrobi commented Dec 21, 2023

/test-extended c94824e

Copy link

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/7290572361 (with refid 8f37b7d9)

(in response to this comment from @marrobi)

@marrobi
Copy link
Member

marrobi commented Dec 21, 2023

Thanks, @dusan-ilic-mhra, can you take you take look at https://techcommunity.microsoft.com/t5/azure-network-security-blog/azure-firewall-new-embedded-workbooks/ba-p/3999795 and check the appropriate log categories are enabled and the embedded workbook works correctly (check the various tabs).

In the PR environment I see:

image

Might be it just needs more time. Once it does work we can remove this file - /workspaces/marrobi-azure-tre/core/terraform/notebooks.tf

@dusan-ilic-mhra
Copy link
Contributor Author

@marrobi, I enabled these 3 log categories for now, as you can see from a commit in PR:

firewall_diagnostic_categories_enabled = [
"AZFWApplicationRule",
"AZFWNetworkRule",
"AZFWDnsProxy",
]

And, in my environment, I can see Azure Firewall Workbook works fine, for example:

image

DNAT actions are not showing as they are not enabled.

BR,
Dusan

@marrobi
Copy link
Member

marrobi commented Dec 22, 2023

@dusan-ilic-mhra thanks, they have appeared on the PR deployment, must have just needed some time.

Can you remove this workbook then - ./core/terraform/notebooks.tf as don't believe its needed any more, and also update the changelog. Will try get it merged today. Thanks!

@dusan-ilic-mhra
Copy link
Contributor Author

@marrobi, I removed ./core/terraform/notebooks.tf

Could you please update a changelog for me, as I'm not sure how to do it?

BR,
Dusan

@marrobi
Copy link
Member

marrobi commented Dec 22, 2023

@dusan-ilic-mhra just add a line to this file - https://github.com/microsoft/AzureTRE/blob/main/CHANGELOG.md under enhancements as per the others.

@dusan-ilic-mhra
Copy link
Contributor Author

@marrobi I've done it, but I needed to create a PR:
#3818
I haven't been able to commit directly.

@marrobi
Copy link
Member

marrobi commented Dec 22, 2023

Not sure what you mean? Just add that change in your dusan-ilic-mhra:dusanilic/switch-to-structured-firewall-logs branch and push it?

@dusan-ilic-mhra
Copy link
Contributor Author

@marrobi Done, thanks!

@marrobi
Copy link
Member

marrobi commented Dec 22, 2023

/test-extended

Copy link

🤖 pr-bot 🤖

⚠️ When using /test-extended on external PRs, the SHA of the checked commit must be specified

(in response to this comment from @marrobi)

@marrobi
Copy link
Member

marrobi commented Dec 22, 2023

/test-extended abc4adf

Copy link

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/7298896358 (with refid 8f37b7d9)

(in response to this comment from @marrobi)

@marrobi
Copy link
Member

marrobi commented Dec 22, 2023

@dusan-ilic-mhra can you update the core version - core/version.txt - thanks.

@dusan-ilic-mhra
Copy link
Contributor Author

@marrobi Done.

@marrobi
Copy link
Member

marrobi commented Dec 22, 2023

@dusan-ilic-mhra you need to accept the CLA as per - #3816 (comment) can you follow the instructions (paste the appropriate response into the comments). Thanks.

@marrobi marrobi enabled auto-merge (squash) December 22, 2023 12:43
Copy link
Member

@marrobi marrobi left a comment

Choose a reason for hiding this comment

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

LGTM

@dusan-ilic-mhra
Copy link
Contributor Author

@microsoft-github-policy-service agree company="MHRA"

@dusan-ilic-mhra
Copy link
Contributor Author

@dusan-ilic-mhra you need to accept the CLA as per - #3816 (comment) can you follow the instructions (paste the appropriate response into the comments). Thanks.

@marrobi I accepted:
#3816 (comment)

@marrobi
Copy link
Member

marrobi commented Dec 22, 2023

/test-force-approve abc4adf

Passed above.

Copy link

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 360ee61)

(in response to this comment from @marrobi)

@marrobi marrobi merged commit 7b9927c into microsoft:main Dec 22, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external PR from an external contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants