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

adhocprofile: Validate IDs and santize names properly #3470

Merged

Conversation

simonswine
Copy link
Contributor

@simonswine simonswine commented Aug 7, 2024

Pyroscope currently allows any character to be user specified at upload. This limits that character set. It also makes sure only IDs are listed and retrieve with get, when they are fulfilling the character limit.

This validation will ensure that the generated identifiers are within the allowed set used by object stores.

Note: I don't think this is a security problem, as object store treat .. as a "normal folder name". Also the adhoc profiles are not enabled, when there is not bucket specified.

We currently allow any character to be user specified at upload. This
limits that character set. It also makes sure only IDs are listend and
retrieve with get, when they are fulfilling the character limit.

This validation will ensure that the generated identifiers are withing
the allowed set use for object store.
@simonswine simonswine marked this pull request as ready for review August 7, 2024 14:21
@simonswine simonswine requested a review from a team as a code owner August 7, 2024 14:21
@simonswine simonswine merged commit 854639b into grafana:main Aug 8, 2024
18 checks passed
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