Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BucketName ¶
BucketName validates the bucket name according to AWS S3 naming rules and protects against path traversal attacks.
func Key ¶
Key validates S3 object key according to AWS S3 specifications.
AWS S3 object key naming rules: - Keys can be up to 1024 bytes in length - Keys can contain any UTF-8 character - However, we add security constraints to prevent path traversal attacks
func Prefix ¶
Prefix validates an S3 object prefix for listing operations.
A prefix is a pure filter — backends match it against stored keys with a string comparison and never resolve it as a path — so it carries none of the traversal constraints Key does. S3 accepts any byte sequence here, including control characters and ".." segments, and simply returns no matches when nothing starts with it. The only limits are the 1024-byte key length and valid UTF-8. An empty prefix is valid and lists everything.
Types ¶
This section is empty.