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

Validate labels for profiles received from agent #842

Merged
merged 2 commits into from
Apr 6, 2022
Merged

Conversation

Sylfrena
Copy link
Contributor

Fixes #817

@Sylfrena
Copy link
Contributor Author

@brancz, Should I have sanitized the labels instead?

@brancz
Copy link
Member

brancz commented Mar 31, 2022

I think when this happens we should just fail the request and tell the user that they were trying to write invalid data.

@Sylfrena Sylfrena marked this pull request as draft April 5, 2022 07:21
@Sylfrena Sylfrena force-pushed the validate-labels branch 2 times, most recently from 413e491 to 6ef645b Compare April 5, 2022 10:28
@Sylfrena Sylfrena marked this pull request as ready for review April 5, 2022 10:29
Copy link
Member

@brancz brancz left a comment

Choose a reason for hiding this comment

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

Nice! Yes, this is pretty much exactly what I was thinking. Just a few style choices to be consistent with the rest of the codebase.

pkg/profilestore/profilestore_test.go Outdated Show resolved Hide resolved
pkg/profilestore/profilestore_test.go Outdated Show resolved Hide resolved
pkg/profilestore/profilestore_test.go Outdated Show resolved Hide resolved
Copy link
Member

@brancz brancz left a comment

Choose a reason for hiding this comment

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

Nice! lgtm 🎉

@brancz brancz merged commit 7b69680 into main Apr 6, 2022
@brancz brancz deleted the validate-labels branch April 6, 2022 17:41
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.

Validate label names
3 participants