Proving Decidim results were not tampered with

Decidim records versions and activity, but tamper evidence has to be designed around it. This page explains what the platform gives you, what you must add, and what evidence auditors will expect.

On this page

How to prove Decidim results were not tampered with

Proving that proposals, votes and published results were not altered after the fact comes down to three things: a tamper-evident record of what was published, version history that shows who changed what and when, and database access controls that stop silent edits in the first place. Decidim does not give you a cryptographic seal on results by default, so the evidence you can show an auditor depends on how you configure logging, retain database snapshots and restrict who can write to PostgreSQL. A public body that must answer to an external reviewer should treat this as a design decision made before launch, not a reconstruction after a dispute.

The requirements this touches are mainly the audit and integrity families in NIST SP 800-53 Rev. 5, which cover audit record generation, protection of audit information, and integrity of system and information. If the platform ever stores criminal justice information, the FBI CJIS Security Policy adds expectations for FIPS-validated cryptography and at least monthly vulnerability scanning, but those apply only in that specific context. Ask your compliance lead which catalog or baseline actually governs your system before you scope any work, because a general public participation site rarely falls under CJIS.

Decidim covers the application layer only. It does not provide independent notarization of results, an external timestamp authority, or immutable storage for the database. Those controls belong to your hosting, backup and logging architecture, and they must be confirmed with your own environment and vendors. DeployOpen plans, configures and documents these controls in infrastructure you control, and prepares the evidence an auditor will ask for. It does not issue audit reports, attestations or certifications; independent auditors and certification bodies make those determinations.

Mapping integrity and audit requirements to Decidim capabilities

This table maps integrity and audit expectations from the NIST SP 800-53 Rev. 5 catalog, the SP 800-53B baselines and the CJIS Security Policy to what Decidim documents, the configuration your team must own and the gap that remains. Read each row as a question to answer with your auditor, since Decidim's documentation does not claim a control mapping for these IDs. The main takeaway is that the platform supplies the update and version discipline, while the database controls and evidence trail are your responsibility.

RequirementWhat Decidim documentsConfiguration you ownGap to confirm
NIST SP 800-53 Rev. 5 baseline selection (SP 800-53B low, moderate, high)Decidim documents its supported minor versions and security patch process, but does not publish a mapping to SP 800-53B baselines.Choose the baseline with your authorizing official, then record which controls apply to the Decidim database and application tiers.Confirm with the vendor and your assessor whether any Decidim documentation can serve as inherited evidence for specific controls.
Vulnerability scanning at least monthly (RA-5)Decidim publishes security reporting routes (security@decidim.org or GitHub Security Advisories) and a patch grace period of 2 months for standard and 4 months for critical vulnerabilities.Run scans against the deployed Rails and PostgreSQL hosts on a monthly schedule and track findings against the Decidim release notes.The disclosure grace period is not a scanning cadence. Confirm your scanning tool, scope and remediation targets with your assessor.
Supported versions and timely patching (flaw remediation)Only the last two minor versions (currently 0.32.x and 0.31.x) receive security updates until version 1.0. Versions 0.30.x and earlier are unsupported.Keep a documented upgrade calendar, record the installed version of each environment and retire any instance that falls outside the supported branches.Decidim does not state how quickly your team must apply patches to meet your own policy. Set that internally and confirm it with your auditor.
Protection of stored and transmitted CJI (FIPS 140-3 modules or AES-256, SC-13 and SC-28)Decidim documents PostgreSQL 17.4 or later for the manual install guide, but does not describe encryption modules or key lengths for database storage.Enable TLS for all connections, select the database encryption approach (volume, file or column level) and document the FIPS-validated module in use.Only applies if the platform processes CJI. Confirm the exact module certificate and key length requirements with the CJIS Security Policy and your state agency.
Database access control and least privilege (AC family)Decidim's manual install guide defines a PostgreSQL database for the application. It does not publish a role model for direct database access.Create separate roles for the application, migrations and read-only reporting. Restrict direct superuser access and log administrative sessions.Decidim cannot prevent a database administrator from editing rows directly. Confirm how your team will detect out-of-band changes.
Backup and recoverability before change (CP family)The update guide instructs operators to back up the database before each minor version upgrade, because some releases change database structures.Schedule regular PostgreSQL backups, test restores in a separate environment and store copies outside the production host.The guide covers backups before upgrades only. Set and test your own recovery objectives and retention.
Change history and tamper evidence for proposals and resultsDecidim's documentation does not describe cryptographic fingerprints or a built-in immutable audit log for proposal and result records.Export periodic hashes of published results and store them outside the platform. Keep upgrade and migration records alongside them.Confirm with the vendor whether any native versioning or audit trail exists for the components you use before relying on it as evidence.
Software and dependency inventory (CM family)Decidim is licensed under AGPL-3.0 and built on Ruby on Rails and PostgreSQL. Specific runtime requirements vary by release (Ruby 3.4.7 for 0.32, Ruby 3.3.4 for 0.31).Maintain a bill of materials for the Ruby, Node, PostgreSQL and any custom modules, and record each change in a change log.Custom modules and third-party gems fall outside Decidim's security support. Assign ownership and a review cycle for each one.

