com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Securing Passwords

All WSO2 products, by default, come with a secure vault implementation, which is a modified version of synapse secure vault. It provides capability to securely store-sensitive data such as plain-text passwords in configuration files of the WSO2 Carbon platform, such as user-mgt.xml, Carbon.xml, Axis2.xml, registry.xml etc. All WSO2 Carbon-based products inherit the secure vault implementation from the core Carbon platform. For more information, refer to section Tools in WSO2 Carbon documentation. However, when securing passwords of more product-specific configuration files such as data service configurations, the steps may vary.

WSO2 Data Services Server provides the feature to securely store sensitive data in data service configuration files, using the Secure Vault functionality. Users can encrypt their passwords using tokens instead of the actual password inside the data service configuration file. The instructions below explain how to secure passwords in a datasource configuration.

  1. Run ciphertool script from <PRODUCT_HOME>/bin directory.
    • Linux: sh ciphertool.sh -Dconfigure
    • Windows: ciphertool.bat -Dconfigure
  2. To encrypt the plain text using ciphertool, run the ciphertool script again without -Dconfigure option. It asks for the KeyStore Password of the running Carbon instance. The default is wso2carbon.
  3. Then provide the plain text value that needs to be encrypted and the tool returns the encrypted text value.
  4. Update the <PRODUCT_HOME>/repository/conf/security/cipher-text.properties file by adding a new alias (any name of your preference) and the encrypted value.
  5. In the Edit datasource window of the management console  select Use as Secret Alias option. In the Password filed, provide the alias name instead of the actual password.
  6. The namespace and alias will be added to the .dbs file as follows:
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.