Skip to content

Commit cc008f6

Browse files
chenkinsdkocher
authored andcommitted
Bump katta-server:1.5.0-SNAPSHOT according to https://github.com/cryptomator/hub/releases/tag/1.4.0 using chipotle realm of testing.katta.cloud for hybrid testing.
1 parent bbbbe0b commit cc008f6

File tree

9 files changed

+558
-558
lines changed

9 files changed

+558
-558
lines changed

hub/src/test/java/cloud/katta/testsetup/AbstractHubTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public abstract class AbstractHubTest extends VaultTest {
6767
public static final HubTestConfig.Setup.DockerConfig LOCAL_DOCKER_CONFIG;
6868

6969
static {
70-
LOCAL_DOCKER_CONFIG = new HubTestConfig.Setup.DockerConfig("/docker-compose-minio-localhost-hub.yml", "/.local.env", "local", "admin", "admin", "syncer");
70+
LOCAL_DOCKER_CONFIG = new HubTestConfig.Setup.DockerConfig("/docker-compose-minio-localhost-hub.yml", "/.local.env", "local", "admin", "admin", "top-secret");
7171
LOCAL = new HubTestConfig.Setup()
7272
.withHubURL("http://localhost:8280")
7373
.withUserConfig(new HubTestConfig.Setup.UserConfig("alice", "asd", staticSetupCode()))

hub/src/test/java/cloud/katta/testsetup/HubTestConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ public static class DockerConfig {
6666
public final String profile;
6767
public final String hubAdminUser;
6868
public final String hubAdminPassword;
69-
public final String hubKeycloakSyncerPassword;
69+
public final String hubKeycloakSystemClientSecret;
7070

7171

72-
public DockerConfig(final String composeFile, final String envFile, final String profile, final String hubAdminUser, final String hubAdminPassword, final String hubKeycloakSyncerPassword) {
72+
public DockerConfig(final String composeFile, final String envFile, final String profile, final String hubAdminUser, final String hubAdminPassword, final String hubKeycloakSystemClientSecret) {
7373
this.composeFile = composeFile;
7474
this.envFile = envFile;
7575
this.profile = profile;
7676
this.hubAdminUser = hubAdminUser;
7777
this.hubAdminPassword = hubAdminPassword;
78-
this.hubKeycloakSyncerPassword = hubKeycloakSyncerPassword;
78+
this.hubKeycloakSystemClientSecret = hubKeycloakSystemClientSecret;
7979
}
8080
}
8181

hub/src/test/java/cloud/katta/testsetup/HubTestSetupDockerExtension.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
import org.junit.jupiter.api.extension.BeforeAllCallback;
1111
import org.junit.jupiter.api.extension.ExtensionContext;
1212
import org.testcontainers.containers.ComposeContainer;
13-
import org.testcontainers.containers.wait.strategy.DockerHealthcheckWaitStrategy;
1413
import org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy;
15-
import org.testcontainers.containers.wait.strategy.WaitAllStrategy;
1614

1715
import java.io.File;
1816
import java.io.IOException;
@@ -54,7 +52,7 @@ protected void setupDocker(final HubTestConfig.Setup.DockerConfig configuration)
5452
));
5553
env.put("HUB_ADMIN_USER", configuration.hubAdminUser);
5654
env.put("HUB_ADMIN_PASSWORD", configuration.hubAdminPassword);
57-
env.put("HUB_KEYCLOAK_SYNCER_PASSWORD", configuration.hubKeycloakSyncerPassword);
55+
env.put("HUB_KEYCLOAK_SYSTEM_CLIENT_SECRET", configuration.hubKeycloakSystemClientSecret);
5856
this.compose = new ComposeContainer(
5957
new File(HubTestSetupDockerExtension.class.getResource(configuration.composeFile).toURI()))
6058
.withLocalCompose(true)

hub/src/test/resources/.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
KATTA_SERVER_IMAGE=ghcr.io/shift7-ch/katta-server:latest
1+
KATTA_SERVER_IMAGE=ghcr.io/shift7-ch/katta-server:1.5.0-SNAPSHOT-ci
22
HUB_PORT=8080
33
HUB_KEYCLOAK_URL=http://localhost:8180
44
HUB_KEYCLOAK_BASEPATH=
55
HUB_KEYCLOAK_REALM=cryptomator
6-
HUB_KEYCLOAK_SYNCER_PASSWORD=syncer
6+
HUB_KEYCLOAK_SYSTEM_CLIENT_SECRET=top-secret
77

88
HUB_ADMIN_USER=admin
99
HUB_ADMIN_PASSWORD=admin
@@ -12,7 +12,7 @@ MINIO_HOSTNAME=localhost
1212
MINIO_PORT=9000
1313
MINIO_CONSOLE_PORT=9001
1414

15-
KATTA_KEYCLOAK_IMAGE=ghcr.io/shift7-ch/keycloak:25.0.1
15+
KATTA_KEYCLOAK_IMAGE=ghcr.io/shift7-ch/keycloak:26.1.5
1616
KEYCLOAK_HOSTNAME=localhost
1717
KEYCLOAK_HTTP_PORT=8180
1818
KEYCLOAK_HTTPS_PORT=8443

hub/src/test/resources/.hybrid.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
KATTA_SERVER_IMAGE=ghcr.io/shift7-ch/katta-server:latest
1+
KATTA_SERVER_IMAGE=ghcr.io/shift7-ch/katta-server:1.5.0-SNAPSHOT-ci
22
HUB_PORT=8280
33
HUB_KEYCLOAK_URL=https://testing.katta.cloud
44
HUB_KEYCLOAK_BASEPATH=/kc
55
HUB_KEYCLOAK_REALM=chipotle
6-
#HUB_KEYCLOAK_SYNCER_PASSWORD=
6+
#HUB_KEYCLOAK_SYSTEM_CLIENT_SECRET=
77

88
#HUB_ADMIN_USER=
99
#HUB_ADMIN_PASSWORD=

hub/src/test/resources/.local.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
KATTA_SERVER_IMAGE=ghcr.io/shift7-ch/katta-server:latest
1+
KATTA_SERVER_IMAGE=ghcr.io/shift7-ch/katta-server:1.5.0-SNAPSHOT-ci
22
HUB_PORT=8280
33
HUB_KEYCLOAK_URL=http://localhost:8380
44
HUB_KEYCLOAK_BASEPATH=
55
HUB_KEYCLOAK_REALM=cryptomator
6-
HUB_KEYCLOAK_SYNCER_PASSWORD=syncer
6+
HUB_KEYCLOAK_SYSTEM_CLIENT_SECRET=top-secret
77

88
HUB_ADMIN_USER=admin
99
HUB_ADMIN_PASSWORD=admin
@@ -12,7 +12,7 @@ MINIO_HOSTNAME=localhost
1212
MINIO_PORT=9100
1313
MINIO_CONSOLE_PORT=9101
1414

15-
KATTA_KEYCLOAK_IMAGE=ghcr.io/shift7-ch/keycloak:25.0.1
15+
KATTA_KEYCLOAK_IMAGE=ghcr.io/shift7-ch/keycloak:26.1.5
1616
KEYCLOAK_HOSTNAME=localhost
1717
KEYCLOAK_HTTP_PORT=8380
1818
KEYCLOAK_HTTPS_PORT=8443

hub/src/test/resources/docker-compose-minio-localhost-hub.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ services:
1717
KC_HTTPS_CERTIFICATE_FILE: /opt/keycloak/dev/certs/keycloak-server.crt.pem
1818
KC_HTTPS_CERTIFICATE_KEY_FILE: /opt/keycloak/dev/certs/keycloak-server.key.pem
1919
volumes:
20-
- ./keycloak/dev-realm.json:/opt/keycloak/data/import/keycloak-realm.json
20+
# renamed because of https://github.com/keycloak/keycloak/issues/37569 for Keycloak 26.1.5
21+
- ./keycloak/dev-realm.json:/opt/keycloak/data/import/keycloak.json
2122
- ./certs:/opt/keycloak/dev/certs
2223
# hub to Keycloak communication inside Docker network (http://keycloak:8180) goes to the container internal port! Therefore, we need to start keycloak with the same port `--http-port 8180`
2324
command: start-dev --import-realm --db=dev-mem --health-enabled=true --hostname ${KEYCLOAK_HOSTNAME} --http-port ${KEYCLOAK_HTTP_PORT} --features=token-exchange,admin-fine-grained-authz
@@ -264,7 +265,8 @@ services:
264265
HUB_KEYCLOAK_PUBLIC_URL: ${HUB_KEYCLOAK_URL}${HUB_KEYCLOAK_BASEPATH}
265266
HUB_KEYCLOAK_LOCAL_URL: ${HUB_KEYCLOAK_URL}${HUB_KEYCLOAK_BASEPATH}
266267
HUB_KEYCLOAK_REALM: ${HUB_KEYCLOAK_REALM}
267-
HUB_KEYCLOAK_SYNCER_PASSWORD: ${HUB_KEYCLOAK_SYNCER_PASSWORD}
268+
HUB_KEYCLOAK_SYSTEM_CLIENT_ID: cryptomatorhub-system
269+
HUB_KEYCLOAK_SYSTEM_CLIENT_SECRET: ${HUB_KEYCLOAK_SYSTEM_CLIENT_SECRET}
268270
HUB_KEYCLOAK_OIDC_CRYPTOMATOR_CLIENT_ID: cryptomator
269271
AWS_REGION: us-east-1
270272
ports:
@@ -289,7 +291,7 @@ services:
289291
# reload and verify configuration
290292
nginx -t
291293
# start reverse proxy to keycloak and minio
292-
systemctl start nginx.service
294+
nginx
293295
# verify reverse proxy
294296
curl --fail http://localhost:${KEYCLOAK_HTTP_PORT}/realms/cryptomator/.well-known/openid-configuration
295297
curl --fail http://127.0.0.1:${KEYCLOAK_HTTP_PORT}/realms/cryptomator/.well-known/openid-configuration
@@ -306,7 +308,7 @@ services:
306308
# reload and verify configuration
307309
nginx -t
308310
# start reverse proxy to keycloak and minio
309-
systemctl restart nginx.service
311+
nginx -s reload || nginx
310312
# skip verify reverse proxy (MinIO might not be up yet).
311313
# curl --fail http://localhost:${MINIO_PORT}/minio/health/ready
312314
# curl --fail http://127.0.0.1:${MINIO_PORT}/minio/health/ready
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ARG KATTA_SERVER_IMAGE
22
FROM ${KATTA_SERVER_IMAGE}
33

4-
RUN apt-get update && apt-get -y install curl wget telnet net-tools nginx systemctl gettext-base && systemctl start nginx
4+
USER root
5+
RUN microdnf update -y && microdnf -y install wget net-tools nginx gettext && microdnf clean all -y && systemctl enable nginx

0 commit comments

Comments
 (0)