What Decidim records and what it does not prove

An activity log, a stored version and cryptographic evidence answer three different questions, and Decidim's documentation supports only the first two as things you can rely on today. An activity log records that an action happened, such as a proposal being edited or a result being published, and who triggered it. A stored version is a prior copy of the content, kept so that a reviewer can see what the text said at an earlier point. Cryptographic evidence, such as a hash chain or signed digest anchored outside the database, shows that a stored record has not changed since it was sealed. Decidim is not documented as providing the third. Before you tell participants or auditors that a result is tamper-evident, confirm in the source of your exact release, v0.32.x or v0.31.x (the two minor branches that receive security updates), which history features exist, what they capture (fields, component types, admin versus participant edits), and how long the records are kept.

The most important gap is at the database. Application history is written by Rails code paths. A direct SQL update from a database administrator, a restored backup applied over live data, or a migration script run during an upgrade changes the stored row without necessarily creating an activity entry or a new version. The same applies to changes made through a console session that skips the model callbacks. Decide who holds write access to the PostgreSQL instance that backs the platform, whether those sessions are logged at the database level, and how results are exported and hashed at the moment of publication. Treat the database role model and audit logging of privileged sessions as part of the tamper-evidence design, not as a separate infrastructure concern.

Plan the proof as a set of checks you can run and repeat. Record a digest of each published result and the final proposal set when a phase closes, store those digests in a system that the platform administrators cannot edit, and retain the upgrade notes and backup identifiers that show how the data reached its current state. Ask your implementation partner or Decidim's own maintainers to confirm the exact behavior of your release, and document the answer in writing, because an auditor will ask how the evidence was generated, not only whether it exists.

Evidence auditors will ask for and how to keep it

Auditors and participants rarely ask whether a result is untampered in the abstract. They ask for records that show what changed, when, by whom and under which software version. The cards below cover the records worth keeping and the custody rules that stop them from being altered alongside the data they describe.

Database backups before each upgrade

Take a database backup before every Decidim upgrade, because the update guide says to back up the database first and some minor releases change database structures. Keep a dated copy that can be restored, and record the backup identifier, checksum and the release it preceded. An auditor can then compare the pre-upgrade state with the post-upgrade state. Confirm that a restore has been tested, not only that the backup file exists.

Decidim update guide

Release and upgrade change records

Keep a written record for each step: the source and target minor version, the upgrade instructions followed, custom code changes merged, and who approved the step. Decidim asks for one minor version at a time, so each step should have its own entry. This record explains why the platform's behavior changed at a given date, which is often the first question when a published result looks different from an earlier export.

Decidim releases

Runtime version pinning records

Record the Ruby, Node and PostgreSQL versions running in each environment for every release. Decidim v0.32 requires Ruby 3.4.7 and Node 22.14.x, while v0.31 uses Ruby 3.3.4 and Node 22.14.x. Store these pins in version control next to the deployment configuration, and keep the history. A mismatch between the pinned runtime and the release in production is a finding an auditor can raise.

Manual installation guide

Access and admin role logs

Export application and web server access logs and the admin panel's record of role assignments and changes to them. The key question is who could edit proposals, results or user records, and whether those rights were granted and removed through a documented process. Review role lists on a fixed schedule and keep each review signed. Confirm which events your deployment logs and how long they remain available before you rely on them.

Periodic hash records of exported results

When results are published or exported, compute a SHA-256 checksum of each file and record the file name, time and the person who generated it. Store the checksum list outside the Decidim database and outside the application server, for example in a write-once object store or a separate system with its own access controls. Later, anyone can recompute the hashes to show that the published file matches the record. A hash only proves integrity from the moment it was taken.

