From fb2072ff7679724944407627ec23c4cd42f7d7f5 Mon Sep 17 00:00:00 2001 From: ostempel Date: Tue, 8 Oct 2024 14:04:22 +0200 Subject: [PATCH] add encryption to integration tests --- deploy/etcd-local.yaml | 1 + deploy/keydb-local.yaml | 1 + deploy/localfs-local.yaml | 1 + deploy/meilisearch-local.yaml | 1 + deploy/postgres-local.yaml | 1 + deploy/redis-local.yaml | 1 + deploy/rethinkdb-local.yaml | 1 + pkg/generate/examples/examples/etcd.go | 1 + pkg/generate/examples/examples/keydb.go | 1 + pkg/generate/examples/examples/localfs.go | 1 + pkg/generate/examples/examples/meilisearch.go | 1 + pkg/generate/examples/examples/postgres.go | 1 + pkg/generate/examples/examples/redis.go | 1 + pkg/generate/examples/examples/rethinkdb.go | 1 + 14 files changed, 14 insertions(+) diff --git a/deploy/etcd-local.yaml b/deploy/etcd-local.yaml index b9de8a6..a1274d5 100644 --- a/deploy/etcd-local.yaml +++ b/deploy/etcd-local.yaml @@ -145,6 +145,7 @@ data: backup-cron-schedule: "*/1 * * * *" object-prefix: etcd-test etcd-endpoints: http://localhost:32379 + encryption-key: "01234567891234560123456789123456" post-exec-cmds: - etcd --data-dir=/data/etcd --listen-client-urls http://0.0.0.0:32379 --advertise-client-urls http://0.0.0.0:32379 --listen-peer-urls http://0.0.0.0:32380 --initial-advertise-peer-urls http://0.0.0.0:32380 --initial-cluster default=http://0.0.0.0:32380 --listen-metrics-urls http://0.0.0.0:32381 kind: ConfigMap diff --git a/deploy/keydb-local.yaml b/deploy/keydb-local.yaml index 8487f2a..d8288dd 100644 --- a/deploy/keydb-local.yaml +++ b/deploy/keydb-local.yaml @@ -140,6 +140,7 @@ data: backup-cron-schedule: "*/1 * * * *" object-prefix: keydb-test redis-addr: localhost:6379 + encryption-key: "01234567891234560123456789123456" post-exec-cmds: - keydb-server kind: ConfigMap diff --git a/deploy/localfs-local.yaml b/deploy/localfs-local.yaml index 103395e..7174f43 100644 --- a/deploy/localfs-local.yaml +++ b/deploy/localfs-local.yaml @@ -116,6 +116,7 @@ data: backup-cron-schedule: "*/1 * * * *" object-prefix: localfs-test redis-addr: localhost:6379 + encryption-key: "01234567891234560123456789123456" post-exec-cmds: - tail -f /etc/hosts kind: ConfigMap diff --git a/deploy/meilisearch-local.yaml b/deploy/meilisearch-local.yaml index 320a519..72c6c74 100644 --- a/deploy/meilisearch-local.yaml +++ b/deploy/meilisearch-local.yaml @@ -157,6 +157,7 @@ data: backup-cron-schedule: "*/1 * * * *" object-prefix: meilisearch-test compression-method: targz + encryption-key: "01234567891234560123456789123456" post-exec-cmds: - meilisearch --db-path=/data/data.ms/ --dump-dir=/backup/upload/files kind: ConfigMap diff --git a/deploy/postgres-local.yaml b/deploy/postgres-local.yaml index 12c18bb..443d44e 100644 --- a/deploy/postgres-local.yaml +++ b/deploy/postgres-local.yaml @@ -184,6 +184,7 @@ data: backup-cron-schedule: "*/1 * * * *" object-prefix: postgres-test compression-method: tar + encryption-key: "01234567891234560123456789123456" post-exec-cmds: - docker-entrypoint.sh postgres kind: ConfigMap diff --git a/deploy/redis-local.yaml b/deploy/redis-local.yaml index 14b0d9b..101f0bb 100644 --- a/deploy/redis-local.yaml +++ b/deploy/redis-local.yaml @@ -140,6 +140,7 @@ data: backup-cron-schedule: "*/1 * * * *" object-prefix: redis-test redis-addr: localhost:6379 + encryption-key: "01234567891234560123456789123456" post-exec-cmds: - redis-server kind: ConfigMap diff --git a/deploy/rethinkdb-local.yaml b/deploy/rethinkdb-local.yaml index ad1f7bb..8d9465f 100644 --- a/deploy/rethinkdb-local.yaml +++ b/deploy/rethinkdb-local.yaml @@ -141,6 +141,7 @@ data: rethinkdb-passwordfile: /rethinkdb-secret/rethinkdb-password.txt backup-cron-schedule: "*/1 * * * *" object-prefix: rethinkdb-test + encryption-key: "01234567891234560123456789123456" post-exec-cmds: # IMPORTANT: the --directory needs to point to the exact sidecar data dir, otherwise the database will be restored to the wrong location - rethinkdb --bind all --directory /data/rethinkdb --initial-password ${RETHINKDB_PASSWORD} diff --git a/pkg/generate/examples/examples/etcd.go b/pkg/generate/examples/examples/etcd.go index d76cc1c..6c28ea4 100644 --- a/pkg/generate/examples/examples/etcd.go +++ b/pkg/generate/examples/examples/etcd.go @@ -246,6 +246,7 @@ backup-provider: local backup-cron-schedule: "*/1 * * * *" object-prefix: etcd-test etcd-endpoints: http://localhost:32379 +encryption-key: "01234567891234560123456789123456" post-exec-cmds: - etcd --data-dir=/data/etcd --listen-client-urls http://0.0.0.0:32379 --advertise-client-urls http://0.0.0.0:32379 --listen-peer-urls http://0.0.0.0:32380 --initial-advertise-peer-urls http://0.0.0.0:32380 --initial-cluster default=http://0.0.0.0:32380 --listen-metrics-urls http://0.0.0.0:32381 `, diff --git a/pkg/generate/examples/examples/keydb.go b/pkg/generate/examples/examples/keydb.go index 706768c..dff05b2 100644 --- a/pkg/generate/examples/examples/keydb.go +++ b/pkg/generate/examples/examples/keydb.go @@ -238,6 +238,7 @@ backup-provider: local backup-cron-schedule: "*/1 * * * *" object-prefix: keydb-test redis-addr: localhost:6379 +encryption-key: "01234567891234560123456789123456" post-exec-cmds: - keydb-server `, diff --git a/pkg/generate/examples/examples/localfs.go b/pkg/generate/examples/examples/localfs.go index 90aa1a6..1af850b 100644 --- a/pkg/generate/examples/examples/localfs.go +++ b/pkg/generate/examples/examples/localfs.go @@ -207,6 +207,7 @@ backup-provider: local backup-cron-schedule: "*/1 * * * *" object-prefix: localfs-test redis-addr: localhost:6379 +encryption-key: "01234567891234560123456789123456" post-exec-cmds: - tail -f /etc/hosts `, diff --git a/pkg/generate/examples/examples/meilisearch.go b/pkg/generate/examples/examples/meilisearch.go index 39db910..ece9749 100644 --- a/pkg/generate/examples/examples/meilisearch.go +++ b/pkg/generate/examples/examples/meilisearch.go @@ -279,6 +279,7 @@ backup-provider: local backup-cron-schedule: "*/1 * * * *" object-prefix: meilisearch-test compression-method: targz +encryption-key: "01234567891234560123456789123456" post-exec-cmds: - meilisearch --db-path=/data/data.ms/ --dump-dir=/backup/upload/files `, diff --git a/pkg/generate/examples/examples/postgres.go b/pkg/generate/examples/examples/postgres.go index 4be6afc..96149cb 100644 --- a/pkg/generate/examples/examples/postgres.go +++ b/pkg/generate/examples/examples/postgres.go @@ -309,6 +309,7 @@ backup-provider: local backup-cron-schedule: "*/1 * * * *" object-prefix: postgres-test compression-method: tar +encryption-key: "01234567891234560123456789123456" post-exec-cmds: - docker-entrypoint.sh postgres `, diff --git a/pkg/generate/examples/examples/redis.go b/pkg/generate/examples/examples/redis.go index ff8ec12..e21b32f 100644 --- a/pkg/generate/examples/examples/redis.go +++ b/pkg/generate/examples/examples/redis.go @@ -238,6 +238,7 @@ backup-provider: local backup-cron-schedule: "*/1 * * * *" object-prefix: redis-test redis-addr: localhost:6379 +encryption-key: "01234567891234560123456789123456" post-exec-cmds: - redis-server `, diff --git a/pkg/generate/examples/examples/rethinkdb.go b/pkg/generate/examples/examples/rethinkdb.go index dd0305d..a5ac7e9 100644 --- a/pkg/generate/examples/examples/rethinkdb.go +++ b/pkg/generate/examples/examples/rethinkdb.go @@ -261,6 +261,7 @@ backup-provider: local rethinkdb-passwordfile: /rethinkdb-secret/rethinkdb-password.txt backup-cron-schedule: "*/1 * * * *" object-prefix: rethinkdb-test +encryption-key: "01234567891234560123456789123456" post-exec-cmds: # IMPORTANT: the --directory needs to point to the exact sidecar data dir, otherwise the database will be restored to the wrong location - rethinkdb --bind all --directory /data/rethinkdb --initial-password ${RETHINKDB_PASSWORD}