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

New Policy (Azure Database for PostgreSQL flexible servers): PostgreSQL flexible servers should log connections #441

Conversation

tdefise
Copy link
Contributor

@tdefise tdefise commented Apr 9, 2024

Policy

  • Name: PostgreSQL flexible servers should log connections
  • Description: This policy helps audit any PostgreSQL databases in your environment without log_connections setting enabled
  • Supported effect(s): AuditIfNotExists, Disabled
  • Parameters: None

Description

This policy helps audit any PostgreSQL databases in your environment without log_connections setting enabled

Details

Enabling log_connections helps PostgreSQL Database to log attempted connection to the server, as well as successful completion of client authentication.

Contribution Rules

  • Contain a single Policy in a folder by itself with 3 files: azurepolicy.json, azurepolicy.rules.json, and azurepolicy.parameters.json
  • Used Confirm-PolicyDefinitionIsValid.ps1
  • Used Out-FormattedPolicyDefinition.ps1
  • Effect default value alignes with convention

@aschabus aschabus merged commit 9241894 into Azure:main Apr 17, 2024
2 checks passed
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.

2 participants