MISP on PostgreSQL

MISP 2.5.47 added PostgreSQL support for new installs. This page explains how to choose between PostgreSQL and MySQL or MariaDB, what a PostgreSQL-backed MISP instance needs, and what to confirm before you build.

On this page

What MISP PostgreSQL support means for a new install

If you are planning a new MISP deployment, you now have a database choice to make. MISP 2.5.47, released on 17 September 2026, introduced a new database migration system with PostgreSQL support, so the database decision is open at install time in a way it was not before. The choice matters most for new instances, because the supplied project information does not describe moving an existing MySQL or MariaDB instance onto PostgreSQL. Treat your existing database as the default for any current instance and plan the database decision as part of the build, not as a later switch.

The MISP database holds the structured core of the platform: events, attributes, objects, tags, organisations, users, roles, sharing groups, sync server settings and the audit and sighting records that accumulate over time. Redis sits beside it and handles caching and background job coordination, so it is not a substitute for the database and stays in the stack either way. Ask the implementation team to confirm which database engine the installer, Docker images and Ansible roles configure for a fresh install on the version you plan to run, since install paths differ by packaging option.

Consider PostgreSQL for a new instance when your organisation already runs and supports PostgreSQL with mature backup, restore, monitoring and upgrade practices, and when your standards favour one database engine across services. If your team has no PostgreSQL operating experience, the MySQL or MariaDB path that most existing documentation and community knowledge covers may lower operational risk on day one. Confirm the supported database versions and any known limits for your MISP release with the project before you commit, and test backup and restore on whichever engine you choose.

Choosing between MySQL, MariaDB and PostgreSQL for a new instance

This table compares the database choices for a new MISP deployment against the factors that usually decide it. Read each row as a question to answer for your team before installation, and treat the main takeaway as follows: an existing MySQL or MariaDB skill set and supported tooling often outweigh the newer PostgreSQL option unless your team has a clear reason to standardize on PostgreSQL.

Decision factorMySQL or MariaDBPostgreSQL
Existing database skillsChoose this if your operators already run MySQL or MariaDB in production and can troubleshoot it under incident pressure.Choose this if your team already runs PostgreSQL well and would otherwise learn a second engine just for MISP.
Supported MISP version lineMISP 2.5 is the recommended line for new deployments, and the established database path has the longest history in MISP. Confirm the database requirements for the exact 2.5 release you plan to deploy.PostgreSQL support arrived in MISP 2.5.47. Confirm that the release you select, and any later 2.5 release such as 2.5.50, meets your requirements, and check the project's notes for known gaps before committing.
Installer and packaging supportConfirm that the MISP installer, Docker images, Ansible roles, Puppet and RPM packages you intend to use configure this database for your target operating system.Confirm that the installer and each packaging option you plan to use configure PostgreSQL, since support may differ from the database path used by default.
Backup and replication toolingReuse existing dump, binlog and replica tooling if your operations team already runs it for other services and can extend it to MISP.Plan around PostgreSQL's own backup and recovery tooling, including point-in-time recovery, and confirm your backup product supports it before go-live.
Failover approachConfirm the replication and failover product your organization already standardizes on, and test it against a MISP instance rather than assuming it works.PostgreSQL supports hot standby and synchronous or asynchronous replication, but it does not detect primary failure on its own, so you must select and test external failover tooling.
Upgrade planningPlan MISP and database version changes together with your existing change process, and confirm the upgrade path your MISP release requires.Plan both the MISP upgrade and any PostgreSQL major upgrade, which the PostgreSQL documentation describes through dump and restore, pg_upgrade or logical replication.
Existing instance migrationIf you already run MySQL or MariaDB, keep that database for the existing instance. Existing instances are not migrated to PostgreSQL by this feature.Use PostgreSQL for new installs only unless your project plan includes a separate, tested rebuild. Ask the MISP project and your own team to confirm the supported path before planning any move.

