Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants