Skip to content

Commit 2eeb03b

Browse files
committed
Add AES256 encryption to upload
1 parent c4eda1a commit 2eeb03b

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ All notable changes to this project will be documented in this file. It uses the
77
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
88
"Semantic Versioning 2.0.0"
99

10+
## [v0.2.1] — 2025-04-30
11+
12+
### ⚡ Improvements
13+
14+
* Added AES256 server-side encryption to the S3 upload.
15+
16+
[v0.2.1]: https://github.com/tembo-io/temback/compare/v0.2.0...v0.2.1
17+
1018
## [v0.2.0] — 2025-04-30
1119

1220
### ⚡ Improvements
@@ -19,7 +27,7 @@ All notable changes to this project will be documented in this file. It uses the
1927
`PGHOST` environment variables, while respecting those variables and
2028
options.
2129

22-
[v0.2.0]: https://github.com/tembo-io/temback/compare/v0.1.1...v0.2.1
30+
[v0.2.0]: https://github.com/tembo-io/temback/compare/v0.1.1...v0.2.0
2331

2432
## [v0.1.1] — 2025-04-24
2533

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GO ?= go
22
GOOS ?= $(word 1,$(subst /, ,$(word 4, $(shell $(GO) version))))
33
GOARCH ?= $(word 2,$(subst /, ,$(word 4, $(shell $(GO) version))))
44
PLATFORM := $(GOOS)-$(GOARCH)
5-
VERSION := v0.2.0
5+
VERSION := v0.2.1
66
REVISION := $(shell git rev-parse --short HEAD)
77
REGISTRY ?= localhost:5001
88
ldflags = -ldflags="-s -w -X 'main.version=$(VERSION)' -X 'main.build=$(REVISION)'"

main.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,12 @@ func upload(cfg *backupConfig) error {
355355
defer func() { _ = fh.Close() }()
356356

357357
if _, err := client.PutObject(context.Background(), &s3.PutObjectInput{
358-
Bucket: aws.String(cfg.bucket),
359-
Key: aws.String(cfg.UploadKey()),
360-
Body: fh,
361-
ChecksumAlgorithm: types.ChecksumAlgorithmSha256,
362-
ContentType: aws.String("application/gzip"),
358+
Bucket: aws.String(cfg.bucket),
359+
Key: aws.String(cfg.UploadKey()),
360+
Body: fh,
361+
ChecksumAlgorithm: types.ChecksumAlgorithmSha256,
362+
ServerSideEncryption: types.ServerSideEncryptionAes256,
363+
ContentType: aws.String("application/gzip"),
363364
}); err != nil {
364365
fmt.Println("Failed")
365366
return err

0 commit comments

Comments
 (0)