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

Filter sensitive fields in debug level logs #62

Merged
merged 1 commit into from
Aug 10, 2022
Merged

Filter sensitive fields in debug level logs #62

merged 1 commit into from
Aug 10, 2022

Conversation

sergenyalcin
Copy link
Member

@sergenyalcin sergenyalcin commented Aug 8, 2022

Description of your changes

Fixes #52

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

This PR was tested by using a provider config that contains wrong credentials.

@sergenyalcin sergenyalcin self-assigned this Aug 8, 2022
@sergenyalcin sergenyalcin marked this pull request as ready for review August 8, 2022 12:24
@sergenyalcin sergenyalcin requested a review from muvaf August 8, 2022 12:24
pkg/terraform/workspace.go Outdated Show resolved Hide resolved
Copy link
Member

@muvaf muvaf left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @sergenyalcin , left some comments but none blocking.

pkg/terraform/store.go Outdated Show resolved Hide resolved
@@ -56,6 +56,12 @@ func WithAferoFs(fs afero.Fs) WorkspaceOption {
}
}

func WithFilterFn(filterFn func(string) string) WorkspaceOption {
Copy link
Member

Choose a reason for hiding this comment

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

If you'd like to enable providers to give this, then I think a similar option for WorkspaceStore will be needed, too, because that's what they initialize in their main function. An alternative could be to create an option for WorkspaceStore that accepts a list of WorkspaceOptions to apply.

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.

Investigate jet-aws #219 security bug
2 participants