Separate custody with retention and access

Keep all of the above in a store that the platform administrators cannot silently rewrite. Give read access to auditors and the compliance team, restrict write access to a small named group, and set a retention period in your published policy for each record type. Test the custody arrangement by asking whether a database administrator could alter both a result and its checksum without leaving a trace. Your legal or compliance team should set the retention periods.

Fingerprinting approaches for published results

When a result is published, the simplest fingerprint is a cryptographic hash, such as SHA-256, computed over the exact export file (for example a CSV of votes or a PDF of the final report). Anyone who later receives a copy can recompute the hash and compare it with the published value. This works well for transparency to participants because the check needs only a hash tool and a copy of the file, and it can be described in plain language on the results page. The hash proves that a file matches what was published at a given moment. It does not prove that the underlying data in the database was correct before export, and anyone with write access to the publishing location could replace both the file and the hash unless the hash is kept somewhere else.

  • Scope of the proof: the hash covers one file, so each export, version and attachment needs its own recorded digest.
  • Where the digest lives: a hash stored beside the file on the same Decidim host offers little protection against an insider with write access.
  • Reproducibility: record the export command, the Decidim version and the query parameters so an auditor can regenerate the file and compare.
  • Participant use: publish the digest in the results announcement so participants can check the file they downloaded.

Before relying on this approach, confirm with your auditor whether a hash alone meets their evidence expectations for the result type in question.

Database access controls that still matter

Anyone with direct write access to the Decidim PostgreSQL database can change a proposal, a vote tally or a published result without leaving application history behind. Version history and fingerprints only prove something if the database they sit in is itself protected. Decidim's manual installation guide specifies PostgreSQL 17.4 or later on Ubuntu 24.04.3 LTS, so start by confirming that version in your environment and treating the database host as part of the evidence chain, not just as plumbing.

Split the database roles so the application and people do not share one powerful login. The Rails application should use a role that can read and write the tables it needs and nothing more, with schema changes run by a separate migration role during planned upgrades. Human administrators should work through named accounts, not the application credential, and superuser rights should be granted rarely, time-limited where possible and recorded. Create separate read-only roles for auditors and reviewers so they can verify records without any path to modify them. Confirm with your DBA how these roles map to the tables that hold proposals, votes and results.

Restrict network access so only the application tier can reach PostgreSQL, and only on the port and from the hosts you have documented. Turn on logging for administrative sessions, including connections, role changes and DDL statements, and ship those logs to a store that administrators of the database cannot edit. Review who holds write or superuser access on a fixed schedule and keep the review record. Ask your database team to show these settings in a live environment before an audit, because a tamper-evident application layer is weakened by an open database port or a shared administrator password.

Configuration sequence for tamper evidence

This sequence sets up a Decidim platform so that every published proposal or result has a recorded fingerprint, a restorable history and database controls that limit who can change it. Each step ends with an artifact you can show a participant, auditor or reviewer.

  1. Confirm a supported Decidim minor version

    Your platform team checks which Decidim release line is in use and confirms it is one that still receives security updates. Until version 1.0, the project supports only the last two minor versions, currently 0.32.x and 0.31.x, so 0.30.x and earlier must be upgraded before any tamper-evidence work is meaningful. The output is a recorded version number, the Ruby and Node versions it requires, and a note of the upgrade path if one is needed, one minor version at a time.

  2. Set PostgreSQL roles and network limits

    The database administrator creates separate PostgreSQL roles for the application, for migrations, for read-only reporting and for backup operations, and grants each only the privileges it needs. Database listeners are restricted to the application hosts and the administration network, and direct write access by named human accounts is removed. The check is a documented role matrix and a test showing that a reporting role cannot update proposal or result tables.

  3. Enable backups and test restore

    The operations team configures scheduled database backups before any publication takes place, following the Decidim update guidance to back up the database first. A restore is then performed into a separate environment, and the team compares restored proposal and result records with the source. The evidence is a restore log with the backup timestamp, the restored record counts and a signed note from the person who ran the test.

  4. Define a publication procedure that records digests

    The governance owner writes a short procedure that defines when a proposal, vote summary or result is final, and requires a cryptographic digest, such as a SHA-256 hash, to be computed over the exported content at that moment. A named second person verifies the digest independently. Decidim's own version history covers edits made in the platform, so the procedure should state which events trigger a digest and where each digest is recorded. The output is a dated digest register with one entry per published item.

  5. Separate evidence storage from the platform

    The security team places digests, backup copies and exported result files in a storage location that the Decidim application and its administrators cannot modify, such as write-once object storage or a separate system controlled by the audit function. Access is limited to named auditors and the recovery team. The check is an access list for the evidence store and a test showing that a platform administrator account cannot overwrite or delete an existing digest entry.

  6. Set admin role separation

    The platform owner assigns Decidim administrator, moderator and process-manager roles so that no single account can both edit a published result and approve the digest for it. Administrative actions are reviewed against the role matrix, and privileged accounts are kept few. Evidence is the exported role assignment list and a sample check showing that a result editor cannot also sign the publication record.

  7. Schedule vulnerability scanning and patching

    The security team schedules regular dependency and infrastructure scans against the running Decidim version and records each finding with an owner. Decidim's SECURITY.md describes a grace period of 2 months for standard vulnerabilities and 4 months for critical ones before details are disclosed, so the patch schedule should be set against those windows. The output is a scan report history and a patch log showing when each applied fix was tested in staging and deployed.

