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

Add anonymizer #1565

Merged
merged 6 commits into from
Jan 9, 2018
Merged

Add anonymizer #1565

merged 6 commits into from
Jan 9, 2018

Conversation

r0mant
Copy link
Collaborator

@r0mant r0mant commented Jan 9, 2018

This PR adds HMAC anonymizer helper, moved from Pro version. Right now it is not used in open-source version and exists only for transparency purposes for people who wish to see how Teleport Pro anonymizes metrics.

// NewHMACAnonymizer returns a new HMAC-based anonymizer
func NewHMACAnonymizer(key string) (*hmacAnonymizer, error) {
if strings.TrimSpace(key) == "" {
return nil, trace.BadParameter("hmac key must not be empty")
Copy link
Contributor

Choose a reason for hiding this comment

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

hmac -> HMAC

@r0mant r0mant merged commit 16386eb into master Jan 9, 2018
@r0mant r0mant deleted the roman/anon branch January 9, 2018 22:13
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