Protecting Zammad's Elasticsearch index

Zammad's search index holds copies of ticket content and attachment text, so it needs the same protection as the database. This page covers the controls that keep it from becoming the leak.

On this page

Why protecting Zammad's Elasticsearch index matters before go-live

If your helpdesk runs Zammad with Elasticsearch, the search index is a copy of your support data, and it needs the same access review as the database. Zammad uses Elasticsearch for faster search, for reporting features and for searching the content of email attachments. Elasticsearch is optional, but the Zammad documentation strongly recommends it. Once it is enabled, the index holds much more than ticket metadata: it can contain ticket bodies, customer names and addresses, internal notes and text extracted from attachments such as contracts or statements. A team that treats the index as a disposable cache, something that can be rebuilt and forgotten, will leave a second copy of sensitive support data reachable by people and systems that never had access to the helpdesk itself.

Before go-live, ask who can reach the index and by which path. Confirm whether the Elasticsearch port is open beyond the Zammad application hosts, whether the cluster requires authentication, and which accounts exist for reporting or dashboard tools. Confirm whether transport and HTTP traffic is encrypted, and where index snapshots are written and who can restore them. Check the Zammad software requirements for the Elasticsearch versions it supports before you choose a distribution, since the licensing and security features you can use depend on that choice.

This page covers five controls: network isolation, authentication, read-only accounts for reporting tools, TLS, and handling of index snapshots. Each one is a decision you should record and test before users are onboarded. Treat the index review the way you would review a database: document its data classification, owners, retention and backup location, and include it in your access reviews and any penetration test scope. The sections that follow walk through each control in the order most teams should apply them.

Protection options for the search index and when each fits

This table compares the five main controls for the Zammad search index, from network placement to snapshot repositories, and shows when each one fits and what it costs to run. Read each row as a layer: most production setups need several of these together, and the tier column flags where a control may depend on a paid Elastic subscription.

ControlWhen it fits and what it protects againstOperational cost and tier to confirm
Private network placementFits any deployment. Keeps the Elasticsearch port reachable only from Zammad application nodes and admin hosts, so a scan of the internet side cannot reach the index.Low running cost, but needs firewall or security group rules that stay correct when Zammad nodes change IP addresses. Network placement is not a license feature.
Authentication on the clusterFits every production index holding ticket text and attachment content. Stops anonymous reads and writes from other hosts on the same network segment.Requires creating and rotating the credentials Zammad uses. Confirm which realms (native or file) your Elasticsearch version enables in its Basic tier.
Role separation for ZammadFits teams that want the application to hold only the privileges it needs, such as index management for Zammad but not cluster administration. Limits damage if the Zammad credential leaks.Needs a documented role definition and a review when Zammad upgrades change the indices it touches. Confirm role-based access control availability for your tier.
TLS for transportFits any setup where Zammad and Elasticsearch cross a network boundary, a shared hypervisor or a container network. Protects credentials and search queries in transit.Needs certificate issuance, renewal and trust configuration on every client. Confirm TLS availability in your version's Basic tier, since Elastic has offered it free since 2019.
Read-only accounts for Grafana or reporting toolsFits dashboards and reporting tools that query the index. Keeps a dashboard credential from reading or deleting data outside its purpose, and reduces exposure if a dashboard is compromised.Each tool needs its own role and password. Field- or document-level restrictions for sensitive ticket fields may require a paid tier, so confirm before promising them to an assessor.
Restricted snapshot repositoriesFits any organization that takes index snapshots. Snapshots contain ticket content, so restrict who can register repositories and who can restore them, and treat the snapshot store like the database backup.Adds storage, encryption and retention work for the snapshot target. Confirm snapshot and restore permissions in your version's documentation.

How Zammad, the index, reporting tools and snapshots connect

The diagram starts with users reaching Zammad in the application zone, where Zammad and PostgreSQL hold the authoritative ticket data. Zammad writes search documents to Elasticsearch in a restricted data zone over an authenticated, encrypted connection, and only Zammad and approved reporting hosts may reach the index. A Grafana host reads through a read-only account, operators reach the cluster only from an administration network, and snapshots go to a repository in backup storage. Check that each arrow carries authentication and TLS, and that no other path into the index exists.

