feat: add minio_audit_webhook resource #798
Merged
Conversation
Add a typed resource for managing MinIO audit webhook configurations. This provides a user-friendly interface over the config KV API for configuring HTTP endpoints that receive audit log events, supporting endpoint URL, authentication, mTLS, batching, and queue settings. Closes #728
Unit tests verify config string building with various field combinations. Acceptance tests cover basic create/import and update scenarios using disabled webhooks with dummy endpoints.
Add Terraform example showing Splunk and backup webhook targets, documentation template with import instructions, and generate the rendered docs page.
MinIO GetConfigKV does not return 'enable' in the audit_webhook response. Skip reading it in Read (retain user value from state, same pattern as sensitive fields). Mark queue_size and batch_size as Computed to accept server defaults without false diffs.
felladrin
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds new
minio_audit_webhookresource for managing MinIO audit logging webhook targets (Add resource for managing audit logging webhooks and Kafka targets #728)Typed resource with endpoint, auth_token, enable, queue/batch size, and mTLS support over the config KV API
Follows existing provider patterns (IDP OpenID/LDAP resources,
minio_config)Test Plan
TestBuildAuditWebhookCfgData)TestAccMinioAuditWebhook_basic)TestAccMinioAuditWebhook_update)docker compose run --rm test— 0 failures)Closes #728