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

feat(arm): MySQLPublicAccessDisabled-Azure MySQL: Restrict Public Access #6263

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

channy-katz
Copy link

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Description

This code defines a check named MySQLPublicAccessDisabled for Azure MySQL servers. It ensures that the 'publicNetworkAccess' property is set to 'False', preventing public access to the servers. The check extends BaseResourceValueCheck, specifying the inspected key ('properties/publicNetworkAccess') and the expected value ('False').

Fixes # (issue)

New/Edited policies (Delete if not relevant)

Description

Include a description of what makes it a violation and any relevant external links.

Fix

The fix for CKV_AZURE_53 error is to ensure that the 'publicNetworkAccess' property is set to 'False' for MySQL servers in the public Azure region.

Checklist:

  • [ x] My code follows the style guidelines of this project
  • [ x] I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • [x ] I have added tests that prove my feature, policy, or fix is effective and works
  • [ x] New and existing tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@ChanochShayner
Copy link
Contributor

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.

None yet

2 participants