Trust boundaries and authenticated, encrypted paths into the search index.

Why the search index holds data worth protecting like the database

An Elasticsearch index is a second copy of searchable content. Anyone who can query the index can read ticket text, customer names, email bodies and, where attachment content search is enabled, text extracted from attached files, even if they never log in to Zammad or open a ticket. Zammad uses Elasticsearch for faster search, reporting features and searching email attachment content, and the software requirements describe it as optional but strongly recommended. Optional here means you can run Zammad without it, not that the data is less sensitive once it is indexed. Before you set any control, map which objects, fields and attachment types reach the index in your installation, and confirm with your Zammad administrator which of them are enabled.

This changes the threat model. Zammad's role model decides what an agent sees inside the application, but the index does not apply those rules on its own. A reporting dashboard connected with a broad account, a stale snapshot left on a shared drive, or an Elasticsearch port reachable from a network segment that should never touch the helpdesk can expose content that a customer-facing or limited agent role would never see in the interface. Treat the index, its snapshots and any tool that reads from it as part of the helpdesk's data perimeter, with the same owners, access reviews and retention rules you apply to the PostgreSQL database that holds the authoritative records.

Start with a data map. List the Zammad data categories that feed the index, the users and services that query it, and every place a copy might land, including monitoring exports, backups and developer test environments. Then ask your team to confirm the Elasticsearch version and license edition they plan to run, since security features such as TLS, authentication and role-based access depend on the edition and release line you choose. The decisions that follow in this topic, from network isolation to snapshot handling, depend on that map being accurate.

How to lock down the Elasticsearch index for a production Zammad

This sequence moves the Zammad search index from a default setup to a private, authenticated, encrypted service with read-only reporting access and a protected snapshot repository, and each step ends with a check you can repeat.

  1. Confirm the Elasticsearch release line and support dates

    Before changing anything, record the Elasticsearch version your Zammad deployment is paired with and check it against the Elastic product end-of-life page. Elastic's 9.x core stack line lists end of maintenance on October 15, 2027, and the 8.x line lists January 15, 2027, with 8.x support ending July 15, 2027. Confirm with Zammad's software requirements which Elasticsearch versions your Zammad release supports, since the search version is set by Zammad compatibility, not only by your preference. Done when you have a written version, a support end date, and a plan to upgrade before that date.

  2. Place the cluster on a private network

    Move Elasticsearch onto a network segment reachable only from the Zammad application hosts and the approved reporting hosts. Block its HTTP port (commonly 9200) and transport port (commonly 9300) from user networks, the internet and any segment without a documented need. Confirm the listen address in the node configuration is not bound to a public interface. Check: from a host outside the allowed list, a connection to the HTTP port must fail at the network layer, and from the Zammad host it must succeed.

  3. Enable authentication and create separate accounts

    Turn on Elasticsearch security so every request needs a valid identity, then create distinct accounts for the Zammad application, for administrators and for each reporting tool. Keep the Zammad account out of the admin role and do not share credentials between components, so a leaked reporting credential cannot reconfigure the cluster. Store passwords in your secrets manager and pass them to Zammad through its configuration, not through shared files. Check: an unauthenticated request to the cluster root and to the search endpoint must be refused, and each account must authenticate with its own password only.

  4. Grant reporting accounts read-only roles

    Create roles scoped to the indices reporting tools actually need, and assign them only to reporting accounts. Grant read and search privileges, and withhold index, delete, write, manage and cluster-level privileges. If Zammad dashboards only read ticket data, restrict the role to the relevant index patterns. Check: sign in as the reporting account and attempt a document write and an index deletion against a Zammad index. Both must be denied, while a search against the permitted index must succeed.

  5. Enable TLS between Zammad, the cluster and reporting tools

    Enable transport and HTTP encryption on the cluster, and configure Zammad and each reporting tool to validate the cluster certificate against your internal certificate authority rather than disabling verification. Use the trusted certificate chain your team manages and record where it is installed on each client. Check: a connection over plain HTTP to the encrypted port must be refused, a connection with a certificate that does not match the internal authority must fail verification, and Zammad must still reach the cluster after the change.

  6. Restrict the snapshot repository

    Elasticsearch snapshots contain copies of indexed ticket content, so they need the same access controls as the database backups. Register the snapshot repository only from the cluster administrators' role, limit write access to the backup service account, and keep the storage location in a bucket or path that only the backup tooling and named administrators can reach. Confirm that reporting accounts and the Zammad application account cannot register, modify or delete repositories or snapshots. Check: attempt a snapshot listing and a repository change from each non-admin account and confirm each is refused.

  7. Run a full verification pass and record the results

    Repeat each earlier check together against the final configuration, then confirm Zammad search still works for agents and that index rebuilds and reporting queries behave as before. Save the results with dates, account names (not passwords), and the Elasticsearch version, so the evidence supports your internal review and any later customer security questionnaire. Repeat the verification after each Zammad or Elasticsearch upgrade, since both can change defaults. Done when every check has a recorded pass and the owner has signed off the change.

How the index protection changes by deployment method

With a package installation on a Linux host, Zammad, PostgreSQL, Redis and Elasticsearch are usually separate services on the same server or on hosts you manage directly. The index typically listens on a local or private interface, and firewall rules on the host and network segment decide who can reach it. You own the operating system firewall, the Elasticsearch configuration file, the TLS certificates and the service account that runs the search engine. Zammad's documentation covers installing the application and connecting it to Elasticsearch, so the hardening of the Elasticsearch host itself is a task you plan alongside it.

  • Bind to a private address: Configure Elasticsearch to listen only on the loopback or internal interface that Zammad uses, and confirm with a port scan from another host.
  • Host firewall rules: Allow the HTTP and transport ports only from the Zammad application host and any monitoring host you have approved.
  • Own certificates: Issue certificates from your internal CA for the cluster and store private keys with restricted file permissions.
  • Service account isolation: Run the search service under its own account and keep its data directory off the application's writable paths.
  • Patch ownership: Track Elasticsearch releases separately from Zammad releases, since the two products ship on different schedules.

Before go-live, check that the index answers only from the Zammad host and that an unauthenticated request from elsewhere is refused.

Security risks in the index and the controls that address them

The search index holds copies of ticket content, attachments and customer details, so it inherits the sensitivity of the database even though it is rarely treated that way. The six risks below share one root cause: the index was set up for speed and reporting, then left with network, credential and copy controls that were never reviewed against the data it stores.

Index reachable from the internet or a flat network

If the Elasticsearch HTTP port can be reached from the internet, a guest network or any workstation, anyone who reaches it can query ticket text and attachment content. Zammad only needs the application nodes to talk to the index, so place the cluster on a private segment and allow inbound traffic from the Zammad hosts and named reporting hosts only. Check from outside the segment that the port does not answer, and check the host firewall and any cloud security group separately.

Reporting tools running with administrator credentials

Dashboards and reporting tools often connect with the same credential Zammad uses, which gives a read tool the power to delete or rewrite indices. Create a dedicated read-only user for each reporting tool with access limited to the Zammad indices it needs, and give Zammad its own account. Review the role mapping for each tool, because a credential that can read one index often also reaches others unless the role is scoped.

Unencrypted transport between components

Traffic between Zammad, the index, Kibana or other dashboards, and any proxy can carry ticket content in plain text on the network. Enable TLS on the Elasticsearch HTTP layer and configure every client to verify the server certificate against your internal certificate authority. Confirm that Zammad's search settings point at the HTTPS endpoint, then capture traffic on a test host to check that no requests travel unencrypted.

Snapshots with weaker access control than the database

Index snapshots are full copies of the data, yet they are often written to a shared file share or an object bucket with looser permissions than the PostgreSQL backups. Store snapshots in a repository with the same access restrictions, encryption and retention rules as the database backups, and limit who can restore them. Ask whether anyone can list or download snapshot files, and test a restore to confirm that only the approved operators can perform it.

Stale or unpatched Elasticsearch versions

A search cluster that is installed once and left alone keeps known vulnerabilities after the stack moves on. Confirm which Elasticsearch release line your Zammad version supports, record the installed version, and track the vendor's maintenance dates for that line. Plan patch windows alongside Zammad's own security releases, and test the index upgrade on a staging copy before production, since Zammad and Elasticsearch versions must match what the Zammad documentation lists.

Unmanaged index access from dashboards

Dashboards, scheduled exports and ad hoc query tools create access paths that nobody inventories, so an index can be reached by accounts that were never approved. Keep a list of every tool that connects to the cluster, its owner, its credential and its permitted indices. Remove unused connections, rotate credentials when staff leave, and review the list at each patch cycle so new dashboards do not appear without an owner.

Questions buyers ask about securing Zammad's search index

How much work is hardening the Zammad search index, and what drives it?

The effort depends mostly on network design, the number of reporting tools that read the index, and whether you need single sign-on on the Elasticsearch side. A single Zammad host with one Elasticsearch node on a private segment is a small job. A cluster with separate data and master nodes, several dashboards and reporting tools, and a requirement for SSO through your identity provider takes considerably more planning and testing. Ask any partner to break the quote into network isolation, authentication and role design, TLS, snapshot handling and verification, so you can see which parts scale with your environment. No duration is given here because it depends on your topology, which should be confirmed in your own environment first.

Can our own team secure Elasticsearch for Zammad without a partner?

Yes, a capable team can do much of this internally, provided it has the right skills. The work needs someone comfortable with Linux firewalling and private networking, someone who understands Elasticsearch roles, users and TLS, someone who can run and restore snapshots, and an application owner who knows how Zammad uses the index. Security testing of the finished setup is a separate skill, and many teams prefer an independent check before a customer or auditor review. Before you start, confirm your Elasticsearch version and license tier against the vendor's current documentation, since security features differ by tier.

Is Elasticsearch required to run Zammad?

No, Elasticsearch is optional for Zammad, but it is strongly recommended. Zammad uses it for faster search, reporting features and searching the content of email attachments. Without it, you lose those capabilities or accept slower results, so the decision is about which features your helpdesk needs rather than whether the platform works. If you do run it, the index holds copies of ticket content and attachment text, so it deserves the same access controls as the database. Check the current software requirements in the Zammad documentation before you size the cluster.

Is the Elasticsearch Basic tier enough for TLS and role-based access?

Elastic made TLS, the file and native user realms and role-based access control free in the Basic tier, starting with versions 6.8.0 and 7.1.0 announced on 20 May 2019. Single sign-on, Active Directory and LDAP authentication, and field- or document-level security remain in paid tiers. So Basic can cover encrypted connections and per-role index access, but if you need SAML or OpenID Connect sign-in for Elasticsearch users, or field-level restrictions on sensitive ticket fields, you will need a higher subscription. Elastic's subscriptions page lists current tier features and notes that the Platinum tier is no longer offered to new customers.

How should we handle Elasticsearch snapshots of Zammad data?

Treat snapshots with the same care as the PostgreSQL database, because both contain ticket text, customer details and attachment content. Store snapshot repositories on storage with restricted access, encrypt them at rest, limit who can restore them, and keep retention aligned with your data policy. Test restores on an isolated system, since a snapshot that cannot be restored gives false comfort. Be aware that the index can be rebuilt from the database in many cases, so a snapshot is mainly for speed of recovery, which means its protection should match the source data rather than be treated as disposable.

What do we need to provide before the hardening work starts?

You need to provide an inventory of every tool that reads the search index, including Grafana dashboards, Kibana or other analytics tools, and any scripts or service accounts, along with who owns each one and what fields they use. You also need a network map showing where Zammad, its database, Redis and any reporting hosts sit, and your identity provider details if SSO is in scope. Agree on a maintenance window with your operations team, because changing authentication and network rules can interrupt search and reporting. Finally, confirm which Elasticsearch version and license tier you run, since that determines which controls are available.

Which read-only accounts should reporting tools use against the index?

Each reporting tool should have its own account with read-only privileges limited to the indices it needs, and no access to system or administrative functions. Avoid sharing one administrator credential across dashboards, because a leaked password then exposes everything. For example, an illustrative Grafana data source might be granted read access to one reporting index only, with its credentials stored in a secrets manager and rotated on a schedule you define. Confirm the exact role and privilege names against your Elasticsearch version's security documentation before you apply them.

Limits to confirm in your environment before you rely on these controls

