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: Add support for redaction and regex patterns #74

Closed
wants to merge 1 commit into from

Conversation

azenk
Copy link

@azenk azenk commented Jun 6, 2024

Which problem is this PR solving?

Short description of the changes

  1. Address s3-logfile: support providing a custom regex for log parsing #68 by providing a regex_pattern variable
  2. Enable support for feat: Parse and redact request fields in S3 handler agentless-integrations-for-aws#251
  3. Provide an extra_env_vars variable to allow additional environment variables to be set on the lambda

How to verify that this has the expected result

@azenk azenk requested a review from a team as a code owner June 6, 2024 17:58
@MikeGoldsmith MikeGoldsmith added documentation Improvements or additions to documentation type: enhancement New feature or request and removed documentation Improvements or additions to documentation labels Jun 7, 2024
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith left a comment

Choose a reason for hiding this comment

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

Generally looks good. We'll wait on the other PR being accepted before accepting this one.

@@ -54,7 +54,7 @@ module "s3_processor" {
}


environment_variables = {
environment_variables = merge({
Copy link
Contributor

Choose a reason for hiding this comment

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

Which set of variables wins, first or second?

Copy link
Author

Choose a reason for hiding this comment

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

According to the Terraform docs the second set wins. I don't have a strong opinion on which order is better and would happily move the extra_env_vars first to avoid accidental/intentional overrides.

If more than one given map or object defines the same key or attribute, then the one that is later in the argument sequence takes precedence.

@MikeGoldsmith MikeGoldsmith changed the title Add support for redaction and regex patterns feat: Add support for redaction and regex patterns Jun 7, 2024
@JamieDanielson
Copy link
Contributor

It looks like the other PR was closed due to inactivity and some open questions. We'll close this PR in 2 weeks if we don't hear back on an update to either PR.

@MikeGoldsmith
Copy link
Contributor

Closing for now, please re-open if you find more time to review the suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

s3-logfile: support providing a custom regex for log parsing
3 participants