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 AuthenticationSettings validation #761

Merged
merged 8 commits into from
Nov 28, 2023
Merged

Conversation

peterjan
Copy link
Member

I think something might've gotten mixed up when we added s3 key requirements. AccessKeyIDs should be between 16-128 characters (and are usually 20 in AWS S3) and secret keys are always 40. I'm assuming that's where the 40 came from so I added that assertion and updated the access key id assertions.

@peterjan peterjan self-assigned this Nov 27, 2023
for i := range b {
b[i] = charset[frand.Intn(len(charset))]
}
return string(b)
Copy link
Member

Choose a reason for hiding this comment

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

If the charset doesn't matter then why not do strings.Repeat("a", length) ?

@peterjan peterjan merged commit dc05019 into master Nov 28, 2023
6 checks passed
@peterjan peterjan deleted the pj/s3-credentials-validation branch November 28, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants