[midPoint-git] [Evolveum/midpoint] 0a863d: Fix encryption of mail/sms passwords (MID-4941)

Pavol Mederly mederly at evolveum.com
Wed Oct 17 14:43:31 CEST 2018


  Branch: refs/heads/feature/reencryption-on-3.8
  Home:   https://github.com/Evolveum/midpoint
  Commit: 0a863d250661e0f2d0369c1b0230a3f99ec8e3fe
      https://github.com/Evolveum/midpoint/commit/0a863d250661e0f2d0369c1b0230a3f99ec8e3fe
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M infra/common/src/main/java/com/evolveum/midpoint/common/crypto/CryptoUtil.java
    A infra/common/src/test/java/com/evolveum/midpoint/common/TestCryptoUtil.java
    A infra/common/src/test/resources/crypto/system-configuration.xml
    A infra/common/src/test/resources/crypto/user-jack.xml
    A infra/common/src/test/resources/keystore.jceks
    M infra/common/testng-unit.xml

  Log Message:
  -----------
  Fix encryption of mail/sms passwords (MID-4941)

CryptoUtil needed to be adapted after containerizing
NotificationConfigurationType.

(cherry picked from commit e39d7e8a0ac46cd9c47e3ffcc5cbd5edc159a7d3)


  Commit: ae180c5171fc88fff058c9c1b5b2725be956064e
      https://github.com/Evolveum/midpoint/commit/ae180c5171fc88fff058c9c1b5b2725be956064e
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M infra/common/src/main/java/com/evolveum/midpoint/common/crypto/CryptoUtil.java
    M infra/common/src/test/java/com/evolveum/midpoint/common/TestCryptoUtil.java
    M infra/common/src/test/resources/keystore.jceks
    M infra/prism/src/main/java/com/evolveum/midpoint/prism/crypto/Protector.java
    M infra/prism/src/main/java/com/evolveum/midpoint/prism/crypto/ProtectorImpl.java

  Log Message:
  -----------
  Add parts of re-encryption feature (MID-4942)

This commit adds CryptoUtil.reencryptValues(protector, object) method.
To complete the MID-4942 a wrapper would be needed that would take an
object, call this method, and if there are any changes detected,
replace the object in the repository.

(cherry picked from commit 93b1f3bcde066d65c610f36522dea3b73e8dd200)


  Commit: db7ae98986781af90d99cf3640f069bba64e27e6
      https://github.com/Evolveum/midpoint/commit/db7ae98986781af90d99cf3640f069bba64e27e6
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M infra/common/src/main/java/com/evolveum/midpoint/common/crypto/CryptoUtil.java
    M infra/common/src/test/java/com/evolveum/midpoint/common/TestCryptoUtil.java
    M model/model-api/src/main/java/com/evolveum/midpoint/model/api/expr/MidpointFunctions.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/MidpointFunctionsImpl.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/ApplyDefinitionExecutor.java
    A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/ReencryptExecutor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/scripting/actions/ScriptExecutor.java
    A samples/tasks/bulk-actions/list-encryption-keys.xml
    A samples/tasks/bulk-actions/reencrypt-selected-objects.xml

  Log Message:
  -----------
  Finish re-encryption feature (MID-4942)

Two new bulk actions added: reencrypt, applyDefinitions.
New CryptoUtil method: getEncryptionKeyNames.

Samples to list encryption keys and reencrypt selected objects.

(cherry picked from commit 8eb59b44dcfb04b76fd11becff554a6680618a78)


  Commit: 768a289e71cb6c5cc071cdaf8daa001f5b7462e2
      https://github.com/Evolveum/midpoint/commit/768a289e71cb6c5cc071cdaf8daa001f5b7462e2
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M infra/common/src/main/java/com/evolveum/midpoint/common/crypto/CryptoUtil.java
    M infra/common/src/test/java/com/evolveum/midpoint/common/TestCryptoUtil.java

  Log Message:
  -----------
  Backport re-encryption to 3.8.x (MID-4942)

The old midPoint uses different representation of notification
configuration, so CryptoUtil had to be adapted.


Compare: https://github.com/Evolveum/midpoint/compare/0a863d250661^...768a289e71cb
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the midPoint-svn mailing list