From 65ba5191c42164a2e738667a86344a12397d58a2 Mon Sep 17 00:00:00 2001 From: Ivan_Kustau Date: Tue, 28 Nov 2023 12:31:39 +0300 Subject: [PATCH 1/2] EPMRPP-87165 || Added PBKDF2 to PASSWORD_ENCODER_TYPE --- migrations/81_pbkdf2_encryption.down.sql | 3 +++ migrations/81_pbkdf2_encryption.up.sql | 1 + 2 files changed, 4 insertions(+) create mode 100644 migrations/81_pbkdf2_encryption.down.sql create mode 100644 migrations/81_pbkdf2_encryption.up.sql diff --git a/migrations/81_pbkdf2_encryption.down.sql b/migrations/81_pbkdf2_encryption.down.sql new file mode 100644 index 0000000..e23d76c --- /dev/null +++ b/migrations/81_pbkdf2_encryption.down.sql @@ -0,0 +1,3 @@ +DROP TYPE PASSWORD_ENCODER_TYPE; + +CREATE TYPE PASSWORD_ENCODER_TYPE AS ENUM ('PLAIN', 'SHA', 'LDAP_SHA', 'MD4', 'MD5'); \ No newline at end of file diff --git a/migrations/81_pbkdf2_encryption.up.sql b/migrations/81_pbkdf2_encryption.up.sql new file mode 100644 index 0000000..977f759 --- /dev/null +++ b/migrations/81_pbkdf2_encryption.up.sql @@ -0,0 +1 @@ +ALTER TYPE PASSWORD_ENCODER_TYPE ADD VALUE 'PBKDF2'; \ No newline at end of file From 06ed1f448bf4cc8b406b0856425561c379079e82 Mon Sep 17 00:00:00 2001 From: Ivan_Kustau Date: Mon, 4 Dec 2023 11:36:29 +0300 Subject: [PATCH 2/2] EPMRPP-87165 || Added PBKDF2-HMAC-SHA512 to PASSWORD_ENCODER_TYPE --- migrations/81_pbkdf2_encryption.up.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migrations/81_pbkdf2_encryption.up.sql b/migrations/81_pbkdf2_encryption.up.sql index 977f759..d027d93 100644 --- a/migrations/81_pbkdf2_encryption.up.sql +++ b/migrations/81_pbkdf2_encryption.up.sql @@ -1 +1,2 @@ -ALTER TYPE PASSWORD_ENCODER_TYPE ADD VALUE 'PBKDF2'; \ No newline at end of file +ALTER TYPE PASSWORD_ENCODER_TYPE ADD VALUE 'PBKDF2'; +ALTER TYPE PASSWORD_ENCODER_TYPE ADD VALUE 'PBKDF2-HMAC-SHA512'; \ No newline at end of file