Why existing MySQL or MariaDB instances are not migrated

The PostgreSQL support added in MISP 2.5.47 applies to new installations. It does not convert an existing MySQL or MariaDB MISP instance to PostgreSQL, so a team running one should plan around its current database rather than assume a switch is available. Until the project documents a path for moving an existing instance, the database engine you installed is the one you will keep operating, patching and backing up.

Before you change anything, confirm three things with the MISP project. First, read the release notes for the new database migration system in the MISP releases page, paying attention to what the migration system covers and what it explicitly leaves out. Second, read the upgrade guidance for the 2.5 line on the MISP download page, since that is where the supported install paths and upgrade script for your current version are described. Third, check whether the project documents any data export, import or rebuild route between database engines. If it does not, treat a move as a new deployment with a separate data project, not an upgrade.

If your instance runs on MySQL or MariaDB today, record that as a fixed constraint in your planning. Keep your current backups tested and your version on a supported line, and ask your MISP provider or internal team to document how a rebuild would carry over events, users, sharing groups and synchronization settings. Any decision to build a second instance on PostgreSQL should be scoped and approved as its own project, with a written plan for running both systems in parallel during the transition.

How the MISP, Redis and PostgreSQL parts connect

The diagram starts with analysts and API clients reaching the MISP web application through a reverse proxy in the user network. The application tier holds the web application, background workers, misp-modules and Redis, and it reaches the database tier only through a connection pooler. Check that the pooler is the only path into the primary, that an optional hot standby receives replication from the primary, and that backups or WAL archives leave the database tier on a schedule you have tested.

Request, cache and database paths for a PostgreSQL-backed MISP instance across three trust zones.

Setting up MISP on PostgreSQL step by step

This sequence takes a new MISP instance from version and platform checks to a verified PostgreSQL-backed deployment, with a recorded baseline the change board can review. It applies only to new installs, because existing MySQL or MariaDB instances are not migrated to PostgreSQL.

  1. Confirm the MISP version and operating system

    The platform engineering lead confirms that the release to be installed is MISP 2.5.47 or later, since that is the release that added PostgreSQL support. Check the project's download page for the operating system the project supports, which currently includes Ubuntu 24.04 for the provided installer, and confirm the release on the MISP download page. Record the exact version string and the host operating system version. Done means you have a written decision on the release and platform, with no open questions about supported paths.

  2. Prepare the PostgreSQL server on a supported major version

    The database administrator provisions a PostgreSQL server on a major version that is still in community support on the day of installation. Review the PostgreSQL versioning policy for end-of-life dates. PostgreSQL 14 reaches end of support in November 2026, so prefer a newer major version for a deployment meant to run for several years. Apply the latest minor release for that major version. Done means the server starts, accepts local connections, and reports the expected major and minor version.

  3. Create a dedicated role with SCRAM authentication

    The database administrator creates a dedicated database and a login role used only by MISP, with no superuser rights and no ownership of other databases. Set the password encryption method to SCRAM-SHA-256 before creating the role, and confirm that the host-based authentication rules allow only that role, from the MISP host, using scram-sha-256. Avoid MD5 password authentication, which PostgreSQL 18 has deprecated in favor of SCRAM. Done means a test login from the MISP host succeeds with SCRAM, and a login attempt with the wrong password or from another host is refused.

  4. Install MISP with the chosen method

    The platform engineer installs MISP using one of the methods the project lists, such as the provided installer, Docker images, Ansible roles, Puppet or RPM packages. Point the installation at the PostgreSQL server and the dedicated role, and confirm the exact configuration keys in the installation documentation for the release you chose, because they are not covered here. Keep the Redis service and the supporting services on the same plan as the rest of the deployment. Done means all MISP services start cleanly and the web interface loads over HTTPS from an authorized network.

  5. Run the migrations and confirm the schema

    The platform engineer runs the database migrations that ship with the release, which use the migration system introduced in MISP 2.5.47. Read the migration output and keep the full log, because a failed migration is the most common cause of a stalled first start. Afterwards, confirm in PostgreSQL that the expected tables exist and that the MISP application reports a healthy database connection on its status page. Done means the migrations finish without errors, the schema is present, and a repeat run reports nothing left to apply.

  6. Verify with a test sync and an API call

    The MISP administrator creates an API key for a non-administrative test user and runs a restSearch request against a test event, then creates a test event with one attribute and confirms it is stored and returned correctly. Next, configure a sync connection to a test partner instance, or to a lab instance you control, and confirm that the event is pushed and received under the expected distribution level. Done means the API returns the expected results, the test event survives a page reload and a background job cycle, and the sync log shows a successful exchange.

  7. Record the baseline for the change board

    The project lead writes a short baseline record covering the MISP version, operating system, PostgreSQL major and minor versions, installation method, database role name without its password, network paths between MISP and the database, authentication settings, migration log reference and the results of the test sync and API call. Store passwords and keys in your secrets system, not in the record. Include the planned date for the next PostgreSQL minor update and the owner of the MISP upgrade plan. Done means the change board has a signed-off record it can compare against future changes.

