Julio López 5ff2c85c80 blob: fix puts for object-lock-enabled S3 stores (#913)
* test: allow creating S3 buckets with object locking enabled

Split createBucket into createClient and makeBucket.
Both createClient and makeBucket will be used for testing
buckets with object locking enabled

* blob: needMD5 helper and tests

* blob: send content MD5 when object locking retention is enabled

From S3 documentation:

>
> If you configure a default retention period on a bucket, requests to
> upload objects in such a bucket must include the Content-MD5 header.
>
> The Content-MD5 header is required for any request to upload an
> object with a retention period configured using Amazon S3 Object Lock.
>

Ref:
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-overview.html#object-lock-bucket-config
- https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html

* blob: ignore errors when getting S3 bucket object-lock config

If there is an error, assume the content MD5 is not neede on PUT.

* test: split getProviderOptions and getProviderOptionsAndCleanup

* test: TestNoNeedMD5Providers

* Send MD5 when store requires Content-MD5 header

Required for writing blobs to an AWS S3 bucket with object-locking
enabled and a retention period for the blob.

* Check whether the error message contains "content-md5"

Instead of doing an exact message comparison to reduce
the impact of potential message changes.
2021-03-29 19:19:25 -07:00
2020-03-05 18:40:23 -08:00
2021-03-21 15:17:39 -07:00
2020-02-05 21:38:16 -08:00
2019-07-14 19:47:59 -07:00
2016-06-12 17:09:12 -07:00
2021-02-27 10:41:34 -08:00

Kopia

Kopia Build Status Slack GoDoc Coverage StatusGo Report Card Contributor Covenant

n.

  1. copy, replica (Polish)
  2. lance, spear
  3. fast and secure backup tool

Kopia is a simple, cross-platform tool for managing encrypted backups in the cloud. It provides fast, incremental backups, secure, client-side end-to-end encryption, compression and data deduplication.

Unlike other cloud backup solutions, the user is in full control of the backup storage and responsible for purchasing one of the cloud storage products (such as Google Cloud Storage), which offer great durability and availability for the data.

Kopia in action

Using kopia command line tool:

asciicast

Kopia UI - experimental user interface

Kopia UI Tutorial

Getting Started

See Documentation for more information.

Building Kopia

See Build Infrastructure for more information on building Kopia and working with the source code.

Licensing

Kopia is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Contribution Guidelines

Kopia is open source and contributions are welcome. For more information on how to contribute see the Contribution Guidelines.

Reporting Security Issues

If you find a security issue you'd like to disclose privately, please contact kopia-pmc@googlegroups.com or via direct message to maintainers on Slack.

Disclaimer

Kopia is a personal project and is not affiliated with, supported or endorsed by Google.

Cryptography Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with symmetric algorithms. The form and manner of this distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

FOSSA Status

Netlify Status

Description
No description provided
Readme 65 MiB
Languages
Go 97.3%
JavaScript 1%
Makefile 0.8%
Shell 0.6%
HTML 0.3%