Synchronous or asynchronous timestamping in X-Road

Choose between per-message and batch timestamping for X-Road message evidence. Learn how each mode behaves during a TSA outage, what it adds to exchange latency and what to confirm before you commit.

On this page

Synchronous or asynchronous X-Road timestamping: which mode your service needs

The team that owns the X-Road message log must decide whether each exchanged message gets its own timestamp at send time, or whether messages are grouped and timestamped in batches. That choice controls three things: availability when the timestamp authority (TSA) is unreachable, how much latency each exchange adds, and how strongly the log can later prove that an exchange took place at the recorded time. The mode is set per Security Server or subsystem, so the answer can differ between services on the same member. Exact behavior, batch limits and TSA dependencies must be confirmed against the documentation for the version in use. The current release is 7.8.3, and the supported lines are 7.8.3, 7.7.4 and 7.6.5 (X-Road releases).

Start the decision with the services, not the infrastructure. For each subsystem, list the exchanges that may later be disputed, the legal or contractual context in which the log would be used, and what the business process does if an exchange is delayed or refused during a TSA outage. A service where a missing exchange causes financial or regulatory harm usually needs a different answer from a read-only lookup. Then run an outage test in a staging environment: make the TSA unreachable on purpose, send a set of exchanges in each candidate mode, and record which exchanges succeed, which stall, what the Security Server logs, and how long each exchange takes. Confirm in the documentation for your version how batches are closed, how long a batch can stay open, and what happens to exchanges that wait for a timestamp.

DeployOpen plans and implements this choice with your team, alongside the message log mode, the TSA and certificate design, and the archive plan, so the timestamp mode, the log contents and the retention settings are decided together. The deliverables are the agreed configuration, the outage test results and a runbook that tells operators what to do when the TSA is unavailable. DeployOpen does not issue audit reports, legal opinions or certifications. Whether a given mode meets your evidentiary or regulatory requirements is a question for your legal counsel and your independent auditor, so ask them to review the chosen mode before it goes live. For the related decision on what the log records, see X-Road full logging vs metadata logging.

How the timestamping decision moves from service requirements to a mode

The diagram starts with the evidence requirement set by the service's legal or audit context. The first decision asks whether each message must carry a timestamp bound at exchange time. A yes sends the flow to synchronous per-message timestamping, where each exchange depends on the timestamping authority (TSA) being reachable. A no sends it to asynchronous batch timestamping, where messages sit in a window between exchange and timestamp, and the batch still needs the TSA later. Both TSA-dependent paths lead to one check: a test environment run with a simulated TSA outage that records what happens to exchanges, logs and timestamps. Compare that recorded behavior with the requirement before choosing a mode.

Decision path from service requirement to timestamping mode, TSA steps marked.

Synchronous and asynchronous modes compared and when each fits

This table compares the two timestamping modes across six factors that affect evidential value, exchange availability and team workload. Read each row as a decision point: the middle columns say when a mode fits, and the last column names the setting, document or test result to confirm before you choose. The main takeaway is that the legal context of each service, and what happens when the timestamp authority is unreachable, should set the mode before latency or batch preferences do.

FactorSynchronous mode fits whenAsynchronous mode fits whenCheck before deciding
What gets timestampedEach record gets its own timestamp. Fits when the service's legal context asks for per-exchange evidence.Records are grouped and the group receives a timestamp. Fits when grouped evidence meets the service's requirements.Evidence wording reviewed with counsel, then matched to the version's user guide.
When the timestamp is obtainedTimestamp is requested during the exchange. Fits when each exchange must be bound to a timestamp at the moment it happens.Timestamp is requested after the batch closes. Fits when a short delay between exchange and token is acceptable.Batch close timing in the user guide for the version in use, checked against logs from a test exchange.
Exchanges when the TSA is unavailableExchanges depend on TSA reachability, so an outage can delay or block traffic. Fits when exchanges must not proceed without a timestamp.Exchanges are expected to continue while records wait for timestamping. Fits when availability outweighs same-moment evidence.Stop the TSA in staging and record exchange and backlog results for each mode before go-live.
LatencyAdds the TSA round trip to each exchange. Fits when the service's agreed response time has room for it.Keeps the exchange path free of TSA calls. Fits for high-volume or latency-sensitive services.Latency measured in your environment at expected peak load, with the TSA round trip included.
Batch size and groupingLittle or no grouping, so each record stands alone as evidence. Fits when per-record tokens are the audit expectation.Records share a token, so batch limits and close timing decide what one token covers. Fits when grouped evidence is accepted.Batch limits and grouping behavior in the user guide, verified by a test that counts records per token.
Operational load on the teamFewer moving parts to monitor, but TSA incidents hit exchanges directly and need a fast response plan.Pending batches and the timestamp backlog need monitoring and a catch-up plan after every outage.Monitoring items and TSA recovery steps in the runbook, tested in a drill before production use.

What a timestamp authority outage does to exchanges in each mode

With synchronous timestamping, every exchange depends on the timestamp authority (TSA) being reachable when the message is processed. If the TSA is down, the service owner must already have decided whether exchanges wait, fail or proceed without a timestamp. Each choice has a different cost: waiting holds up the consuming and producing information systems, failing stops the business process, and proceeding leaves messages untimestamped, which must be handled later. Confirm which behavior the Security Server version in use implements and which settings control it, because the outcome is set by the software and its configuration, not only by the internal policy document. Verify this in a staging environment by blocking access to the TSA and recording what the calling system sees, how long it waits and whether the message log still records the exchange.

With asynchronous batching, exchanges continue during a TSA outage because messages are collected and submitted for timestamping later. The trade-off is a window in which messages sit in the message log without a timestamp. Their evidential value depends on the timestamp arriving afterward, so the owner must monitor the backlog of untimestamped messages, alert when it grows and assign someone to act when the TSA recovers. Ask NIIS documentation or your vendor how a batch is closed, what happens if the TSA stays unavailable for an extended period, and whether batch size limits apply in the version you run. Write these answers into the runbook before go-live, since the backlog behavior during a long outage is the point most likely to be discovered too late.

Measure latency and outage behavior on your own network path before choosing a mode. The time added by a synchronous timestamp depends on where the TSA is hosted, the firewall and proxy hops between Security Servers and the TSA, and any link that crosses an organizational or national boundary. Run timed test exchanges in synchronous mode under normal load, record the added time per exchange, then simulate a TSA outage to see whether exchanges stall, fail or continue. Repeat the outage test in asynchronous mode and confirm that the backlog alert fires. Let the measured results and the legal context of the service decide the mode: if the evidence requirements for the exchange expect each message to carry a timestamp at the time of exchange, synchronous timestamping may be required even when its latency is inconvenient.

Configuring X-Road timestamping on a Security Server

This sequence takes a Security Server from an unconfirmed timestamping setup to a documented, tested mode whose behavior during a timestamping authority outage is known before production traffic depends on it. The operating team carries out the steps, and the decision owner signs off on the chosen mode.

  1. Confirm version, platform and timestamping service

    Record the X-Road version and the Security Server operating system, then check both against the current release page and installation guide. The supported versions listed on the releases page are 7.8.3, 7.7.4 and 7.6.5, and the Security Server supports Ubuntu Server 22.04 and 24.04 LTS on x86-64 and Red Hat Enterprise Linux 8 and 9. Confirm with the ecosystem governance body which timestamping service the ecosystem uses and whether it is an approved service. This step is complete when the version, platform and timestamping service are written in one record, verified against current documentation.

  2. Record the approved service and decision owner

    Write down the approved timestamping service, its endpoint as the ecosystem publishes it, and the person or role that decides the mode for this Security Server. For regulated services, the decision owner is often the business or legal function that owns the evidential requirement, while the platform team implements it. Ask the decision owner to confirm in writing which mode is required and whether an exchange may complete without a timestamp when the service is unavailable. This step is complete when the record names one owner and one approved service.

  3. Set the timestamping mode in the admin interface

    Open the Security Server admin interface and set the approved mode, following the user guide for the installed version because menu names and options can change between releases. Change only the timestamping setting in this pass so that any later fault can be traced to a single change. Apply the change the way the user guide describes, then reopen the configuration page to confirm the saved value. This step is complete when the admin interface shows the approved mode and a test exchange completes under it.

  4. Run test exchanges in a non-production instance

    Run test service calls through a non-production Security Server that matches the production version and timestamping configuration. Include successful exchanges and at least one request that the service rejects. Open the message log and confirm that each record carries the timestamp data the selected mode should produce, and that the message log mode meets your evidence requirement. This step is complete when every test record matches the expected output in the test plan, and the records are kept as a baseline for later comparison.

  5. Simulate timestamping authority unavailability

    On the non-production instance, block or redirect access to the timestamping service at the network boundary, then send test exchanges and record what happens. Repeat the test for each mode under consideration so that the two behaviors can be compared side by side. For each mode, record whether exchanges are refused, delayed or completed without a timestamp, and what the message log shows. This step is complete when the outage behavior for each mode is written down, including the log records a reviewer would need to reconstruct the events.

  6. Document the mode and its monitoring

    Enter the chosen mode, the approved service, the decision owner, the test results and the outage behavior in the service's control records. Add the rollback path and the checks that will show timestamping failures in production, and link those checks to the alerts your operations team already uses. Name the role that responds to a timestamping failure, and have the decision owner approve the record before production change. This step is complete when someone outside the project can state the mode, the failure behavior and the response owner from the record alone.