How replication and failover shape the database design

The PostgreSQL tier behind a MISP instance needs decisions on read scaling, commit durability, connection handling and failover before installation starts. Each choice trades off against the others, and PostgreSQL leaves the failover mechanism to you.

Hot standby for read-only queries

A hot standby replays changes from the primary and can serve read-only queries while it waits to take over. For MISP, check whether any read-heavy workload, such as reporting or API search jobs, can be pointed at a standby without affecting correctness. Confirm with your MISP team which application paths use read-only connections, since the MISP application must be configured to send them there. A standby that is never queried still counts as failover capacity, so plan its capacity for promotion, not only for reads.

HA docs

Synchronous versus asynchronous replication

With synchronous replication, a commit waits until at least one standby confirms it, so a primary failure should not lose acknowledged MISP events. The cost is added commit latency on every write, and a slow or unreachable standby can stall writes. With asynchronous replication, commits return sooner, but recent transactions may be lost if the primary fails before they reach the standby. Decide the acceptable loss window for event and sighting data with the data owners before choosing the mode.

Failover tooling is your responsibility

PostgreSQL does not detect a failed primary or notify a standby to take over. You must choose an external failover tool, configure its fencing so the old primary cannot accept writes, and define who approves a promotion. Test the full path, including client reconnection to the new primary and the MISP application's behavior during the switch. Ask your vendor or operator which tool they support and how they test it, rather than assuming the MISP installer provides it.

Failover docs

Connection pooling with PgBouncer

Each MISP worker and web process opens database connections, and a failover or pool exhaustion can surface as application errors. PgBouncer sits between MISP and PostgreSQL to limit and reuse connections, and it gives you one endpoint to repoint during a switchover. Check which pooling mode is compatible with the MISP release you deploy, because session-level features in the application can conflict with transaction pooling. Load test with realistic background job concurrency before go-live.

PgBouncer site

Backups and point-in-time recovery

Replication copies damage as well as data, so a dropped table or bad bulk import reaches the standby within moments. Pair replication with continuous archiving so you can restore to a point before the error. Verify restores on a separate host and measure how long a restore takes for the size of your MISP database. Record the recovery point and time objectives agreed with your data owners and check them during each test.

Archiving docs

Choosing a PostgreSQL major version that will outlast the install

Pick the PostgreSQL major version by its support end date, not by its release date. PostgreSQL ships a new major version about once a year and supports each one for five years after its initial release. Of the versions currently supported, 14 reaches end of support on November 12, 2026, 15 on November 11, 2027, 16 on November 9, 2028, 17 on November 8, 2029 and 18 on November 14, 2030. For a MISP database that will run for several years, version 18 or 17 gives the longest runway before a forced upgrade. Version 14 is the wrong choice for a new install because it leaves the database unsupported within months. Confirm the current support table on the PostgreSQL versioning policy page on the day you order hardware or images, because the dates above are the ones this page relies on.

