-
Notifications
You must be signed in to change notification settings - Fork 1
create auditlogs bucket #94
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
base: main
Are you sure you want to change the base?
Conversation
| resource "aws_s3_bucket" "auditlogs" { | ||
| bucket = "${var.workspace}-auditlogs" | ||
| force_destroy = var.force_destroy | ||
| object_lock_enabled = var.auditlogs_lock_enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| object_lock_enabled = var.auditlogs_lock_enabled | |
| object_lock_enabled = var.auditlogs_lock_enabled ? "Enabled" : null |
I think this has to be a string. See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket_object_lock_configuration#object_lock_enabled-1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that for s3_object_lock_configuration object? For s3_bucket the documentation says that object_lock_enabled expects a boolean. Check here
franklingarcia-paragon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tedparagon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple changes requested.
franklingarcia-paragon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Adrian is the object storage service expert! 💪

Issues Closed
Brief Summary
Implemented auditlogs immutable storage and batch size env plumbing
Detailed Summary
Added dedicated auditlogs buckets/containers across AWS/GCP/Azure with immutability/retention controls to meet compliance requirements, and wired
AUDIT_LOGS_EVENT_BATCH_SIZEinto paragon Helm envs so batch writes are configurable. This aligns storage behavior with the new audit logging requirements while keeping configuration explicit and consistent across clouds.Steps to Test