Migration from 1.6.x to 1.7.0

This guide contains instructions for migration from PowerAuth Server version 1.6.x to version 1.7.0.

API

Attribute additionalData modification

In version 1.7.x, the structure of the attribute additionalData has changed across numerous objects:

Previous versions used Map<String, String> to store additionalData, which restricted values to string types. Version 1.7.x changes additionalData to Map<String, Object>. This update allows for a more versatile data structure, accommodating complex objects in addition to simple string values.

If your application interacts with objects containing the additionalData attribute and expects only string values, this type change may lead to runtime errors or data parsing exceptions. It is crucial to update your data handling code to accommodate potentially complex object structures within additionalData.

Database Changes

For convenience you can use liquibase for your database migration.

For manual changes use SQL scripts:

Updated DB Schema for FIDO2 Support

Following columns have been added to table pa_activation for FIDO2 support:

  • external_id - external identifier of the activation
  • protocol - protocol enumeration: powerauth or fido2

The size of column extras in table pa_activation was increased to 4000 from 255 to support larger data.

New Database Table for Application Configuration

A new database table pa_application_config has been added:

  • id - application configuration row identifier
  • application_id - application identifier
  • config_key - configuration key
  • config_values - list of configuration values serialized as JSON array

Following parameters can be configured:

  • fido2_attestation_fmt_allowed - list of allowed attestation formats for FIDO2 registrations, unset value means all attestation formats are allowed
  • fido2_aaguids_allowed - list of allowed AAGUIDs for FIDO2 registration, unset value means all AAGUIDs are allowed
  • fido2_root_ca_certs - list of trusted root CA certificates for certificate validation in PEM format

New Database Table for FIDO2 Authenticator Models

A new database table pa_fido2_authenticator has been added:

  • aaguid - identifier of the FIDO2 authenticator model
  • description - human-readable description of the FIDO2 authenticator model
  • signature_type - signature type provided by the FIDO2 authenticator model
Last updated on Apr 29, 2024 (09:58) Edit on Github Send Feedback
Search

develop

PowerAuth Server