Skip to content

Conversation

@adrian-paragon
Copy link
Contributor

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_SIZE into 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

  • Run terraform plan/apply in each infra workspace (AWS/GCP/Azure), then apply the paragon workspaces and verify the new bucket/container exists and env var is present in the auditlogs deployment.

resource "aws_s3_bucket" "auditlogs" {
bucket = "${var.workspace}-auditlogs"
force_destroy = var.force_destroy
object_lock_enabled = var.auditlogs_lock_enabled
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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

Copy link
Contributor Author

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

Copy link
Contributor

@franklingarcia-paragon franklingarcia-paragon left a comment

Choose a reason for hiding this comment

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

Copy link
Contributor

@tedparagon tedparagon left a 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.

Copy link
Contributor

@franklingarcia-paragon franklingarcia-paragon left a 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! 💪

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.

4 participants