What Decidim and this setup do not cover

Hash chains, version history and restricted database access make tampering harder to hide, but they do not settle the question alone. Each gap below names who owns the work, so the evidence pack for participants and auditors reflects what was actually done and by whom.

No audit report or certification from DeployOpen

DeployOpen configures fingerprinting, version history and database controls and prepares the evidence for review, but it does not issue audit reports, attestations or certifications. An independent auditor or certification body makes that judgment. The organization owns the decision to commission an assessment, selects the assessor and decides which claims it will publish about result integrity. Ask any partner, including DeployOpen, to state in writing which artifacts it delivers and which are left for the assessor.

No immutability against privileged operators

Fingerprints and version records show that a stored result differs from what was recorded, but a database administrator with full write access can often alter both the data and the records that describe it. Decidim does not make records immutable against that person. The organization owns the separation of duties, including who holds database superuser rights, where fingerprints are stored and who can change audit tables. Check that copies of the fingerprint values sit outside the database the operator controls.

FIPS validation depends on deployment

Decidim does not establish that the cryptographic modules used for hashing, TLS or key storage are FIPS 140-3 validated. That status depends on the operating system, the Ruby and OpenSSL builds, the database and the hardware in your environment. The organization owns the validation evidence, including the certificate numbers for each module in use. Confirm the exact module versions with your platform team before any assessor asks, because a generic statement that the platform is FIPS compliant is not sufficient.

Monthly scanning and assessment stay in-house

Vulnerability scanning and independent security assessment are not performed by Decidim. Where the target environment follows CJIS Security Policy, the policy requires vulnerability scanning at least monthly, which is a recurring operational task. The organization owns the scan schedule, the findings backlog and the retest record. Decide before go-live who runs the scans, where results are stored and how patches from the Decidim security policy are applied within its disclosure windows.

Scanning cadence
Monthly

AGPL-3.0 does not transfer compliance duties

Decidim is licensed under the AGPL-3.0, which governs how you may use, modify and share the software. It does not make the platform compliant with any law, standard or contract, and it does not move responsibility for records to the project. The organization owns its compliance obligations and any obligations that arise from modifications it distributes or hosts for users over a network. Have counsel review the license terms alongside the records retention and evidence rules that apply to your public body.

Decidim repository

How the application, database and evidence stores fit together

The diagram starts with participants and administrators using the Decidim Rails application, which writes proposals, votes and results to PostgreSQL. Privileged database access sits outside the application boundary, so operators who can change rows are a separate trust zone. Digest records and backups go to a separate evidence location, and auditors get read-only access to that evidence rather than to production. Check that no one path lets a single administrator both change data and rewrite its digests.

Trust boundaries between the application, database operators, backups and auditor evidence access.

Questions buyers ask before proving Decidim integrity

What does it cost to prove Decidim results were not tampered with?

No price is published, and a quote follows from the written scope. The cost is mostly labor: someone designs the fingerprinting and version history approach, implements it against your Decidim database and storage, tests it, and documents how an auditor can re-verify results. Effort rises with the number of components that hold results (proposals, votes, results pages, uploaded files), how mature your existing backups are, whether you have custom code that writes to those tables, and how far the evidence must reach. Ask for the quote to split one-time design and build from any recurring work such as periodic verification runs or retainer support, and to list which components and tables are in scope.