Minor releases and major upgrades follow different procedures, and you should plan for both. A minor release never changes the internal storage format, so you apply it by replacing the executables and restarting the server. Major upgrades need one of three approaches: a dump and restore with pg_dumpall, pg_upgrade, or logical replication from the old cluster to the new one. Logical replication works across major versions and, according to the PostgreSQL upgrading documentation, can complete a major upgrade with only several seconds of downtime. That short cutover is the main reason to choose it for a MISP database that must stay available to sync partners. The trade-off is that you must set up and verify replication, which takes more engineering effort than a dump and restore, so ask your team or partner to estimate that work for your own environment.

Before go-live, write down the upgrade path for PostgreSQL and for MISP as one plan. MISP releases carry their own database migrations, so a PostgreSQL major upgrade should be tested against the MISP version you will run at that time, not only against the database. Record which PostgreSQL version you chose, the date its support ends, who owns the upgrade, which method you will use, and where the rehearsal will run. Confirm with the MISP project and your own change process whether any MISP release requires a specific PostgreSQL version. Then schedule the first rehearsal well before the support end date so the upgrade is routine rather than urgent.

Security controls for a PostgreSQL-backed MISP database

Which password authentication method should a MISP PostgreSQL database use?

Use SCRAM-SHA-256 for password authentication and avoid the MD5 method, which PostgreSQL 18 deprecated in favor of SCRAM. Set password_encryption to scram-sha-256 so new role passwords are stored in the stronger format, then set the pg_hba.conf entries for the MISP database user to scram-sha-256. Existing roles keep their old password hashes until someone resets those passwords, so check each role after the rollout. Ask the MISP team to confirm that the PHP database driver on the application tier supports SCRAM before you lock the entries down.

Can PostgreSQL use certificate or Kerberos authentication for MISP?

Yes, PostgreSQL documents certificate authentication and GSSAPI as client authentication methods, along with SSPI, LDAP, RADIUS, PAM and OAuth. Certificate authentication suits a fixed application server that can hold a client certificate, and GSSAPI suits environments already running Kerberos. Each option adds key distribution and renewal work, so use it where your directory and certificate processes already exist. Confirm that the MISP application stack and its database driver support the method you pick, because the method only helps if the client side can use it.

How do you restrict which hosts can reach the MISP database?

Limit the listen address and the pg_hba.conf rules so that only the MISP application tier can open database connections. Write host-based rules that name the application servers by address range, place a default reject rule at the end, and keep administrative access on a separate management network. Firewall rules at the network layer should match these rules, so a misconfigured host entry does not expose the port. Review the rules after every change to the application tier, because a new worker or sync host often gets added without anyone updating the database.

How should TLS be configured for MISP database connections?

Enable TLS on the PostgreSQL server with the ssl setting and a server certificate, then require it for remote connections in pg_hba.conf by using the hostssl record type. The MISP application should connect with an SSL mode that verifies the server certificate, not just encrypts the session, so set the client to verify the CA and host name where its driver allows. Plan certificate renewal and the trust chain before go-live, since an expired certificate stops every MISP connection at once. Confirm the exact SSL parameters with the MISP deployment documentation and your PHP driver version.

What least-privilege database roles does MISP need?

Create separate roles for the application, for schema changes and for administrators, and grant each only what it needs. The application role should hold the data privileges it uses day to day, while a separate owner role handles schema changes during upgrades. Human administrators should log in with their own named roles rather than sharing a superuser account, and the superuser role should stay unused by the application. Test each role against a MISP upgrade in a staging environment, because the migration tooling needs schema rights that the day-to-day role should not keep.

How do you protect PostgreSQL backups and enable point-in-time recovery?