The controls on this page depend on which Zammad release, Elasticsearch release line and license tier you run. Each card below names one fact to check against the vendor documentation and your own test environment before you treat a control as in place.

Zammad's supported Elasticsearch versions

Zammad's software requirements list the Elasticsearch versions each Zammad release supports. Isolation, TLS and authentication settings differ between Elasticsearch releases, so the version you deploy must be on that list for the Zammad release you run. Check the list again before every Zammad upgrade, and confirm that the Zammad release you choose supports the Elasticsearch release line you plan to run. A mismatch can break search and reporting, which pushes teams toward ad hoc workarounds that weaken the controls described on this page.

Zammad requirements

Current Elastic release lines and end dates

Elastic maintains each major release line for a fixed window, and end-of-maintenance and end-of-support dates differ between the 8.x and 9.x lines. A search index on an unsupported line stops receiving security fixes while it still holds ticket content and attachment text. Look up the end-of-life dates for the exact line you run, compare them with your planned upgrade window, and record the owner who will schedule the move to the next line.

Elastic end-of-life dates

Security features in paid tiers

Some controls you may plan to use, such as single sign-on for Kibana-style access, field- or document-level security and anomaly-based alerting, are documented as paid features in Elastic's subscription tiers. Confirm the license level of the cluster you deploy and whether the feature you need is included at that level. If it is not, decide whether to pay for a subscription, restrict access through the network instead, or keep the reporting account away from sensitive fields.

Elastic subscriptions

Whether OpenSearch is in use

If your Zammad deployment runs OpenSearch rather than Elasticsearch, the hardening steps and the vendor documentation you rely on change. OpenSearch is a fork of open source Elasticsearch 7.10 and is wire-compatible with that release, but later releases of the two projects have diverged. Confirm which engine and version your Zammad release supports, and do not assume that an Elastic setting or feature name applies unchanged to OpenSearch.

OpenSearch FAQ

How the release treats the index during upgrades

Zammad upgrades may change how the search index is created, populated or rebuilt, and an index rebuild can temporarily expose more data through new or recreated indices. Read the release notes for the Zammad version you plan to install, note any instruction to rebuild the index, and check that the network rules, user accounts and TLS settings survive the rebuild. Test the full sequence on a staging copy and confirm the results with a scan of the index endpoint afterward.

Zammad releases

How DeployOpen scopes and tests Zammad search index protection

DeployOpen treats the Elasticsearch index behind a self-hosted Zammad as part of the ticket data estate, not as a utility service. We scope the index's network path, authentication, reporting access and snapshot handling in writing, then build and test those controls inside your infrastructure.

How we scope

  • Map every client, node and reporting tool that reaches the Zammad search index today.
  • Agree in writing which index access paths stay, which move behind a private network, and which are removed.
  • Record the Elasticsearch deployment model, license tier and version your team plans to run.
  • Confirm which snapshot repositories, retention periods and restore owners apply to index backups.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • Isolate the index on a private network segment reachable only from the Zammad application hosts.
  • Enable authentication and TLS between Zammad and Elasticsearch, with certificate handling reviewed by your team.
  • Create read-only accounts with narrow index privileges for dashboards and reporting tools, then verify their limits.
  • Test that unauthenticated and cross-network requests to the index fail, and document each result.
  • Apply the same access and encryption controls to snapshot repositories as to the PostgreSQL database backups.

How we hand over

  • Deliver a configuration record covering network rules, accounts, roles, TLS settings and snapshot locations.
  • Provide a runbook for rotating index credentials, adding reporting users and restoring from a snapshot.
  • Document the upgrade and patch steps your team needs to follow for Elasticsearch alongside Zammad releases.
  • Walk your operations and security staff through the evidence, so they can review the controls independently.
  • Note open decisions, such as license-dependent features, for your own review.

How we support

  • Retest the index controls after Zammad or Elasticsearch upgrades, and after reporting tools are added.
  • Retainers can cover ongoing upgrades, continuous testing and changes to access as your team grows.
  • Include the index in any penetration test of the Zammad deployment, so exposure is checked end to end.
  • Prepare the access and encryption evidence your compliance team can share with assessors.
  • Agree support scope and response expectations in writing before the handover closes.

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.