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

hide sensitive information in logs #385

Merged
merged 3 commits into from
Mar 14, 2018
Merged

hide sensitive information in logs #385

merged 3 commits into from
Mar 14, 2018

Conversation

mthenw
Copy link
Contributor

@mthenw mthenw commented Mar 14, 2018

This PR hides sensitive information (AWS keys) in logs. It's achieved by implementing MarshalLogObject function for both Function and Subscription objects. Uber zap then will use it to serialize an object when logging.

@mthenw mthenw changed the title hide sensitive information from logs hide sensitive information in logs Mar 14, 2018
@mthenw mthenw requested a review from RaeesBhatti March 14, 2018 09:16
c.Lock()
defer c.Unlock()
segments := strings.Split(k, "/")
c.cache[libkv.FunctionKey{Space: segments[0], ID: function.ID(segments[1])}] = f
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't there a better way to get space? This seems susceptible to changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not at the moment. That's the only way.

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.

2 participants