Skip to content

Commit a225902

Browse files
smiycmnenciagbartolini
authored
docs: workaround for S3 checksum validation errors with recent boto3 versions (#398)
Fixes #393 Signed-off-by: Daniel Chambre <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Signed-off-by: Gabriele Bartolini <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]> Co-authored-by: Gabriele Bartolini <[email protected]>
1 parent 4d323c2 commit a225902

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.wordlist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Uncomment
4949
WAL
5050
WALBackupConfiguration
5151
WALs
52+
amz
5253
api
5354
apiVersion
5455
apiextensions
@@ -59,6 +60,7 @@ backend
5960
backends
6061
barmanObjectName
6162
barmancloud
63+
boto
6264
bzip
6365
cd
6466
cloudnative
@@ -113,6 +115,7 @@ secretKeyRef
113115
selfsigned
114116
serverName
115117
serviceaccount
118+
sha
116119
sig
117120
storageClass
118121
subcommand

web/docs/object_stores.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,34 @@ spec:
141141
[...]
142142
```
143143

144+
Recent changes to the [boto3 implementation](https://github.com/boto/boto3/issues/4392)
145+
of [Amazon S3 Data Integrity Protections](https://docs.aws.amazon.com/sdkref/latest/guide/feature-dataintegrity.html)
146+
may lead to the `x-amz-content-sha256` error when using the Barman Cloud
147+
Plugin.
148+
149+
If you encounter this issue (see [GitHub issue #393](https://github.com/cloudnative-pg/plugin-barman-cloud/issues/393)),
150+
you can apply the following workaround by setting specific environment
151+
variables in the `ObjectStore` resource:
152+
153+
```yaml
154+
apiVersion: barmancloud.cnpg.io/v1
155+
kind: ObjectStore
156+
metadata:
157+
name: linode-store
158+
spec:
159+
instanceSidecarConfiguration:
160+
env:
161+
- name: AWS_REQUEST_CHECKSUM_CALCULATION
162+
value: when_required
163+
- name: AWS_RESPONSE_CHECKSUM_VALIDATION
164+
value: when_required
165+
[...]
166+
```
167+
168+
These settings ensure that checksum calculations and validations are only
169+
applied when explicitly required, avoiding compatibility issues with certain
170+
S3-compatible storage providers.
171+
144172
Example with DigitalOcean Spaces (SFO3, path-style):
145173

146174
```yaml

0 commit comments

Comments
 (0)