Security and operational controls around the timestamp path

The timestamp path is only as trustworthy as the people, keys, hosts and records around it. The cards cover who can change timestamping settings, where signing keys live, how the hosts are hardened, how a stalled timestamp service is detected, how the evidence is protected and how mode changes are approved. Asynchronous mode adds a backlog to watch, so check each control against the mode you choose before go-live.

Limit admin access to timestamp settings

The Security Server user guide defines five roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. Decide which role can change timestamping settings and keep that list short, because who can change the timestamp mode determines who can weaken the evidence. Where admins sign in through PAM with SSSD, map LDAP groups to X-Road roles so that removing a person from a directory group also removes their access. Check for shared admin accounts and for leftover users after every staffing change.

Security Server user guide

Protect signing keys with an HSM

Where policy requires that signing keys stay in dedicated hardware, X-Road supports hardware security modules through PKCS#11 drivers using the xroad-addon-hwtokens package, for RSA and EC keys. The timestamp path relies on these keys, so a failed token or a driver that does not match your Security Server release can disrupt signing on the message path. Confirm driver compatibility before go-live with your HSM vendor and your Security Server version, test token failover, and record who holds the HSM credentials and PINs.

Installation guide

Apply the hardening baseline

The X-Road security hardening guide (version 0.6, 09.01.2025) recommends locking accounts for 15 minutes after 3 failed logins, using passwords of at least 16 characters and allowing key-only SSH and account lockout on every host. It also recommends the allowed-hostnames setting to guard against host header injection. Apply the baseline to every Security Server and to any host that supports the timestamp path, then re-check it after each upgrade and configuration management run, since either can change local settings. Ask your auditor which baseline items they will test.

Hardening guidelines

Monitor TSA reachability and backlog

In asynchronous mode, a message can be exchanged before its batch timestamp is issued, so a TSA outage leaves unstamped messages that carry no timestamp yet. Alert on two signals: whether each Security Server can reach the TSA, and how many messages are waiting for a timestamp. Send the alerts to people who can act on them, outside the Security Server host, and agree in writing how long a backlog may grow before it becomes an incident. Test the alert path during a planned TSA outage so you know the alerts arrive.

Protect the message log and archives

The message log, its archives and backups are the evidence that timestamps protect, so they need the same discipline as the stamps themselves. Limit read and write access to the database and archive files to the Security Server service accounts and the people who handle evidence requests. Keep backups under separate credentials, and document who can restore them and who can delete archives. Confirm with your retention policy and legal team how long archives must stay readable before you configure any deletion job, since custody of the evidence is what gives the timestamps their value.

Require change control for mode changes

Switching between synchronous and asynchronous timestamping changes when evidence is stamped, so treat each switch as a change with a written request, a named approver and a closing record. Record the previous mode, the new mode, the effective date, the reason and the risk owner who accepted it. Match the change record against the audit log of administrative actions so a later review can rebuild the timeline. Agree in advance which services must remain synchronous, because a service's legal context may not allow the switch.

Choosing the timestamping mode by service situation

Some services fall under a legal or regulatory context that expects a timestamp bound to each exchange, so the time of a request or response can be shown independently of the message record. In this case the timestamp is part of the evidence, and a gap in it can weaken the case that an exchange happened when it is said to have happened. Synchronous timestamping, where each message is stamped as it is exchanged, is the mode to test first against this requirement, because the stamp is then tied to the individual exchange at the moment it occurs.

  • Scope of the requirement: Ask legal which exchanges must carry a per-message timestamp, and whether a batch stamp covering a time window would meet the wording of the rule or contract.
  • Dependency on the TSA: Confirm with the operator what happens to an exchange when the timestamping authority cannot be reached, and whether the service may refuse the exchange in that case.
  • Retention and proof: Ask risk how long timestamped evidence must be kept and who must be able to produce it in a dispute or audit.
  • Ecosystem agreement: Check with the ecosystem operator whether the timestamping service in use meets the evidential standard that the regulator or contract names.
  • Latency budget: Agree with the service owner how much extra time a stamp per exchange may add before the business process is affected.

Before you choose, get legal's answer in writing on which exchanges need per-message stamps, and get the operator to confirm the failure behavior in writing.

Limits to confirm before you commit to X-Road timestamping

Each item below depends on information held by a provider, an ecosystem operator, your own test environment or your legal advisers, so the design cannot settle it alone. Confirm every item before you choose synchronous or asynchronous timestamping for a service, and record who gave each answer.

Batch size and closing rules

Batched timestamping places many messages under one timestamp token, so the maximum batch size and the rule that closes a batch set how much each token covers. Confirm the maximum batch size, the closing interval and any cap on requests per batch with the timestamping provider's documentation and the ecosystem operator. Then compare those limits with your message volume at peak, because a batch that closes late delays the point at which each message gains its timestamp. Ask for the answers in writing before you design a service around batching.

Timestamp service levels

Per-message timestamping waits on the timestamp authority for every message, so the provider's service levels decide how often exchanges wait or fail. Ask for the stated availability target, the support hours, the response times for incidents and what happens to queued requests during an outage. Check whether the ecosystem operator adds its own commitments on top of the provider's, because your service agreement may only cover one of them. Treat any figure you do not receive in writing as unconfirmed.

Support window for 7.x releases

Version 7.8.0 was the last new-feature release of the 7 line, and NIIS intends to keep issuing bug fixes and security patches beyond 2026. It has not decided how long that maintenance period will last. Check the supported list on the releases page for the line your Security Servers run, because a design built on an unsupported 7.x version forces an upgrade before the timestamping work can go live. Confirm the final support window with NIIS.

Current 7.x release
7.8.3
X-Road releases page

Status of the 8.0.0 beta

X-Road 8 Spaceship is available for testing as 8.0.0 Beta 2, and its production release is scheduled for the month shown here. That month is close, so confirm whether the production build has shipped, moved or changed scope before you plan around it. Treat the beta as a test target only, and run your timestamping tests against the same design you would deploy on the 7.x line. Check the repository and the releases page for the current status.

Scheduled production release
December 2026
X-Road GitHub repository

Latency under load and network path

Synchronous timestamping adds a round trip to the timestamp authority for each exchange, so the delay depends on the network path between your Security Server and the authority, the load on the authority and your peak message rate. Measure the full round trip from your production network segment at peak load, including firewall inspection, proxies and any shared egress gateway. Record the tail latency alongside the average, because the slowest responses decide whether a service meets its timing needs. Your own load testing is the only reliable source for these figures.

Legal acceptance of the evidence model

Whether a timestamp taken per message or per batch carries the weight your disputes need is a legal question, and the answer depends on the jurisdiction, the contract and the sector rules that apply to your service. Ask your legal advisers to review the evidence model in writing, including how a batch token links back to each message, how the batch is closed and what a counterparty would need to verify it. Keep the outcome in the design record, and ask them to re-check it when the timestamping provider or the X-Road release changes.

X-Road timestamping setup effort, cost and what you need to provide

What drives the cost of X-Road timestamping setup?

The main cost drivers are the number of Security Servers that need timestamping configured, constraints from the wider ecosystem your instance joins, how deep testing goes, whether hardware security modules are part of the design, and how much legal review the chosen mode needs. Each one adds configuration, verification and coordination work. DeployOpen's fee follows from the written scope, while your internal staff time, infrastructure and any HSM hardware are costs you carry separately. HSMs are supported through PKCS#11 drivers using the xroad-addon-hwtokens package, so driver installation and key handling add effort. Setup is mostly one-time work, while operating the timestamping service recurs with your team or a retainer. Ask any quote to itemize work per Security Server, testing, HSM integration and legal review.

Can our own team set up X-Road timestamping without a partner?

Yes, a team can configure timestamping alone if it has the skills and a safe environment to work in. The skills that matter are Linux administration, PostgreSQL, TLS and certificate handling, and Security Server administration. The X-Road Security Server installation guide covers the installation steps, and a test environment lets you rehearse each change before production. Work through the configuration in order, record every setting, and run full test exchanges and verification before you touch a live Security Server. Bring in outside help where the team lacks these skills, where an HSM is involved, or where a legal decision needs specialist support. Confirm the procedure against the documentation for your release before you start.

How long does X-Road timestamping setup take?

The duration depends on the written scope, which DeployOpen agrees with you before work starts, so no timeline should be assumed until that scope exists. The items that move the schedule are the number of Security Servers, whether hardware security modules need driver work, how deep the agreed testing goes, and how quickly your team can review legal decisions and approve change windows. Some of these steps are waiting time for approvals, so they are easy to underestimate. Ask for the scope to list each milestone, the dependencies it assumes on your side, and the approvals it expects, so you can see which parts of the plan depend on your decisions.

What do we need to provide for a timestamping engagement?

Most of what the work needs comes from your side. Confirm these items in the written scope before work starts:

  • Access to the Security Servers, their hosts and the PostgreSQL databases they use, with administrative accounts for the roles the work requires.
  • Test data and a test environment where exchanges can be replayed before any production change.
  • A legal decision on which timestamp mode the service's evidence context requires, recorded by your legal or compliance lead.
  • Approved change windows for each Security Server, including any restart or configuration step that affects live traffic.
  • A named owner for ecosystem questions and for sign-off at each milestone.
Can we change the X-Road timestamping mode after setup?

The mode can be changed after setup, but it is a controlled change that needs its own scope, testing and change window. Confirm the exact procedure for your release, which is one of the supported versions 7.8.3, 7.7.4 or 7.6.5, before you commit to a design. Record the date of the change and the mode in force before and after it, because the evidence for messages exchanged in each period may need to be explained to an auditor or in a dispute. Review the new mode with your legal or compliance lead, then retest exchanges and verification. A change that is poorly documented can leave gaps in the record, so plan it with the same care as the original setup.

Does DeployOpen issue audit reports for timestamping setups?

No. DeployOpen does not issue audit reports, attestations or certifications. DeployOpen prepares systems, controls and evidence for compliance assessments, such as configuration records, test results and the documentation your auditor asks for. Independent auditors and certification bodies issue the assessment outcome. Before setup begins, ask your auditor which evidence they expect for the timestamping design, so test records and configuration exports are collected in that form from the start. This matters most where timestamps support disputes or regulatory reviews, because the assessor needs to trace how each setting was chosen. Keep those records with change tickets, the legal decision and test results so the audit trail is complete.

How DeployOpen scopes and delivers X-Road timestamping work

DeployOpen starts with the legal and operational question behind Synchronous or asynchronous timestamping in X-Road: which messages need a timestamp at the moment of exchange, and which can tolerate a batch. We write that decision down with your legal, security and operations teams before any configuration changes, then deliver the configuration, tests and runbook inside your own infrastructure. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • The written scope names which services, subsystems or message flows need per-message timestamps and which accept batch timestamping.
  • Scope records the legal context, evidence requirements and retention expectations agreed with your legal owners.
  • Fixed-scope engagements list deliverables and timelines in writing, and ongoing support is available as a retainer.

How we build

  • Configure timestamping for the chosen mode on the servers in scope, then test each message flow against the agreed scope.
  • Test behavior when the timestamping authority is unreachable, and measure the latency each mode adds to exchanges.
  • Build in your own infrastructure on platforms confirmed against the Security Server installation guide.

How we hand over

  • Written documentation covers the chosen mode, its failure behavior, batch limits and the reasons behind each decision.
  • A runbook describes monitoring, alerting and the steps to follow when a timestamping service is unavailable.
  • Test evidence and configuration records are delivered so your compliance team or auditor can review the setup.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers once the build is live.
  • Retesting after X-Road upgrades confirms the timestamping behavior still matches the written scope.
  • Changes to legal context, batch volume or the timestamping provider go back through scope before configuration changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.