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

s3 byte limit too low #2022

Closed
tooptoop4 opened this issue Jun 9, 2022 · 6 comments
Closed

s3 byte limit too low #2022

tooptoop4 opened this issue Jun 9, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@tooptoop4
Copy link
Contributor

tooptoop4 commented Jun 9, 2022

i saw

b, err := io.ReadAll(io.LimitReader(obj, 65536))
which means can only read data from s3 that is less than 65kb

its also common for logs to be larger than this

@tooptoop4 tooptoop4 added the bug Something isn't working label Jun 9, 2022
@whynowy
Copy link
Member

whynowy commented Jun 10, 2022

hmmm.... we should increase it...

@VaibhavPage
Copy link
Contributor

@whynowy what was the reason to add LimitReader?

@whynowy
Copy link
Member

whynowy commented Jun 13, 2022

@whynowy what was the reason to add LimitReader?

We had a security audit that we used ioutil.ReadAll() in many places which would potentially cause DoS, then I added the limit to all the places, which might have overkilled. See #1946.

@whynowy
Copy link
Member

whynowy commented Jun 27, 2022

@tooptoop4 - did you really experience any issue with this? This one is for reading the workflow spec definition from S3, we of course can increase the limit to 1 MB also, but it does not make sense to make it more than that.

@tooptoop4
Copy link
Contributor Author

yes, my workflow is more than 65kb

@whynowy
Copy link
Member

whynowy commented Jul 18, 2022

Has been raised to 1 MB in PR #2055

@whynowy whynowy closed this as completed Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants