Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Token encryption #2157

Open
wants to merge 35 commits into
base: main
Choose a base branch
from

Conversation

jachym-tousek-keboola
Copy link
Contributor

Jira: https://keboola.atlassian.net/browse/PSGO-911

Changes:

  • Encrypt keboola tokens in Stream API

@jachym-tousek-keboola jachym-tousek-keboola changed the title feat: Encryption configuration feat: Token encryption Nov 26, 2024
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch 10 times, most recently from 81d70c2 to eaac77c Compare November 27, 2024 11:22
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch 2 times, most recently from 745c984 to 1f01ea7 Compare December 2, 2024 08:25
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch from e90d3cb to 9f9056e Compare December 4, 2024 12:47
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch 6 times, most recently from 95b016b to 64bc260 Compare December 6, 2024 11:08
@jachym-tousek-keboola jachym-tousek-keboola marked this pull request as ready for review December 6, 2024 11:48
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch 2 times, most recently from 990cd92 to 3676be8 Compare December 17, 2024 16:38
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch from 3676be8 to 37438f7 Compare December 17, 2024 16:41
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch from adb788f to fc25599 Compare December 18, 2024 14:43
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch 2 times, most recently from 7802c81 to 2d37a0b Compare December 19, 2024 10:54
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch from 2d37a0b to 3510844 Compare December 19, 2024 11:02
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch from ce36c39 to b62ae72 Compare December 20, 2024 12:04
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch from f2b4cfd to 41bab0e Compare December 20, 2024 13:17
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch from 43259e0 to 193d49b Compare January 2, 2025 09:19
@jachym-tousek-keboola jachym-tousek-keboola force-pushed the jt-psgo-911-stream-token-encryption branch from 193d49b to c80feac Compare January 2, 2025 09:29
Copy link

github-actions bot commented Jan 2, 2025

Stream Kubernetes Diff [CI]

Between base b8421f8 ⬅️ head c80feac.

Expand
--- /tmp/artifacts/test-k8s-state.old.json.processed.kv	2025-01-02 09:49:10.729363784 +0000
+++ /tmp/artifacts/test-k8s-state.new.json.processed.kv	2025-01-02 09:49:11.245357913 +0000
@@ -13 +13 @@
-<ConfigMap/stream-config>.data["config.yaml"] = "###############################################################################################...
+<ConfigMap/stream-config>.data["config.yaml"] = "###############################################################################################...
@@ -200 +200 @@
-<Deployment/stream-api>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<Deployment/stream-api>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -364 +364 @@
-<Deployment/stream-http-source>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<Deployment/stream-http-source>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -525 +525 @@
-<Deployment/stream-storage-coordinator>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<Deployment/stream-storage-coordinator>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -609 +609 @@
-<Endpoints/stream-etcd-headless>.subsets[0].addresses[1].hostname = "stream-etcd-0";
+<Endpoints/stream-etcd-headless>.subsets[0].addresses[1].hostname = "stream-etcd-1";
@@ -613 +613 @@
-<Endpoints/stream-etcd-headless>.subsets[0].addresses[1].targetRef.name = "stream-etcd-0";
+<Endpoints/stream-etcd-headless>.subsets[0].addresses[1].targetRef.name = "stream-etcd-1";
@@ -616 +616 @@
-<Endpoints/stream-etcd-headless>.subsets[0].addresses[2].hostname = "stream-etcd-1";
+<Endpoints/stream-etcd-headless>.subsets[0].addresses[2].hostname = "stream-etcd-0";
@@ -620 +620 @@
-<Endpoints/stream-etcd-headless>.subsets[0].addresses[2].targetRef.name = "stream-etcd-1";
+<Endpoints/stream-etcd-headless>.subsets[0].addresses[2].targetRef.name = "stream-etcd-0";
@@ -659 +659 @@
-<Endpoints/stream-etcd>.subsets[0].addresses[1].targetRef.name = "stream-etcd-0";
+<Endpoints/stream-etcd>.subsets[0].addresses[1].targetRef.name = "stream-etcd-1";
@@ -665 +665 @@
-<Endpoints/stream-etcd>.subsets[0].addresses[2].targetRef.name = "stream-etcd-1";
+<Endpoints/stream-etcd>.subsets[0].addresses[2].targetRef.name = "stream-etcd-0";
@@ -717 +717 @@
-<Endpoints/stream-storage-writer-reader>.subsets[0].addresses[0].hostname = "stream-storage-writer-reader-0";
+<Endpoints/stream-storage-writer-reader>.subsets[0].addresses[0].hostname = "stream-storage-writer-reader-1";
@@ -721 +721 @@
-<Endpoints/stream-storage-writer-reader>.subsets[0].addresses[0].targetRef.name = "stream-storage-writer-reader-0";
+<Endpoints/stream-storage-writer-reader>.subsets[0].addresses[0].targetRef.name = "stream-storage-writer-reader-1";
@@ -724 +724 @@
-<Endpoints/stream-storage-writer-reader>.subsets[0].addresses[1].hostname = "stream-storage-writer-reader-1";
+<Endpoints/stream-storage-writer-reader>.subsets[0].addresses[1].hostname = "stream-storage-writer-reader-0";
@@ -728 +728 @@
-<Endpoints/stream-storage-writer-reader>.subsets[0].addresses[1].targetRef.name = "stream-storage-writer-reader-1";
+<Endpoints/stream-storage-writer-reader>.subsets[0].addresses[1].targetRef.name = "stream-storage-writer-reader-0";
@@ -1214,2 +1214,2 @@
-<Pod/stream-api-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
-<Pod/stream-api-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<Pod/stream-api-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
+<Pod/stream-api-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -1534 +1534 @@
-<Pod/stream-etcd-0>.spec.containers[0].env[21].value = "new";
+<Pod/stream-etcd-0>.spec.containers[0].env[21].value = "existing";
@@ -1780 +1780 @@
-<Pod/stream-etcd-1>.spec.containers[0].env[21].value = "new";
+<Pod/stream-etcd-1>.spec.containers[0].env[21].value = "existing";
@@ -2026 +2026 @@
-<Pod/stream-etcd-2>.spec.containers[0].env[21].value = "new";
+<Pod/stream-etcd-2>.spec.containers[0].env[21].value = "existing";
@@ -2350,2 +2350,2 @@
-<Pod/stream-http-source-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
-<Pod/stream-http-source-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<Pod/stream-http-source-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
+<Pod/stream-http-source-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -2742,2 +2742,2 @@
-<Pod/stream-storage-coordinator-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
-<Pod/stream-storage-coordinator-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<Pod/stream-storage-coordinator-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
+<Pod/stream-storage-coordinator-<hash>>.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -2978 +2978 @@
-<Pod/stream-storage-writer-reader-0>.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<Pod/stream-storage-writer-reader-0>.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -3061 +3061 @@
-<Pod/stream-storage-writer-reader-0>.spec.containers[1].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<Pod/stream-storage-writer-reader-0>.spec.containers[1].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -3231 +3231 @@
-<Pod/stream-storage-writer-reader-1>.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<Pod/stream-storage-writer-reader-1>.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -3314 +3314 @@
-<Pod/stream-storage-writer-reader-1>.spec.containers[1].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<Pod/stream-storage-writer-reader-1>.spec.containers[1].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -3552 +3552 @@
-<ReplicaSet/stream-api-<hash>>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<ReplicaSet/stream-api-<hash>>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -3723 +3723 @@
-<ReplicaSet/stream-http-source-<hash>>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<ReplicaSet/stream-http-source-<hash>>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -3891 +3891 @@
-<ReplicaSet/stream-storage-coordinator-<hash>>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<ReplicaSet/stream-storage-coordinator-<hash>>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -3932,0 +3933,12 @@
+<Secret/sh.helm.release.v1.stream-etcd.v2> = {};
+<Secret/sh.helm.release.v1.stream-etcd.v2>.apiVersion = "v1";
+<Secret/sh.helm.release.v1.stream-etcd.v2>.data = {};
+<Secret/sh.helm.release.v1.stream-etcd.v2>.kind = "Secret";
+<Secret/sh.helm.release.v1.stream-etcd.v2>.metadata = {};
+<Secret/sh.helm.release.v1.stream-etcd.v2>.metadata.labels = {};
+<Secret/sh.helm.release.v1.stream-etcd.v2>.metadata.labels.name = "stream-etcd";
+<Secret/sh.helm.release.v1.stream-etcd.v2>.metadata.labels.owner = "helm";
+<Secret/sh.helm.release.v1.stream-etcd.v2>.metadata.labels.version = "2";
+<Secret/sh.helm.release.v1.stream-etcd.v2>.metadata.name = "sh.helm.release.v1.stream-etcd.v2";
+<Secret/sh.helm.release.v1.stream-etcd.v2>.metadata.namespace = "stream";
+<Secret/sh.helm.release.v1.stream-etcd.v2>.type = "helm.sh/release.v1";
@@ -4228 +4240 @@
-<StatefulSet/stream-etcd>.spec.template.spec.containers[0].env[21].value = "new";
+<StatefulSet/stream-etcd>.spec.template.spec.containers[0].env[21].value = "existing";
@@ -4478 +4490 @@
-<StatefulSet/stream-storage-writer-reader>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<StatefulSet/stream-storage-writer-reader>.spec.template.spec.containers[0].image = "docker.io/keboola/stream-api:c80feac-1735810915";
@@ -4558 +4570 @@
-<StatefulSet/stream-storage-writer-reader>.spec.template.spec.containers[1].image = "docker.io/keboola/stream-api:b8421f8-1735810311";
+<StatefulSet/stream-storage-writer-reader>.spec.template.spec.containers[1].image = "docker.io/keboola/stream-api:c80feac-1735810915";


(see artifacts in the Github Action for more information)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants