- 08 Jan 2025
- 3 Minutes à lire
- SombreLumière
- PDF
Rolling Upgrade Scenario: Three OneSpan Authentication Server Instances Using Individual Databases
- Mis à jour le 08 Jan 2025
- 3 Minutes à lire
- SombreLumière
- PDF
About this scenario
This scenario describes an environment with the following setup:
- There are three OneSpan Authentication Server instances: server A, server B, and server C.
- Each OneSpan Authentication Server instance has its own database.
- User load is distributed evenly between all OneSpan Authentication Server instances using a third-party solution.
- Two-way replication is enabled between all instances to ensure consistency of data across databases
Figure: Rolling upgrade scenario: Three servers using individual databases and replication
The servers will be upgraded in the following order:
- Server A
- Server B
- Server C
Do not modify the configuration of the servers, or perform authenticator or user administration, during the rolling upgrade.
We recommend that you carefully consider the security implications of this procedure (as mentioned above).
Before you begin
Verify that you have addressed the different usability and user load issues related to a rolling upgrade (see General considerations).
In this scenario you will be requested to configure, break, and restore replication between different OneSpan Authentication Server instances. For more information about replication during rolling upgrades, see Replication.
Although this scenario allows live upgrading with minimal service degradation, you need to take certain security considerations into account. During this upgrade, there is a window in which OTP replay attacks are possible.
Problem
A window for a replay attack opens when one server has been upgraded and is handling authentication requests, but is not yet replicating to other servers. In the scenario above, a replay attack is made possible. A user may authenticate first on server A, then replay the exact same authentication on server B or server C.
Specifically, replay attacks are possible from step 12 until 24 in the upgrade process described below.
Workaround
If the replay attack window is not acceptable and the total load is low enough to be handled on one server, you can move all load to server A in step 12 and continue with the upgrade as specified. This makes steps 13 and 24 unnecessary; all other steps remain valid.
Walkthrough: Performing a rolling upgrade on three servers with individual databases
Performing a rolling upgrade on servers with individual databases
Upgrade Server A
- Remove the load from server A.
- Break replication from server B to server A.
- Break replication from server C to server A.
Wait until the replication queue on server A is empty.
You should now be in this situation:
Figure: Rolling upgrade scenario: Breaking replication from other servers to server A
- Stop the OneSpan Authentication Server service on server A.
- Break replication from server A to server B.
Break replication from server A to server C.
Figure: Rolling upgrade scenario: Breaking replication from server A to other servers
- Upgrade OneSpan Authentication Server on server A.
- Restore replication from server B to server A.
Restore replication from server C to server A.
Figure: Rolling upgrade scenario: Restoring replication from other servers to server A
- Wait until the replication queues on servers B and server C to server A are empty.
Restore the load on server A.
Figure: Rolling upgrade scenario: Restoring user load to server A
Upgrade Server B
- Remove the load on server B.
Break replication from server C to server B.
Figure: Rolling upgrade scenario: Breaking replication from server C to server B
- Wait until the replication queue on server B is empty.
- Stop the OneSpan Authentication Server service on server B.
- Break replication from server B to server A.
Break replication from server B to server C.
Figure: Rolling upgrade scenario: Breaking replication from server B to other servers
- Upgrade OneSpan Authentication Server on server B.
- Restore replication from server A to server B.
Restore replication from server B to server A.
Figure: Rolling upgrade scenario: Restoring replication from server B to server A
- Wait until the replication queue on server A towards server B is empty.
Restore load on server B.
Figure: Rolling upgrade scenario: Restoring user load on server B
Upgrade Server C
- Remove load on server C.
Wait until the replication queue on server C to server A is empty.
Figure: Rolling upgrade scenario: Removing user load on server C
- Stop the OneSpan Authentication Server service on server C.
Break replication from server C to server A.
Figure: Rolling upgrade scenario: Breaking replication from server C to server A
- Upgrade OneSpan Authentication Server on server C.
- Restore replication from server A to server C.
Restore replication from server B to server C
Figure: Rolling upgrade scenario: Restoring replication from other servers to server C
- Restore replication from server C to server A.
- Restore replication from server C to server B.
Wait until the replication queues on server A and server B to server C are empty.
Figure: Rolling upgrade scenario: Restoring replication from server C to other servers
- Restore load to server C.