How long does a tamper-evidence project take?

Duration depends on the same drivers as cost: the number of components in scope, the state of your backups and database access model, any custom modules, and how many approvals the publication procedure needs. Engagements are normally fixed-scope, so the timeline is agreed in writing before work starts rather than estimated from a generic figure. Your own schedule also matters, because evidence is only useful once a result is final, and an upgrade or migration in progress can change the tables you are fingerprinting. Ask for the milestones, the review points with your team, and what happens if scope changes during the build.

What do we need to provide before the work starts?

The work needs read access to the Decidim database and its backups, a staging copy that matches production, and access to the file storage that holds attached documents. It also needs named admin owners who can approve changes, and a written decision on the publication procedure: when a proposal or result is locked, who may unlock it, and how corrections are published. Without those decisions, a fingerprint has no agreed meaning. You should also confirm which Decidim version you run, because the update guidance says to upgrade one minor version at a time and to back up the database before each step. Those prerequisites are usually the largest source of delay.

Can our team build this without a partner?

Yes, if you have engineers who know Rails and PostgreSQL, can keep a staging environment, and can write down the publication rules that the evidence will rely on. Many teams start with hash-based fingerprints of exported results and a backup schedule, then add version history where Decidim already records it. The points that most often need outside help are independent verification design, database access separation between admins and the application, and evidence written so that an external auditor can follow it. A partner is useful when those tasks compete with a live election or consultation calendar. DeployOpen implements and documents in infrastructure you control, so the decision is about capacity and skills, not about hosting.

Which parts of the database access controls still matter if we use fingerprints?

Fingerprints only prove something if the person who could change the data cannot also rewrite the fingerprint. Database access controls therefore still matter. Keep application credentials separate from administrative accounts, restrict who can run direct SQL against proposal, vote and result tables, and log those sessions outside the database. Keep fingerprint records in a store that the application database administrators cannot alter, such as an append-only log or a separate system. Confirm your PostgreSQL version and its supported authentication settings with the PostgreSQL documentation for your release, and test that backups can be restored and compared against the recorded fingerprints.

Does DeployOpen certify that our results are tamper-proof?

No. DeployOpen implements, tests and documents the controls and evidence, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies assess whether the controls work as described and whether they meet the standard you are held to. The written scope should say what the evidence package contains, so your auditor knows what to test. Ask any provider, including DeployOpen, to state in writing that the deliverable is evidence for review rather than a certificate, and to name who would perform the independent assessment.

What happens when we upgrade Decidim after the fingerprints are in place?

Upgrades can change database structures, so a fingerprint scheme built on today's tables may need a documented migration step. Decidim's update guidance says to move one minor version at a time, follow each release's upgrade instructions, and back up the database first. Record the old and new fingerprints around each upgrade, and keep the upgrade log as part of the evidence, so that a reviewer can see that changes came from a known, documented process rather than from ad hoc edits. Include the upgrade plan in the written scope when you ask for a quote.

How DeployOpen scopes and delivers integrity evidence for Decidim

DeployOpen plans, implements and documents self-hosted Decidim platforms inside your own infrastructure, so integrity controls for proposals and results are reviewed against your environment. Engagements are fixed-scope, with the evidence, access settings and handover agreed in writing before work starts.

How we scope

  • We agree in writing which proposal and result records need change history, fingerprints or exported evidence.
  • We map the Decidim version, hosting, PostgreSQL access paths and admin roles that touch those records.
  • We confirm with your auditors which evidence format and retention period they expect before build starts.

How we build

  • We configure version history and export routines for the records in scope, then test that edits and deletions appear in them.
  • We set up database role separation and access logging so direct changes to results tables are restricted and recorded.
  • We document how fingerprints are generated, stored and checked, and test a sample of records against the stored values.

How we hand over

  • You receive a written runbook covering verification steps, evidence locations and who may run each check.
  • You receive test results showing tampering attempts were detected or blocked, with any gaps listed for your decision.
  • We walk your security, compliance and election or results owners through the evidence so they can reproduce the checks.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, including checks after each Decidim upgrade.
  • We retest the integrity controls whenever the Decidim version, database configuration or admin roles change.
  • Security reports for Decidim go through the project's own disclosure process, and we help you apply patches within its grace periods.

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.