Encrypt backups before they leave the database host, store copies in a separate location with its own access controls, and test restores on a schedule. For point-in-time recovery, PostgreSQL's continuous archiving keeps a base backup plus a stream of write-ahead log files, so you can restore to a chosen moment, such as just before a bad import or an accidental deletion. Protect the archive location with the same controls as the live data, because it holds the same intelligence. Ask the team that operates the database to show a timed restore, since an untested archive does not prove recovery.

What authentication and administrative activity should PostgreSQL log?

PostgreSQL logs connection attempts, authentication results and administrative statements through its server logging settings, which you can direct to a central log system. Record failed and successful logins, role changes, schema changes and changes to the server configuration, and keep the log retention period agreed with your security team. Protect the log files from modification, since they are evidence after an incident. Check the logging settings against the PostgreSQL documentation for your major version, because the parameters and their levels differ and you need to confirm exactly what each one captures.

Limits to confirm in your environment before you commit

PostgreSQL support in MISP is new enough that several answers depend on the exact release you deploy. The cards below list the questions to put to the MISP project and to check in your own environment before you choose PostgreSQL for a production instance.

Feature and plugin coverage

Ask which MISP features, modules and plugins are tested against PostgreSQL in the release you plan to run. Core event storage may be covered while a specific plugin, feed workflow or correlation path is not. Build a list of the features your team actually uses, including authentication plugins, streaming and workflows, and test each one on a staging instance before cutover.

MISP releases

Installer and packaging support

Confirm whether the packaged installer, Docker images, Ansible roles, Puppet modules and RPM packages all offer the PostgreSQL option in your chosen version. Support may differ by channel, so a Docker deployment and an Ubuntu installer may not behave the same. Ask the project which path it recommends for your operating system.

MISP download page

Upgrade script behavior

Ask how the upgrade path handles existing data. MySQL or MariaDB instances are not migrated to PostgreSQL by the new migration system, so you need to know whether the upgrade script changes the database engine, what it leaves untouched, and how rollback works. Test the process on a copy of production data and record the steps and results.

Performance and query behavior

Correlation, sync and search load on MISP depends on how the database handles large event and attribute tables. Ask the project and your own test team whether PostgreSQL has been benchmarked against your expected event volume and whether indexes, query plans and cache behavior differ from MySQL or MariaDB. Measure correlation and restSearch latency on your data before committing.

Operational tooling and runbooks

Check whether your backup, monitoring, maintenance and CLI routines still work with PostgreSQL. Existing runbooks written for MySQL or MariaDB may use different commands, dump formats and replication tooling. Confirm which MISP maintenance commands and troubleshooting steps the project documents for PostgreSQL, and update your own runbooks before go-live.

Database platform support window

Confirm which PostgreSQL major version your MISP release supports and when your chosen version reaches end of life. Versions 14 through 18 are listed as supported, with 14 ending in November 2026. Pick a version that will outlive your planned MISP upgrade cycle, and set a date to plan the database upgrade.

PostgreSQL versioning policy

Questions teams ask before choosing PostgreSQL for MISP

Can an existing MySQL or MariaDB MISP instance be moved to PostgreSQL?

No, existing MySQL or MariaDB instances are not migrated to PostgreSQL by the PostgreSQL support added in MISP 2.5.47. That release introduced a new database migration system with PostgreSQL support, which applies to new installs. An instance already running on MySQL or MariaDB should stay on that database unless a separate, planned project moves its data. Any such project needs a written scope covering schema differences, data validation, sync partners, API clients and a rollback path. Confirm the current position in the MISP release notes before planning, since the project's guidance can change between releases.

Which database should a new MISP deployment use?

Choose the database by what your team can run and support over the life of the instance. MISP 2.5 is the recommended line for new deployments, and MySQL or MariaDB remains the database the platform is built around, with Redis alongside it. PostgreSQL support arrived in MISP 2.5.47, released on 17 September 2026, so teams with PostgreSQL operations skills may prefer it for new installs. Check the current MISP documentation for feature parity, supported database versions and the installer or Docker path you plan to use before committing.

What drives the cost and effort of a PostgreSQL-backed MISP install?

Cost follows the scope of the work and who performs each part. The main components are platform design, the MISP install itself, database hardening and backup, connection to Redis and any supporting services, SSO and logging, and testing before users depend on the instance. Costs that recur include patching, MISP and PostgreSQL upgrades, backup testing and sync maintenance. Ask any partner for a quote that separates one-time build work from recurring support, names who owns each component, and states what is excluded.

How long does a new PostgreSQL MISP install take?

Duration depends on scope: the number of environments, the authentication and identity integrations, the sync partners, the backup and high availability design, and how much of the work is done by your team. No figure is given here. Ask for a timeline in a written scope that lists each phase, the dependencies on your infrastructure and identity teams, and the review and acceptance steps. A timeline that does not reference those items is not a basis for planning.

What does the work need from our team?

Your team provides the infrastructure, access and decisions that a partner cannot supply alone. Expect to name owners for the hosting environment, DNS and TLS certificates, the identity provider and role mapping, the backup target, and the sharing communities the instance will join. Security and compliance staff should confirm logging, data handling and access requirements early. Your database team should review PostgreSQL configuration, including the planned high availability and point-in-time recovery approach, because PostgreSQL does not provide automatic failover on its own and that tooling must be chosen and operated.

Can our own team install and run MISP on PostgreSQL?

A capable team with Linux, PostgreSQL and PHP-based application experience can install MISP from the project's documentation, and the project lists several installation options. The harder part is the ongoing work: keeping the database supported, testing backups and restores, planning major PostgreSQL upgrades, applying MISP security advisories and maintaining sync. PostgreSQL's versioning policy shows the supported releases and end dates, so an operations calendar is needed from day one. If your team lacks that capacity, a fixed-scope install with a documented handover or a retainer can cover the gap.

How are PostgreSQL versions and upgrades handled after install?

Plan for two kinds of PostgreSQL upgrade. Minor releases do not change the internal storage format, so they replace executables and require a restart. Major upgrades use dump and restore, pg_upgrade or logical replication, and logical replication can keep downtime to several seconds according to the PostgreSQL documentation. Check the supported version table in the PostgreSQL versioning policy when you set the upgrade schedule, and confirm which PostgreSQL versions the MISP release you run supports before choosing one.

How DeployOpen scopes and delivers MISP on PostgreSQL

DeployOpen plans, builds, documents and supports self-hosted MISP inside your own infrastructure, including the database choice that sets how the instance is installed and operated. Engagements are fixed-scope, with the database decision, sizing and handover agreed in writing before work starts.

How we scope

  • Confirm whether the instance is new, since the PostgreSQL option applies to new installs rather than existing MySQL or MariaDB deployments.
  • Record the MISP version to be deployed and the planned upgrade path within the 2.5 line.
  • Agree the database platform, backup approach, replication needs and the team that will operate PostgreSQL after handover.

How we build

  • Install MISP 2.5 with the database choice documented, and confirm the supporting Redis and worker services are configured.
  • Test the database connection, migration run and background jobs against the planned PostgreSQL version and connection pooling design.
  • Verify backup and restore of the MISP database, including a rehearsed point-in-time recovery run, before go-live.

How we hand over

  • Deliver written configuration, database settings, network paths and the installed version record for your operations team.
  • Provide runbooks for routine tasks, minor PostgreSQL updates and planned major upgrades, with the steps your team needs to repeat.
  • Walk through restore tests, monitoring checks and the access model so your staff can run the instance without us.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, scoped separately from the initial build.
  • Plan database upgrades and MISP version moves together, so schema migrations and PostgreSQL version support windows are tracked.
  • Retest after changes to authentication, replication or backup settings, and document the results for your compliance and security reviews.

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.