Ben McClelland
33b7116aab
Merge pull request #546 from versity/test_cmdline_get_put_copy
...
Test cmdline get put copy
v0.22
2024-05-03 10:08:34 -07:00
Luke McCrone
0009845acd
test: get, copy, put, etc. s3api additions, cleanup
2024-05-03 13:07:53 -03:00
Ben McClelland
a912980173
Merge pull request #545 from versity/aws-error-ref
...
AWS error refactoring
2024-05-02 15:49:26 -07:00
Luke McCrone
096f370322
test: changes due to policy, tag changes
2024-05-02 15:26:17 -07:00
jonaustin09
b4cd35f60b
feat: error refactoring and enable object lock in backends
...
Added support to enable object lock on bucket creation in posix and azure
backends.
Implemented the logic to add object legal hold and retention on object creation
in azure and posix backends.
Added the functionality for HeadObject to return object lock related headers.
Added integration tests for these features.
2024-05-02 15:23:48 -07:00
Ben McClelland
aba8d03ddf
Merge pull request #544 from versity/ben/request_time_skewed
...
Ben/request time skewed
2024-05-02 10:21:17 -07:00
Ben McClelland
4a7e2296b9
Merge pull request #543 from versity/ben/int_check
...
fix: int overflow check in chunk reader
2024-05-02 10:21:04 -07:00
Ben McClelland
2c165a632c
fix: int overflow check in chunk reader
...
Make the code scanners happy with a bounds check before we do the
integer conversion from int64 to int, since this can overflow on
32 bit platforms.
Best error to return here is a signature error since this is a
client problem and the chunk headers are considered part of the
request signature.
2024-05-01 21:27:17 -07:00
Ben McClelland
3fc8956baf
fix: increase valid timestampe window from 1 to 15 minutes
...
According to:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationTimeStamp
The valid time wondow for authenticated requests is 15 minutes,
and when outside of that window should return RequestTimeTooSkewed.
2024-05-01 13:56:34 -07:00
Ben McClelland
acf69ab03d
Merge pull request #541 from versity/test_cmdline_policy
...
Test cmdline policy
2024-04-29 20:32:26 -07:00
Luke McCrone
60e4a07e65
test: policy
2024-04-29 21:01:27 -03:00
Ben McClelland
ba8e1f7910
Merge pull request #542 from versity/dependabot/go_modules/dev-dependencies-34457f1dff
...
chore(deps): bump github.com/urfave/cli/v2 from 2.27.1 to 2.27.2 in the dev-dependencies group
2024-04-29 14:47:37 -07:00
Ben McClelland
864bbf81ff
Merge pull request #540 from versity/get-object-attributes
...
GetObjectAttributes action
2024-04-29 14:47:02 -07:00
dependabot[bot]
259a385aea
chore(deps): bump github.com/urfave/cli/v2 in the dev-dependencies group
...
Bumps the dev-dependencies group with 1 update: [github.com/urfave/cli/v2](https://github.com/urfave/cli ).
Updates `github.com/urfave/cli/v2` from 2.27.1 to 2.27.2
- [Release notes](https://github.com/urfave/cli/releases )
- [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md )
- [Commits](https://github.com/urfave/cli/compare/v2.27.1...v2.27.2 )
---
updated-dependencies:
- dependency-name: github.com/urfave/cli/v2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dev-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-29 21:38:59 +00:00
jonaustin09
0c3771ae2d
feat: Added GetObjectAttributes actions implementation in posix, azure and s3 backends. Added integration tests for GetObjectAttributes action
2024-04-29 15:31:53 -04:00
Ben McClelland
af469cd279
Merge pull request #539 from versity/event-notif-del-objects
...
Bucket event notifications DeleteObjects
2024-04-25 15:11:38 -07:00
jonaustin09
6f9c6fde37
feat: Added DeleteObjects event support in bucket event notifications
2024-04-25 16:18:02 -04:00
Ben McClelland
dd7de194f9
Merge pull request #538 from versity/test_cmdline_more_tests
...
Test cmdline more tests
2024-04-25 13:16:42 -07:00
Luke McCrone
ec53605ea3
test: delete tags, get location, some reorganization
2024-04-25 15:40:23 -03:00
Ben McClelland
47ed2d65c1
Merge pull request #537 from versity/s3proxy-policy-object-lock-actions
...
S3 proxy bucket policy, object lock actions
2024-04-24 13:27:21 -07:00
jonaustin09
5126aedeff
feat: Added bucket policy and object lock actions implementation in s3 proxy
2024-04-24 15:49:02 -04:00
Ben McClelland
a780f89ff0
Merge pull request #536 from versity/azure-object-lock-actions
...
Azure object lock actions
2024-04-23 15:19:08 -07:00
jonaustin09
4a56d570ad
feat: Added object lock actions implementation in azure backend
2024-04-23 17:05:59 -04:00
Ben McClelland
62209cf222
Merge pull request #535 from versity/dependabot/go_modules/dev-dependencies-9433fa9262
...
chore(deps): bump the dev-dependencies group with 3 updates
v0.21
2024-04-22 15:31:19 -07:00
dependabot[bot]
f7da252b7a
chore(deps): bump the dev-dependencies group with 3 updates
...
Bumps the dev-dependencies group with 3 updates: [github.com/go-ldap/ldap/v3](https://github.com/go-ldap/ldap ), [github.com/Azure/azure-sdk-for-go/sdk/internal](https://github.com/Azure/azure-sdk-for-go ) and [github.com/go-asn1-ber/asn1-ber](https://github.com/go-asn1-ber/asn1-ber ).
Updates `github.com/go-ldap/ldap/v3` from 3.4.7 to 3.4.8
- [Release notes](https://github.com/go-ldap/ldap/releases )
- [Commits](https://github.com/go-ldap/ldap/compare/v3.4.7...v3.4.8 )
Updates `github.com/Azure/azure-sdk-for-go/sdk/internal` from 1.5.2 to 1.6.0
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases )
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md )
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/internal/v1.5.2...sdk/azcore/v1.6.0 )
Updates `github.com/go-asn1-ber/asn1-ber` from 1.5.5 to 1.5.6
- [Release notes](https://github.com/go-asn1-ber/asn1-ber/releases )
- [Commits](https://github.com/go-asn1-ber/asn1-ber/compare/v1.5.5...v1.5.6 )
---
updated-dependencies:
- dependency-name: github.com/go-ldap/ldap/v3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: dev-dependencies
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/internal
dependency-type: indirect
update-type: version-update:semver-minor
dependency-group: dev-dependencies
- dependency-name: github.com/go-asn1-ber/asn1-ber
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: dev-dependencies
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-22 21:48:10 +00:00
Ben McClelland
8907a50331
Merge pull request #516 from versity/object-locks
...
WORM protection with S3 object locks
2024-04-22 13:28:15 -07:00
jonaustin09
89755ea5aa
feat: Changed object lock actions interface to put/get []byte
2024-04-22 13:19:09 -07:00
jonaustin09
00476ef70c
feat: Closes #490 , Added integration tests for object lock actions
2024-04-22 13:13:40 -07:00
jonaustin09
fbaba0b944
feat: Added object WORM protection by object-lock feature from AWS with the following actions support: PutObjectLockConfiguration, GetObjectLockConfiguration, PutObjectRetention, GetObjectRetention, PutObjectLegalHold, GetObjectLegalHold
2024-04-22 13:13:40 -07:00
Ben McClelland
c0489f981c
Merge pull request #533 from versity/test_cmdline_tags_two
...
Test cmdline tags two
2024-04-22 13:01:13 -07:00
Luke McCrone
2a072e1580
test: tags, metadata tests, docker, test config cleanup
2024-04-22 15:44:46 -03:00
Ben McClelland
6d868229a8
Merge pull request #532 from versity/ben/readme
...
chore: more readme cleanup
2024-04-22 10:46:45 -07:00
Ben McClelland
e1a1d7f65f
chore: more readme cleanup
...
fix typo, add use case
2024-04-22 10:38:17 -07:00
Ben McClelland
134672aea2
Merge pull request #531 from versity/ben/readme
...
chore: minor readme cleanup
2024-04-22 10:11:45 -07:00
Ben McClelland
c75edc2ae5
chore: minor readme cleanup
...
Move use cases up, and change wording. Add link for global options in the wiki.
2024-04-22 09:18:17 -07:00
Ben McClelland
7ab0e3ebbe
Merge pull request #530 from versity/azure-policy-actions
...
Azure bucket policy actions
2024-04-20 10:00:23 -07:00
jonaustin09
5c835c5c74
feat: Implemented GetBucketPolicy, PutBucketPolicy action in azure backend
2024-04-19 16:36:42 -04:00
Ben McClelland
bd380b4858
Merge pull request #528 from versity/ben/xattr
...
fix: use xattr.ENOATTR check for posix xattrs
2024-04-19 11:39:54 -07:00
Ben McClelland
fe33532f78
Merge pull request #529 from versity/ben/module_version
...
fix: as of Go 1.21, toolchain versions must use the 1.N.P syntax
2024-04-18 21:07:52 -07:00
Ben McClelland
892d4d7d17
fix: as of Go 1.21, toolchain versions must use the 1.N.P syntax
...
Setting min toolchain to 1.21.0 for the gateway.
see: https://go.dev/doc/toolchain#version
2024-04-18 20:29:23 -07:00
Ben McClelland
4429570388
fix: use xattr.ENOATTR check for posix xattrs
...
The xattr package has a more universal error type for xattrs
not existing. Use this for better platform compatibility.
This also adds the xattr.XATTR_SUPPORTED check for platform
xattr suport in xattr package.
Fixes #527
2024-04-18 18:20:43 -07:00
Ben McClelland
ae0354c765
Merge pull request #526 from versity/fix/487-head-bucket-resp
...
HeadBucket response headers
2024-04-18 15:55:50 -07:00
jonaustin09
84ce40fb54
fix: Fixes #487 , added response headers for HeadBucket action
2024-04-18 13:27:45 -04:00
Ben McClelland
5853c3240b
Merge pull request #520 from versity/test_cmdline_user_s3cmd
...
test: s3cmd user, fix for non-bucket creating testing
v0.20
2024-04-17 14:42:25 -07:00
Ben McClelland
8bd068c22c
Merge pull request #525 from versity/ben/check_account
...
fix: auth iam single error for GetUserAccount()
2024-04-17 14:32:02 -07:00
Luke McCrone
f08ccacd0f
test: s3cmd user, fix for non-bucket creating testing
2024-04-17 15:24:01 -03:00
Ben McClelland
46aab041cc
fix: auth iam single error for GetUserAccount()
...
Fixes #524 . The iam single needs to return ErrNoSuchUser instead of
ErrNotSupported in GetUserAccount to return the correct error
when the client access is not done by the single user account.
This fixes the internal error when accessing the gateway in
iam single user mode with incorrect access keys.
2024-04-17 09:33:03 -07:00
Ben McClelland
a7a8ea9e61
Merge pull request #523 from versity/ben/chunk_uploads
...
fix: chunkreader invalid signature when header crossed read buffers
2024-04-17 09:13:12 -07:00
Ben McClelland
07b01a738a
fix: chunkreader invalid signature when header crossed read buffers
...
Fixes #512 . For chunked uploads, we parse the chunk headers in place
and then move the data payload up on the buffer to overwrite the
chunk headers for the real data stream.
For the special case where the chunk header was truncated in the
current read buffer, the partial header is stashed in a temporary
byte slice. The following read will contain the remainder of the
header that we can put together and parse.
We were correctly parsing this, but we forgot that the data offset
is calculated based on the start of the header. But the special
case where part of the header was stashed means we were incorrectly
calculating the data offset into the read buffer.
Easy fix to just remove the stash size from the data offset return
value.
2024-04-16 23:08:25 -07:00
Ben McClelland
6f35a5fbaf
Merge pull request #521 from versity/ben/readme_news_perf2
...
feat: add new perf article to readme news
2024-04-16 15:55:05 -07:00