15 Commits
Author SHA1 Message Date
Hugo 7d2654e707 feat(storage): Improve error messages
Current `errorToStatus` is not displaying the underlying error if the
status code is 400. Additionally, we are sending the error into this
function twice: Once in the error message and again in the error itself.

This commit changes the way `errorToStatus` works by sending a message
indicating where the error occured and then the actual error as a
different argument. Additionally, it changes `errorToStatus` to always
print the input message and the error regardless of error type.
2024-10-01 15:13:57 +01:00
Hugo 759ac083ac feat(storage): Drop checksum headers
Some non-MinIO services that can use this plugin do not support
`x-amz-checksum-algorithm` and/or `x-amz-checksum-sha256`.

Important to note that if a SHA256 checksum still comes through in the
response, the existing code will verify that it matches what we have
locally.
2024-10-01 15:13:57 +01:00
Hugo caa6c4eda2 feat(storage): Make checksum verification optional
Some 3rd party services the MinIO SDK can connect
with do not return a checksum whenever a file is
uploaded. Before this change, this would lead to
an error, rendering it impossible to operate with
those 3rd party services. With this change, we'll
continue to verify checksums if they come through,
however we won't error out if they don't and the
PutObject call is successful.

Note: There are no new tests with this change as
this behaviour is not unit-testeable at the
moment. I suggest we could have end-to-end tests
for this.
2024-06-10 16:19:20 +01:00
Hugo bde78ecccd docs(plugin): Add Credential Rotation attribute and explanation 2024-04-04 18:03:37 +01:00
Hugo eb0c2b4682 feat(plugin): Implement Credential Rotation 2024-04-04 18:03:37 +01:00
Hugo 0214399017 feat(plugin): Add credential rotation primitives 2024-04-04 18:03:37 +01:00
Hugo 2c2bd3429b feat(values): Add methods to get bool and time values from proto 2024-04-04 18:03:37 +01:00
Hugo 4ffe4d227f feat(plugin): Implement GetObject 2024-03-15 17:39:24 +00:00
Hugo 4fc2ce9449 chore(plugin): Remove unnecessary comments 2024-03-12 18:47:26 +00:00
Hugo a2235d93ce feat(plugin): Implement HeadObject 2024-03-12 18:47:26 +00:00
Hugo f1f0055663 feat(plugin): Implement OnDeleteStorageBucket 2024-03-04 19:42:01 +00:00
Hugo 07ec485161 feat(plugin): Implement OnCreateStorageBucket and ValidatePermissions 2024-03-04 19:42:01 +00:00
Hugo 317f73eb5d feat(scripts): Always create MinIO service account 2024-03-04 19:42:01 +00:00
Hugo a01669f03f feat(plugin): Create skeleton 2024-02-28 15:12:43 +00:00
Hugo 9f09f161ba Initial commit 2024-02-22 10:24:00 +00:00