From 75b432b96d28ff4bd3407b5133c409812767054e Mon Sep 17 00:00:00 2001 From: Roman Strobl Date: Fri, 8 Apr 2022 10:29:12 +0200 Subject: [PATCH 1/2] Fix #142: Prepare release 2022.04 --- .../docker-powerauth-data-adapter/Dockerfile | 2 +- arm64v8/docker-powerauth-nextstep/Dockerfile | 2 +- .../docker-powerauth-push-server/Dockerfile | 2 +- arm64v8/docker-powerauth-server/Dockerfile | 2 +- .../docker-powerauth-tpp-engine/Dockerfile | 2 +- arm64v8/docker-powerauth-webflow/Dockerfile | 2 +- build-arm64v8.sh | 2 +- build.sh | 2 +- deploy/data/postgresql/powerauth-server.sql | 329 +++++++++--------- docker-powerauth-data-adapter/Dockerfile | 2 +- docker-powerauth-nextstep/Dockerfile | 2 +- docker-powerauth-push-postgresql/Dockerfile | 2 +- docker-powerauth-push-server/Dockerfile | 2 +- docker-powerauth-server-postgresql/Dockerfile | 2 +- docker-powerauth-server/Dockerfile | 2 +- docker-powerauth-tpp-engine/Dockerfile | 2 +- .../Dockerfile | 2 +- docker-powerauth-webflow/Dockerfile | 2 +- 18 files changed, 183 insertions(+), 180 deletions(-) diff --git a/arm64v8/docker-powerauth-data-adapter/Dockerfile b/arm64v8/docker-powerauth-data-adapter/Dockerfile index c13c69a..de1b4ea 100644 --- a/arm64v8/docker-powerauth-data-adapter/Dockerfile +++ b/arm64v8/docker-powerauth-data-adapter/Dockerfile @@ -1,4 +1,4 @@ -FROM arm64v8/tomcat:9-jre11@sha256:7f97013afbda47a97e37548079143f79e4b4561622fdda7bc08681d08d303761 +FROM arm64v8/tomcat:9-jre11@sha256:cdf6a9ca2a039f9cfbf0c6546f77c0d6b3664dbdc49a4284a2dd6e84bed2defd LABEL maintainer="roman.strobl@wultra.com" # Prepare environment variables diff --git a/arm64v8/docker-powerauth-nextstep/Dockerfile b/arm64v8/docker-powerauth-nextstep/Dockerfile index f5217ea..86ea007 100644 --- a/arm64v8/docker-powerauth-nextstep/Dockerfile +++ b/arm64v8/docker-powerauth-nextstep/Dockerfile @@ -1,4 +1,4 @@ -FROM arm64v8/tomcat:9-jre11@sha256:7f97013afbda47a97e37548079143f79e4b4561622fdda7bc08681d08d303761 +FROM arm64v8/tomcat:9-jre11@sha256:cdf6a9ca2a039f9cfbf0c6546f77c0d6b3664dbdc49a4284a2dd6e84bed2defd LABEL maintainer="roman.strobl@wultra.com" # Prepare environment variables diff --git a/arm64v8/docker-powerauth-push-server/Dockerfile b/arm64v8/docker-powerauth-push-server/Dockerfile index d5ec98c..217b65a 100644 --- a/arm64v8/docker-powerauth-push-server/Dockerfile +++ b/arm64v8/docker-powerauth-push-server/Dockerfile @@ -1,4 +1,4 @@ -FROM arm64v8/tomcat:9-jre11@sha256:7f97013afbda47a97e37548079143f79e4b4561622fdda7bc08681d08d303761 +FROM arm64v8/tomcat:9-jre11@sha256:cdf6a9ca2a039f9cfbf0c6546f77c0d6b3664dbdc49a4284a2dd6e84bed2defd LABEL maintainer="roman.strobl@wultra.com" # Prepare environment variables diff --git a/arm64v8/docker-powerauth-server/Dockerfile b/arm64v8/docker-powerauth-server/Dockerfile index a87ac39..cbd7878 100644 --- a/arm64v8/docker-powerauth-server/Dockerfile +++ b/arm64v8/docker-powerauth-server/Dockerfile @@ -1,4 +1,4 @@ -FROM arm64v8/tomcat:9-jre11@sha256:7f97013afbda47a97e37548079143f79e4b4561622fdda7bc08681d08d303761 +FROM arm64v8/tomcat:9-jre11@sha256:cdf6a9ca2a039f9cfbf0c6546f77c0d6b3664dbdc49a4284a2dd6e84bed2defd LABEL maintainer="roman.strobl@wultra.com" # Prepare environment variables diff --git a/arm64v8/docker-powerauth-tpp-engine/Dockerfile b/arm64v8/docker-powerauth-tpp-engine/Dockerfile index 665725c..53de06f 100644 --- a/arm64v8/docker-powerauth-tpp-engine/Dockerfile +++ b/arm64v8/docker-powerauth-tpp-engine/Dockerfile @@ -1,4 +1,4 @@ -FROM arm64v8/tomcat:9-jre11@sha256:7f97013afbda47a97e37548079143f79e4b4561622fdda7bc08681d08d303761 +FROM arm64v8/tomcat:9-jre11@sha256:cdf6a9ca2a039f9cfbf0c6546f77c0d6b3664dbdc49a4284a2dd6e84bed2defd LABEL maintainer="roman.strobl@wultra.com" # Prepare environment variables diff --git a/arm64v8/docker-powerauth-webflow/Dockerfile b/arm64v8/docker-powerauth-webflow/Dockerfile index d6b9fd1..49fa489 100644 --- a/arm64v8/docker-powerauth-webflow/Dockerfile +++ b/arm64v8/docker-powerauth-webflow/Dockerfile @@ -1,4 +1,4 @@ -FROM arm64v8/tomcat:9-jre11@sha256:7f97013afbda47a97e37548079143f79e4b4561622fdda7bc08681d08d303761 +FROM arm64v8/tomcat:9-jre11@sha256:cdf6a9ca2a039f9cfbf0c6546f77c0d6b3664dbdc49a4284a2dd6e84bed2defd LABEL maintainer="roman.strobl@wultra.com" # Prepare environment variables diff --git a/build-arm64v8.sh b/build-arm64v8.sh index 34f4900..63be030 100644 --- a/build-arm64v8.sh +++ b/build-arm64v8.sh @@ -9,7 +9,7 @@ fi # Prepare Build Number if [ -z ${TAG+x} ]; then - export PRODUCT_VERSION="2021.11" + export PRODUCT_VERSION="2022.04" if [ -z ${BUILD+x} ]; then export BUILD=$(date +%s) fi diff --git a/build.sh b/build.sh index c0532ca..ba26782 100644 --- a/build.sh +++ b/build.sh @@ -9,7 +9,7 @@ fi # Prepare Build Number if [ -z ${TAG+x} ]; then - export PRODUCT_VERSION="2021.11" + export PRODUCT_VERSION="2022.04" if [ -z ${BUILD+x} ]; then export BUILD=$(date +%s) fi diff --git a/deploy/data/postgresql/powerauth-server.sql b/deploy/data/postgresql/powerauth-server.sql index d1f17b5..dbafe47 100644 --- a/deploy/data/postgresql/powerauth-server.sql +++ b/deploy/data/postgresql/powerauth-server.sql @@ -8,240 +8,243 @@ GRANT ALL PRIVILEGES ON DATABASE powerauth TO powerauth; -- -- Create sequences. Maximum value for PostgreSQL is 9223372036854775807. --- See: https://www.postgresql.org/docs/9.6/sql-createsequence.html +--- See: https://www.postgresql.org/docs/9.6/sql-createsequence.html -- -CREATE SEQUENCE "pa_application_seq" MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; -CREATE SEQUENCE "pa_application_version_seq" MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; -CREATE SEQUENCE "pa_master_keypair_seq" MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; -CREATE SEQUENCE "pa_signature_audit_seq" MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; -CREATE SEQUENCE "pa_activation_history_seq" MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; -CREATE SEQUENCE "pa_recovery_code_seq" MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; -CREATE SEQUENCE "pa_recovery_puk_seq" MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; -CREATE SEQUENCE "pa_recovery_config_seq" MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; -CREATE SEQUENCE "pa_operation_template_seq" MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; +CREATE SEQUENCE pa_application_seq MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; +CREATE SEQUENCE pa_application_version_seq MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; +CREATE SEQUENCE pa_master_keypair_seq MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; +CREATE SEQUENCE pa_signature_audit_seq MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; +CREATE SEQUENCE pa_activation_history_seq MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; +CREATE SEQUENCE pa_recovery_code_seq MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; +CREATE SEQUENCE pa_recovery_puk_seq MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; +CREATE SEQUENCE pa_recovery_config_seq MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; +CREATE SEQUENCE pa_operation_template_seq MINVALUE 1 MAXVALUE 9223372036854775807 INCREMENT BY 1 START WITH 1 CACHE 20; -- -- DDL for Table PA_ACTIVATION -- -CREATE TABLE "pa_activation" +CREATE TABLE pa_activation ( - "activation_id" VARCHAR(37) NOT NULL PRIMARY KEY, - "application_id" INTEGER NOT NULL, - "user_id" VARCHAR(255) NOT NULL, - "activation_name" VARCHAR(255), - "activation_code" VARCHAR(255), - "activation_status" INTEGER NOT NULL, - "activation_otp" VARCHAR(255), - "activation_otp_validation" INTEGER DEFAULT 0 NOT NULL, - "blocked_reason" VARCHAR(255), - "counter" INTEGER NOT NULL, - "ctr_data" VARCHAR(255), - "device_public_key_base64" VARCHAR(255), - "extras" VARCHAR(255), - "platform" VARCHAR(255), - "device_info" VARCHAR(255), - "flags" VARCHAR(255), - "failed_attempts" INTEGER NOT NULL, - "max_failed_attempts" INTEGER DEFAULT 5 NOT NULL, - "server_private_key_base64" VARCHAR(255) NOT NULL, - "server_private_key_encryption" INTEGER DEFAULT 0 NOT NULL, - "server_public_key_base64" VARCHAR(255) NOT NULL, - "timestamp_activation_expire" TIMESTAMP (6) NOT NULL, - "timestamp_created" TIMESTAMP (6) NOT NULL, - "timestamp_last_used" TIMESTAMP (6) NOT NULL, - "timestamp_last_change" TIMESTAMP (6), - "master_keypair_id" INTEGER, - "version" INTEGER DEFAULT 2 + activation_id VARCHAR(37) NOT NULL PRIMARY KEY, + application_id INTEGER NOT NULL, + user_id VARCHAR(255) NOT NULL, + activation_name VARCHAR(255), + activation_code VARCHAR(255), + activation_status INTEGER NOT NULL, + activation_otp VARCHAR(255), + activation_otp_validation INTEGER DEFAULT 0 NOT NULL, + blocked_reason VARCHAR(255), + counter INTEGER NOT NULL, + ctr_data VARCHAR(255), + device_public_key_base64 VARCHAR(255), + extras VARCHAR(255), + platform VARCHAR(255), + device_info VARCHAR(255), + flags VARCHAR(255), + failed_attempts INTEGER NOT NULL, + max_failed_attempts INTEGER DEFAULT 5 NOT NULL, + server_private_key_base64 VARCHAR(255) NOT NULL, + server_private_key_encryption INTEGER DEFAULT 0 NOT NULL, + server_public_key_base64 VARCHAR(255) NOT NULL, + timestamp_activation_expire TIMESTAMP (6) NOT NULL, + timestamp_created TIMESTAMP (6) NOT NULL, + timestamp_last_used TIMESTAMP (6) NOT NULL, + timestamp_last_change TIMESTAMP (6), + master_keypair_id INTEGER, + version INTEGER DEFAULT 2 ); -- -- DDL for Table PA_APPLICATION -- -CREATE TABLE "pa_application" +CREATE TABLE pa_application ( - "id" INTEGER NOT NULL PRIMARY KEY, - "name" VARCHAR(255) NOT NULL, - "roles" VARCHAR(255) + id INTEGER NOT NULL PRIMARY KEY, + name VARCHAR(255) NOT NULL, + roles VARCHAR(255) ); -- -- DDL for Table PA_APPLICATION_VERSION -- -CREATE TABLE "pa_application_version" +CREATE TABLE pa_application_version ( - "id" INTEGER NOT NULL PRIMARY KEY, - "application_id" INTEGER NOT NULL, - "application_key" VARCHAR(255), - "application_secret" VARCHAR(255), - "name" VARCHAR(255), - "supported" BOOLEAN + id INTEGER NOT NULL PRIMARY KEY, + application_id INTEGER NOT NULL, + application_key VARCHAR(255), + application_secret VARCHAR(255), + name VARCHAR(255), + supported BOOLEAN ); -- -- DDL for Table PA_MASTER_KEYPAIR -- -CREATE TABLE "pa_master_keypair" +CREATE TABLE pa_master_keypair ( - "id" INTEGER NOT NULL PRIMARY KEY, - "application_id" INTEGER NOT NULL, - "master_key_private_base64" VARCHAR(255) NOT NULL, - "master_key_public_base64" VARCHAR(255) NOT NULL, - "name" VARCHAR(255), - "timestamp_created" TIMESTAMP (6) NOT NULL + id INTEGER NOT NULL PRIMARY KEY, + application_id INTEGER NOT NULL, + master_key_private_base64 VARCHAR(255) NOT NULL, + master_key_public_base64 VARCHAR(255) NOT NULL, + name VARCHAR(255), + timestamp_created TIMESTAMP (6) NOT NULL ); -- -- DDL for Table PA_SIGNATURE_AUDIT -- -CREATE TABLE "pa_signature_audit" +CREATE TABLE pa_signature_audit ( - "id" BIGINT NOT NULL PRIMARY KEY, - "activation_id" VARCHAR(37) NOT NULL, - "activation_counter" INTEGER NOT NULL, - "activation_ctr_data" VARCHAR(255), - "activation_status" INTEGER, - "additional_info" VARCHAR(255), - "data_base64" TEXT, - "note" VARCHAR(255), - "signature_type" VARCHAR(255) NOT NULL, - "signature" VARCHAR(255) NOT NULL, - "timestamp_created" TIMESTAMP (6) NOT NULL, - "valid" BOOLEAN, - "version" INTEGER DEFAULT 2, - "signature_version" VARCHAR(255) + id BIGINT NOT NULL PRIMARY KEY, + activation_id VARCHAR(37) NOT NULL, + activation_counter INTEGER NOT NULL, + activation_ctr_data VARCHAR(255), + activation_status INTEGER, + additional_info VARCHAR(255), + data_base64 TEXT, + note VARCHAR(255), + signature_type VARCHAR(255) NOT NULL, + signature VARCHAR(255) NOT NULL, + timestamp_created TIMESTAMP (6) NOT NULL, + valid BOOLEAN, + version INTEGER DEFAULT 2, + signature_version VARCHAR(255) ); -- -- DDL for Table PA_INTEGRATION -- -CREATE TABLE "pa_integration" +CREATE TABLE pa_integration ( - "id" VARCHAR(37) NOT NULL PRIMARY KEY, - "name" VARCHAR(255), - "client_token" VARCHAR(37) NOT NULL, - "client_secret" VARCHAR(37) NOT NULL + id VARCHAR(37) NOT NULL PRIMARY KEY, + name VARCHAR(255), + client_token VARCHAR(37) NOT NULL, + client_secret VARCHAR(37) NOT NULL ); -- -- DDL for Table PA_APPLICATION_CALLBACK -- -CREATE TABLE "pa_application_callback" +CREATE TABLE pa_application_callback ( - "id" VARCHAR(37) NOT NULL PRIMARY KEY, - "application_id" INTEGER NOT NULL, - "name" VARCHAR(255), - "callback_url" VARCHAR(1024), - "type" VARCHAR(64) DEFAULT 'ACTIVATION_STATUS_CHANGE' NOT NULL, - "attributes" VARCHAR(1024), - "authentication" TEXT + id VARCHAR(37) NOT NULL PRIMARY KEY, + application_id INTEGER NOT NULL, + name VARCHAR(255), + callback_url VARCHAR(1024), + type VARCHAR(64) DEFAULT 'ACTIVATION_STATUS_CHANGE' NOT NULL, + attributes VARCHAR(1024), + authentication TEXT ); -- -- DDL for Table PA_TOKEN -- -CREATE TABLE "pa_token" +CREATE TABLE pa_token ( - "token_id" VARCHAR(37) NOT NULL PRIMARY KEY, - "token_secret" VARCHAR(255) NOT NULL, - "activation_id" VARCHAR(255) NOT NULL, - "signature_type" VARCHAR(255) NOT NULL, - "timestamp_created" TIMESTAMP (6) NOT NULL + token_id VARCHAR(37) NOT NULL PRIMARY KEY, + token_secret VARCHAR(255) NOT NULL, + activation_id VARCHAR(255) NOT NULL, + signature_type VARCHAR(255) NOT NULL, + timestamp_created TIMESTAMP (6) NOT NULL ); -- -- DDL for Table PA_ACTIVATION_HISTORY -- -CREATE TABLE "pa_activation_history" +CREATE TABLE pa_activation_history ( - "id" BIGINT NOT NULL PRIMARY KEY, - "activation_id" VARCHAR(37) NOT NULL, - "activation_status" INTEGER, - "event_reason" VARCHAR(255), - "external_user_id" VARCHAR(255), - "timestamp_created" TIMESTAMP (6) NOT NULL + id BIGINT NOT NULL PRIMARY KEY, + activation_id VARCHAR(37) NOT NULL, + activation_status INTEGER, + event_reason VARCHAR(255), + external_user_id VARCHAR(255), + timestamp_created TIMESTAMP (6) NOT NULL ); -- -- DDL for Table PA_RECOVERY_CODE -- -CREATE TABLE "pa_recovery_code" ( - "id" BIGINT NOT NULL PRIMARY KEY, - "recovery_code" VARCHAR(23) NOT NULL, - "application_id" INTEGER NOT NULL, - "user_id" VARCHAR(255) NOT NULL, - "activation_id" VARCHAR(37), - "status" INTEGER NOT NULL, - "failed_attempts" INTEGER DEFAULT 0 NOT NULL, - "max_failed_attempts" INTEGER DEFAULT 10 NOT NULL, - "timestamp_created" TIMESTAMP (6) NOT NULL, - "timestamp_last_used" TIMESTAMP (6), - "timestamp_last_change" TIMESTAMP (6) +CREATE TABLE pa_recovery_code ( + id BIGINT NOT NULL PRIMARY KEY, + recovery_code VARCHAR(23) NOT NULL, + application_id INTEGER NOT NULL, + user_id VARCHAR(255) NOT NULL, + activation_id VARCHAR(37), + status INTEGER NOT NULL, + failed_attempts INTEGER DEFAULT 0 NOT NULL, + max_failed_attempts INTEGER DEFAULT 10 NOT NULL, + timestamp_created TIMESTAMP (6) NOT NULL, + timestamp_last_used TIMESTAMP (6), + timestamp_last_change TIMESTAMP (6) ); -- -- DDL for Table PA_RECOVERY_PUK -- -CREATE TABLE "pa_recovery_puk" ( - "id" BIGINT NOT NULL PRIMARY KEY, - "recovery_code_id" BIGINT NOT NULL, - "puk" VARCHAR(255), - "puk_encryption" INTEGER DEFAULT 0 NOT NULL, - "puk_index" BIGINT NOT NULL, - "status" INTEGER NOT NULL, - "timestamp_last_change" TIMESTAMP (6) +CREATE TABLE pa_recovery_puk ( + id BIGINT NOT NULL PRIMARY KEY, + recovery_code_id BIGINT NOT NULL, + puk VARCHAR(255), + puk_encryption INTEGER DEFAULT 0 NOT NULL, + puk_index BIGINT NOT NULL, + status INTEGER NOT NULL, + timestamp_last_change TIMESTAMP (6) ); -- -- DDL for Table PA_RECOVERY_CONFIG -- -CREATE TABLE "pa_recovery_config" ( - "id" INTEGER NOT NULL PRIMARY KEY, - "application_id" INTEGER NOT NULL, - "activation_recovery_enabled" BOOLEAN NOT NULL DEFAULT FALSE, - "recovery_postcard_enabled" BOOLEAN NOT NULL DEFAULT FALSE, - "allow_multiple_recovery_codes" BOOLEAN NOT NULL DEFAULT FALSE, - "postcard_private_key_base64" VARCHAR(255), - "postcard_public_key_base64" VARCHAR(255), - "remote_public_key_base64" VARCHAR(255), - "postcard_priv_key_encryption" INTEGER DEFAULT 0 NOT NULL +CREATE TABLE pa_recovery_config ( + id INTEGER NOT NULL PRIMARY KEY, + application_id INTEGER NOT NULL, + activation_recovery_enabled BOOLEAN NOT NULL DEFAULT FALSE, + recovery_postcard_enabled BOOLEAN NOT NULL DEFAULT FALSE, + allow_multiple_recovery_codes BOOLEAN NOT NULL DEFAULT FALSE, + postcard_private_key_base64 VARCHAR(255), + postcard_public_key_base64 VARCHAR(255), + remote_public_key_base64 VARCHAR(255), + postcard_priv_key_encryption INTEGER DEFAULT 0 NOT NULL ); -- -- DDL for Table PA_OPERATION -- -CREATE TABLE "pa_operation" ( - "id" VARCHAR(37) NOT NULL PRIMARY KEY, - "user_id" VARCHAR(255) NOT NULL, - "application_id" BIGINT NOT NULL, - "external_id" VARCHAR(255), - "operation_type" VARCHAR(255) NOT NULL, - "data" TEXT NOT NULL, - "parameters" TEXT, - "status" INTEGER NOT NULL, - "signature_type" VARCHAR(255) NOT NULL, - "failure_count" BIGINT DEFAULT 0 NOT NULL, - "max_failure_count" BIGINT NOT NULL, - "timestamp_created" TIMESTAMP NOT NULL, - "timestamp_expires" TIMESTAMP NOT NULL, - "timestamp_finalized" TIMESTAMP +CREATE TABLE pa_operation ( + id VARCHAR(37) NOT NULL PRIMARY KEY, + user_id VARCHAR(255) NOT NULL, + application_id BIGINT NOT NULL, + external_id VARCHAR(255), + activation_flag VARCHAR(255), + operation_type VARCHAR(255) NOT NULL, + template_name VARCHAR(255), + data TEXT NOT NULL, + parameters TEXT, + additional_data TEXT, + status INTEGER NOT NULL, + signature_type VARCHAR(255) NOT NULL, + failure_count BIGINT DEFAULT 0 NOT NULL, + max_failure_count BIGINT NOT NULL, + timestamp_created TIMESTAMP NOT NULL, + timestamp_expires TIMESTAMP NOT NULL, + timestamp_finalized TIMESTAMP ); -- -- DDL for Table PA_OPERATION_TEMPLATE -- -CREATE TABLE "pa_operation_template" ( - "id" BIGINT NOT NULL PRIMARY KEY, - "template_name" VARCHAR(255) NOT NULL, - "operation_type" VARCHAR(255) NOT NULL, - "data_template" VARCHAR(255) NOT NULL, - "signature_type" VARCHAR(255) NOT NULL, - "max_failure_count" BIGINT NOT NULL, - "expiration" BIGINT NOT NULL +CREATE TABLE pa_operation_template ( + id BIGINT NOT NULL PRIMARY KEY, + template_name VARCHAR(255) NOT NULL, + operation_type VARCHAR(255) NOT NULL, + data_template VARCHAR(255) NOT NULL, + signature_type VARCHAR(255) NOT NULL, + max_failure_count BIGINT NOT NULL, + expiration BIGINT NOT NULL ); -- @@ -257,59 +260,59 @@ CREATE TABLE shedlock ( -- -- Ref Constraints for Table PA_ACTIVATION -- -ALTER TABLE "pa_activation" ADD CONSTRAINT "activation_keypair_fk" FOREIGN KEY ("master_keypair_id") REFERENCES "pa_master_keypair" ("id"); -ALTER TABLE "pa_activation" ADD CONSTRAINT "activation_application_fk" FOREIGN KEY ("application_id") REFERENCES "pa_application" ("id"); +ALTER TABLE pa_activation ADD CONSTRAINT activation_keypair_fk FOREIGN KEY (master_keypair_id) REFERENCES pa_master_keypair (id); +ALTER TABLE pa_activation ADD CONSTRAINT activation_application_fk FOREIGN KEY (application_id) REFERENCES pa_application (id); -- -- Ref Constraints for Table PA_APPLICATION_VERSION -- -ALTER TABLE "pa_application_version" ADD CONSTRAINT "version_application_fk" FOREIGN KEY ("application_id") REFERENCES "pa_application" ("id"); +ALTER TABLE pa_application_version ADD CONSTRAINT version_application_fk FOREIGN KEY (application_id) REFERENCES pa_application (id); -- -- Ref Constraints for Table PA_MASTER_KEYPAIR -- -ALTER TABLE "pa_master_keypair" ADD CONSTRAINT "keypair_application_fk" FOREIGN KEY ("application_id") REFERENCES "pa_application" ("id"); +ALTER TABLE pa_master_keypair ADD CONSTRAINT keypair_application_fk FOREIGN KEY (application_id) REFERENCES pa_application (id); -- -- Ref Constraints for Table PA_SIGNATURE_AUDIT -- -ALTER TABLE "pa_signature_audit" ADD CONSTRAINT "audit_activation_fk" FOREIGN KEY ("activation_id") REFERENCES "pa_activation" ("activation_id"); +ALTER TABLE pa_signature_audit ADD CONSTRAINT audit_activation_fk FOREIGN KEY (activation_id) REFERENCES pa_activation (activation_id); -- -- Ref Constraints for Table PA_APPLICATION_CALLBACK -- -ALTER TABLE "pa_application_callback" ADD CONSTRAINT "callback_application_fk" FOREIGN KEY ("application_id") REFERENCES "pa_application" ("id"); +ALTER TABLE pa_application_callback ADD CONSTRAINT callback_application_fk FOREIGN KEY (application_id) REFERENCES pa_application (id); -- -- Ref Constraints for Table PA_TOKEN -- -ALTER TABLE "pa_token" ADD CONSTRAINT "activation_token_fk" FOREIGN KEY ("activation_id") REFERENCES "pa_activation" ("activation_id"); +ALTER TABLE pa_token ADD CONSTRAINT activation_token_fk FOREIGN KEY (activation_id) REFERENCES pa_activation (activation_id); -- -- Ref Constraints for Table PA_ACTIVATION_HISTORY -- -ALTER TABLE "pa_activation_history" ADD CONSTRAINT "history_activation_fk" FOREIGN KEY ("activation_id") REFERENCES "pa_activation" ("activation_id"); +ALTER TABLE pa_activation_history ADD CONSTRAINT history_activation_fk FOREIGN KEY (activation_id) REFERENCES pa_activation (activation_id); -- -- Ref Constraints for Table PA_RECOVERY_CODE -- -ALTER TABLE "pa_recovery_code" ADD CONSTRAINT "recovery_code_application_fk" FOREIGN KEY ("application_id") REFERENCES "pa_application" ("id"); -ALTER TABLE "pa_recovery_code" ADD CONSTRAINT "recovery_code_activation_fk" FOREIGN KEY ("activation_id") REFERENCES "pa_activation" ("activation_id"); +ALTER TABLE pa_recovery_code ADD CONSTRAINT recovery_code_application_fk FOREIGN KEY (application_id) REFERENCES pa_application (id); +ALTER TABLE pa_recovery_code ADD CONSTRAINT recovery_code_activation_fk FOREIGN KEY (activation_id) REFERENCES pa_activation (activation_id); -- -- Ref Constraints for Table PA_RECOVERY_PUK -- -ALTER TABLE "pa_recovery_puk" ADD CONSTRAINT "recovery_puk_code_fk" FOREIGN KEY ("recovery_code_id") REFERENCES "pa_recovery_code" ("id"); +ALTER TABLE pa_recovery_puk ADD CONSTRAINT recovery_puk_code_fk FOREIGN KEY (recovery_code_id) REFERENCES pa_recovery_code (id); -- -- Ref Constraints for Table PA_RECOVERY_CONFIG -- -ALTER TABLE "pa_recovery_config" ADD CONSTRAINT "recovery_config_app_fk" FOREIGN KEY ("application_id") REFERENCES "pa_application" ("id"); +ALTER TABLE pa_recovery_config ADD CONSTRAINT recovery_config_app_fk FOREIGN KEY (application_id) REFERENCES pa_application (id); -- -- Ref Constraints for Table PA_OPERATION -- -ALTER TABLE "pa_operation" ADD CONSTRAINT "operation_application_fk" FOREIGN KEY ("application_id") REFERENCES "pa_application" ("id"); +ALTER TABLE pa_operation ADD CONSTRAINT operation_application_fk FOREIGN KEY (application_id) REFERENCES pa_application (id); --- diff --git a/docker-powerauth-data-adapter/Dockerfile b/docker-powerauth-data-adapter/Dockerfile index 0e8a542..3a9182d 100644 --- a/docker-powerauth-data-adapter/Dockerfile +++ b/docker-powerauth-data-adapter/Dockerfile @@ -1,4 +1,4 @@ -FROM tomcat:jdk11-adoptopenjdk-openj9 +FROM tomcat:jdk11-adoptopenjdk-openj9@sha256:bebb14ffca2a3f01a07492795d73f2c4541c41fa0641bdf1924494a255c0c5af LABEL maintainer="petr@wultra.com" # Prepare environment variables diff --git a/docker-powerauth-nextstep/Dockerfile b/docker-powerauth-nextstep/Dockerfile index e6f77fc..164be15 100644 --- a/docker-powerauth-nextstep/Dockerfile +++ b/docker-powerauth-nextstep/Dockerfile @@ -1,4 +1,4 @@ -FROM tomcat:jdk11-adoptopenjdk-openj9 +FROM tomcat:jdk11-adoptopenjdk-openj9@sha256:bebb14ffca2a3f01a07492795d73f2c4541c41fa0641bdf1924494a255c0c5af LABEL maintainer="petr@wultra.com" # Prepare environment variables diff --git a/docker-powerauth-push-postgresql/Dockerfile b/docker-powerauth-push-postgresql/Dockerfile index d1ae2ba..46fe0a9 100644 --- a/docker-powerauth-push-postgresql/Dockerfile +++ b/docker-powerauth-push-postgresql/Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:14.1 +FROM postgres:14.2 LABEL maintainer="roman.strobl@wultra.com" ADD deploy/data/postgresql/powerauth-push-server.sql /docker-entrypoint-initdb.d/ diff --git a/docker-powerauth-push-server/Dockerfile b/docker-powerauth-push-server/Dockerfile index de449e2..b8de5ed 100644 --- a/docker-powerauth-push-server/Dockerfile +++ b/docker-powerauth-push-server/Dockerfile @@ -1,4 +1,4 @@ -FROM tomcat:jdk11-adoptopenjdk-openj9 +FROM tomcat:jdk11-adoptopenjdk-openj9@sha256:bebb14ffca2a3f01a07492795d73f2c4541c41fa0641bdf1924494a255c0c5af LABEL maintainer="petr@wultra.com" # Prepare environment variables diff --git a/docker-powerauth-server-postgresql/Dockerfile b/docker-powerauth-server-postgresql/Dockerfile index 32825b0..8ce01c3 100644 --- a/docker-powerauth-server-postgresql/Dockerfile +++ b/docker-powerauth-server-postgresql/Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:14.1 +FROM postgres:14.2 LABEL maintainer="roman.strobl@wultra.com" ADD deploy/data/postgresql/powerauth-server.sql /docker-entrypoint-initdb.d/ diff --git a/docker-powerauth-server/Dockerfile b/docker-powerauth-server/Dockerfile index 6b206ee..6a3e0a6 100644 --- a/docker-powerauth-server/Dockerfile +++ b/docker-powerauth-server/Dockerfile @@ -1,4 +1,4 @@ -FROM tomcat:jdk11-adoptopenjdk-openj9 +FROM tomcat:jdk11-adoptopenjdk-openj9@sha256:bebb14ffca2a3f01a07492795d73f2c4541c41fa0641bdf1924494a255c0c5af LABEL maintainer="petr@wultra.com" # Prepare environment variables diff --git a/docker-powerauth-tpp-engine/Dockerfile b/docker-powerauth-tpp-engine/Dockerfile index 93e372e..3b02eb9 100644 --- a/docker-powerauth-tpp-engine/Dockerfile +++ b/docker-powerauth-tpp-engine/Dockerfile @@ -1,4 +1,4 @@ -FROM tomcat:jdk11-adoptopenjdk-openj9 +FROM tomcat:jdk11-adoptopenjdk-openj9@sha256:bebb14ffca2a3f01a07492795d73f2c4541c41fa0641bdf1924494a255c0c5af LABEL maintainer="petr@wultra.com" # Prepare environment variables diff --git a/docker-powerauth-webflow-postgresql/Dockerfile b/docker-powerauth-webflow-postgresql/Dockerfile index 7e3c391..268ca1e 100644 --- a/docker-powerauth-webflow-postgresql/Dockerfile +++ b/docker-powerauth-webflow-postgresql/Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:14.1 +FROM postgres:14.2 LABEL maintainer="roman.strobl@wultra.com" ADD deploy/data/postgresql/powerauth-webflow.sql /docker-entrypoint-initdb.d/ diff --git a/docker-powerauth-webflow/Dockerfile b/docker-powerauth-webflow/Dockerfile index bb0f883..5ea1af0 100644 --- a/docker-powerauth-webflow/Dockerfile +++ b/docker-powerauth-webflow/Dockerfile @@ -1,4 +1,4 @@ -FROM tomcat:jdk11-adoptopenjdk-openj9 +FROM tomcat:jdk11-adoptopenjdk-openj9@sha256:bebb14ffca2a3f01a07492795d73f2c4541c41fa0641bdf1924494a255c0c5af LABEL maintainer="petr@wultra.com" # Prepare environment variables From 028e96b6827b8c708fbf3848da3e9f4488353589 Mon Sep 17 00:00:00 2001 From: Roman Strobl Date: Fri, 8 Apr 2022 10:57:37 +0200 Subject: [PATCH 2/2] Update docker-compose version --- docker-compose-arm64v8.yml | 2 +- docker-compose-pa-all-arm64v8.yml | 2 +- docker-compose-pa-all.yml | 2 +- docker-compose.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose-arm64v8.yml b/docker-compose-arm64v8.yml index e455c25..dde88e4 100644 --- a/docker-compose-arm64v8.yml +++ b/docker-compose-arm64v8.yml @@ -1,4 +1,4 @@ -version: '2.2.2' +version: '2.4' services: # PowerAuth Server PostgreSQL Database diff --git a/docker-compose-pa-all-arm64v8.yml b/docker-compose-pa-all-arm64v8.yml index 0118403..a2f40d1 100644 --- a/docker-compose-pa-all-arm64v8.yml +++ b/docker-compose-pa-all-arm64v8.yml @@ -1,4 +1,4 @@ -version: '2.2.2' +version: '2.4' services: # PowerAuth Server PostgreSQL Database diff --git a/docker-compose-pa-all.yml b/docker-compose-pa-all.yml index 81e299b..0d384ea 100644 --- a/docker-compose-pa-all.yml +++ b/docker-compose-pa-all.yml @@ -1,4 +1,4 @@ -version: '2.2.2' +version: '2.4' services: # PowerAuth Server PostgreSQL Database diff --git a/docker-compose.yml b/docker-compose.yml index 7408696..5c4791a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '2.2.2' +version: '2.4' services: # PowerAuth Server PostgreSQL Database