Ga naar hoofdinhoud

Security questionnaire

This page answers the high-level description questionnaire for a security assessment of OpenRegister. Every question is quoted in the order of the questionnaire and followed by our answer. Where the documentation site covers the subject in more depth, a "See also" link points to that page.

Report a vulnerability as described in SECURITY.md, never in a public issue.

General information​

1. Your name​

Your name

Given on the submitted form.

2. Title​

Title

Given on the submitted form.

3. Company​

Company

Conduction B.V.

Sources: appinfo/info.xml <author>

4. System name​

System name

OpenRegister (Nextcloud app id openregister)

Sources: appinfo/info.xml

See also: Introduction

5. Programs that make up the system​

Programs: programming language, programming framework and program type (e.g. Web application back-end, web application front-end, mobile application, desktop application, web service, auxiliary tool, deployment script, other (please specify))

  • Program 1: OpenRegister back end. PHP 8.3 Nextcloud app on the App Framework: REST/JSON, GraphQL and MCP web service, runs inside the Nextcloud web server (lib/, appinfo/).
  • Program 2: OpenRegister front end. Vue 3 single-page application in TypeScript and JavaScript, served by Nextcloud (src/, templates/).
  • Program 3: static browser scripts. Web push client, its service worker and the flow operator (js/).
  • Program 4: background jobs and console commands. PHP, run by Nextcloud cron and occ (lib/BackgroundJob/, lib/Command/).
  • Program 5: database migrations and repair steps. PHP, run on install and upgrade (lib/Migration/, lib/Repair/).
  • Program 6: development, test and release tooling. Shell, Node and Python scripts, not shipped (scripts/, tools/, docker/).

Sources: ARCHITECTURE.md (directory roles)

See also: Service architecture

Technologies​

6. Main programming languages​

Main programming language(s) used

PHP 8.3, TypeScript and JavaScript (Vue 3 single-file components).

Sources: composer.json; package.json

7. Other languages​

Other programming languages

SQL through the Nextcloud QueryBuilder, Twig templates, JSON Schema, and shell and Python for tooling only.

Sources: lib/Db/; composer.json (twig/twig); scripts/

8. Database technology​

Database technology

The Nextcloud database: PostgreSQL 10 or later, MySQL 8.0 or later, MariaDB or SQLite. Optional search indexes in Apache Solr or Elasticsearch.

Sources: appinfo/info.xml <database>

See also: Object storage and lifecycle

9. GUI technology​

GUI technology

Vue 3.5 with Pinia, vue-router, @nextcloud/vue 9 and @conduction/nextcloud-vue, inside the Nextcloud web interface.

Sources: package.json

See also: Frontend architecture

10. Security frameworks and libraries​

Security-specific framework(s)/libraries

  • Nextcloud App Framework security middleware: authentication, CSRF tokens, admin and sub-admin checks, brute-force protection and rate-limit attributes.
  • Nextcloud ICrypto, ICredentialsManager, ISecureRandom, IHasher and the Content Security Policy manager.
  • web-token/jwt-library 4.1 and phpseclib 3 for JWT and RSA signature checks.
  • libsodium (Ed25519) for signing configuration bundles.
  • opis/json-schema 2.3 for input validation, Twig sandbox for user-authored templates.
  • DOMPurify 3.4 for the one place that renders HTML in the front end.

Sources: composer.json; package.json; lib/Service/Consumer/JwtValidator.php; lib/Service/Config/BundleSigner.php; lib/Service/Object/SaveObject/ComputedFieldHandler.php

System and high-level design​

11. Overall functionality​

Please describe the overall functionality of the system

OpenRegister is the data layer of Conduction's Nextcloud apps. Organisations, mostly Dutch municipalities and other public bodies, define registers and JSON Schemas and store objects in them. Their staff work with the data in the browser; other apps and external systems use the API.

Users: staff of the hosting organisation, administrators who configure registers, schemas and access, and external systems with their own credentials. Where an organisation makes data public, anonymous visitors can read it.

Data: what the organisation models, for example cases, contacts, products or publications. That can include personal data such as names, addresses and citizen service numbers (BSN). Files attached to objects, an audit trail of every change and configuration such as connection settings are stored too.

Usage scenarios: create and edit objects, search with facets, import and export, share objects with people or by link, retention and archiving, events and webhooks to other systems, and AI assistants working through MCP within the user's rights.

Sources: appinfo/info.xml; ARCHITECTURE.md; lib/Service/FieldEncryptionHandler.php

See also: OpenRegister feature overview

12. Data flow diagram​

Data Flow Diagram

The diagram shows the users and systems, the processes and data stores, and the trust boundaries.

  • Zone 1, untrusted: browsers, anonymous visitors, API clients and federated instances. They reach the server over HTTPS only.
  • Zone 2, the hosting organisation's Nextcloud server. TLS ends at its web server. Nextcloud authenticates the request before OpenRegister runs. OpenRegister then checks rights, validates input and writes the audit trail. It stores data in the Nextcloud database (SQL with bound parameters), in Nextcloud file storage and in the memory cache.
  • Zone 3, third-party services. OpenRegister calls them over HTTPS, and only when an administrator has configured them: Solr or Elasticsearch, LLM and extraction services, webhook receivers, sync sources, GitHub and OAuth2 providers.

File formats on the flows: JSON for the APIs and webhooks, JSON-RPC for MCP, multipart or base64 for file uploads, CSV, Excel and JSON for import and export.

Sources: ARCHITECTURE.md (system boundary, request flow); appinfo/routes.php; lib/Service/Outbound/OutboundHttpClient.php

13. Inbound connections​

List inbound connections

Nextcloud authenticates every request before OpenRegister runs, except on endpoints marked public. All public controller methods carry a rate-limit or brute-force attribute (77 methods, checked 9 November 2026). Rows that a schema does not expose stay behind the RBAC checks described under question 17.

NameProtocolAuthentication
Web interface (Vue SPA)HTTPS, TLS by the host's web serverNextcloud login: password with optional second factor, or single sign-on through a Nextcloud SSO app (OIDC or SAML). Session cookie plus CSRF request token.
REST API /apps/openregister/apiHTTPS, JSONNextcloud session, HTTP Basic with an app password, or OAuth2 bearer token issued by Nextcloud.
API endpoints for configured consumersHTTPS, JSONPer consumer: JWT signed with HMAC, RSA or RSA-PSS, API key, Basic or OAuth2 bearer.
GraphQL /api/graphqlHTTPS, JSONSame as the REST API. Anonymous reads only reach public data and are rate limited.
MCP endpoint /api/mcpHTTPS, JSON-RPCNextcloud user authentication. Tools run with that user's rights.
Public read and submit endpointsHTTPS, JSONNone, by design, for data a schema makes public. Rate limited per IP.
Access links and share linksHTTPSRandom link token, optional password, expiry date.
Calendar feeds, case and portal tokensHTTPSRandom token per feed or case, revocable, optionally with an expiry. The feed is generated with the rights of the user who created it.
WebDAV and CalDAV write-backHTTPS, WebDAVNextcloud DAV authentication.
Federation (Open Cloud Mesh)HTTPS, OCMNextcloud federation between trusted servers.
OAuth2 connect callbackHTTPSSigned, single-use state with PKCE, bound to the flow that started it.
occ commands and cronLocal processShell access to the server.

Sources: appinfo/routes.php; lib/Service/AuthorizationService.php; lib/Mcp/Controller/McpServerController.php; lib/Service/Sharing/AccessLinkSecrets.php; hydra ADR-082 (public endpoint throttling)

See also: Objects API

14. Outbound connections​

List outbound connections

Every outbound HTTP call goes through one client, OutboundHttpClient, built on Nextcloud's IClientService. It applies the administrator's proxy settings, and Nextcloud's client refuses local and private addresses unless a call explicitly allows them.

NameProtocolAuthentication
Nextcloud coreIn-process PHP (OCP API)n/a
Nextcloud databaseSQL via Doctrine DBAL; TLS as configured by the hostDatabase credentials in Nextcloud config.php
Apache Solr, Elasticsearch (optional)HTTPSBasic or API key, set by an administrator
LLM providers: OpenAI, Fireworks, Ollama (optional)HTTPSAPI key, set by an administrator
Text extraction and anonymisation: Presidio, Dolphin (optional)HTTPS or local networkEndpoint and key set by an administrator
Webhook receiversHTTPS, JSONHMAC-SHA256 signature header per webhook
External data sources (sync)HTTPS, RESTPer source: Basic, API key, OAuth2 or JWT
GitHub and GitLab (configuration packages)HTTPS, RESTPersonal access token, set by an administrator
OAuth2 providers (credential broker)HTTPS, OAuth2Client id and secret; tokens kept in the credential vault
KeepIQ credential vault (optional)In-processNextcloud user context
Federated Nextcloud serversHTTPS, OCMNextcloud federation
Web push servicesHTTPS, Web PushVAPID keys

Sources: lib/Service/Outbound/OutboundHttpClient.php; lib/Service/WebhookRequestOptions.php; lib/Service/Credential/; lib/Service/Sync/RestApiSourceFetcher.php

See also: Webhooks and notifications

15. Data stores​

List data stores

OpenRegister has no data store of its own beyond these. Encryption at rest of the database and file storage is the hosting organisation's choice. OpenRegister adds encryption for the most sensitive values on top.

NameTypeEncryption at restSensitive data
Nextcloud database (objects, schemas, registers, audit trail, settings)PostgreSQL, MySQL, MariaDB or SQLite; TLS as configured by the hostDisk encryption by the host. Opt-in per property: fields marked x-openregister-encrypted are encrypted with ICryptoyes
Nextcloud file storage (files attached to objects)Nextcloud storage back endNextcloud server-side encryption when the host enables ityes
Credential vault (connection secrets, OAuth2 tokens)Nextcloud ICredentialsManager or KeepIQyes, encrypted with the instance secretyes
Search indexes (optional)Apache Solr, ElasticsearchAs configured by the hostyes, copies of object data
Memory cacheAPCu or Redisno, volatilepossibly, short-lived
Audit sink file (optional)Structured log file in the Nextcloud data directoryAs configured by the hostyes, audit metadata

Sources: lib/Service/FieldEncryptionHandler.php; lib/Service/Credential/NextcloudVaultCredentialStore.php; lib/Service/Audit/AuditSink.php

See also: Object storage and lifecycle

Security controls​

16. Authentication and sessions​

Please describe the authentication and use of sessions in the system

OpenRegister does not run its own login. Nextcloud authenticates users with a password and optional second factor, or through single sign-on (OIDC or SAML apps). Nextcloud issues the session cookie, checks it on every request, sends a CSRF request token with every form and front-end call (@nextcloud/axios), and ends sessions on logout or expiry.

API clients authenticate with Nextcloud app passwords over HTTP Basic, or with an OAuth2 bearer token issued by the Nextcloud OAuth2 app. A token is only accepted when the request itself carried it, not when a session cookie came along.

For external systems an administrator can configure consumers. AuthorizationService then accepts a JWT, an API key, Basic or OAuth2 per consumer. JWTs are verified with HMAC, RSA or RSA-PSS. The algorithm comes from the consumer's stored configuration, never from the token header. The consumer maps to a Nextcloud user, so its rights are that user's rights.

Failed attempts on protected endpoints are counted per identity and IP address, and blocked after repeated failures (RateLimitMiddleware, on top of Nextcloud's own brute-force protection).

Links that work without an account (access links, calendar feeds, case tokens) use random tokens from ISecureRandom and can be revoked. Access links carry an expiry and can have a password, stored hashed with IHasher. A calendar feed is generated with the rights of the user who created it, so the token grants nothing that user could not read.

Sources: hydra ADR-005 (Nextcloud authentication only); lib/Service/AuthorizationService.php; lib/Service/Consumer/JwtValidator.php; lib/Middleware/RateLimitMiddleware.php; lib/Service/Sharing/AccessLinkSecrets.php; lib/Service/Calendar/CalendarFeedTokenService.php

See also: Access links

17. Authorization​

Please describe the authorization mechanism(s) of the system

OpenRegister combines RBAC based on Nextcloud groups with attribute rules and organisation-based multi-tenancy. The server checks every rule. The front end only hides what the server would refuse anyway.

  • Schema and register level: a schema's authorization block lists which groups may create, read, update and delete, plus actions the schema declares itself. Once a block is present, every action it does not name is refused.
  • Conditional rules: an entry can carry a match on object fields, for example a confidentiality level or the caller's organisation. The rules are applied in SQL on lists and in PHP on single objects.
  • Object level: owners and holders of the grant_manage right can make an object private and grant or revoke access per user or group.
  • Property level: rules per property hide or protect single fields. Reads of protected fields are recorded in the audit trail.
  • Multi-tenancy: data belongs to an organisation. Users see the data of the organisations they belong to.
  • Administrators (IGroupManager::isAdmin(), checked on the server) manage configuration.
  • Object reads, relation checks and list queries all resolve through one evaluator (PermissionHandler), so the verdict in PHP and in SQL is the same.
  • API consumers and AI assistants act as a Nextcloud user. Their tokens can narrow that user's rights, never widen them.

Main code: lib/Service/Object/PermissionHandler.php, lib/Service/Rbac/, lib/Db/MultiTenancyTrait.php and the RBAC filter in lib/Db/MagicMapper.php.

Sources: docs/Features/property-authorization.md; docs/Features/object-sharing.md; docs/Features/multi-tenancy.md; lib/Service/Rbac/; hydra ADR-005, ADR-023 (action authorization); lib/Service/Rbac/TokenGrantNarrower.php

See also: Set up roles and permissions

18. Cryptography​

Please describe the used cryptographic techniques and algorithms of the system

OpenRegister reuses Nextcloud's crypto primitives and well-known libraries. It implements no algorithm of its own. Internal connections to the database and cache are protected by the host's configuration.

FunctionTechnique or algorithmVersion or cipher suite
Transport securityTLS, terminated by the host's web serverAs configured by the host; we recommend TLS 1.2 or later
Encryption of flagged fields and vault secrets at restNextcloud ICrypto: AES-256-CBC with HMAC-SHA512 (encrypt-then-MAC), keys derived with HKDF-SHA512 from the instance secretCiphertext format version 3, Nextcloud 32 to 35
Credential vaultNextcloud ICredentialsManager (ICrypto)As above
Verify consumer JWTsHMAC-SHA2 (HS256/384/512), RSA PKCS#1 v1.5 (RS256/384/512), RSA-PSS (PS256/384/512)web-token/jwt-library 4.1, phpseclib 3
Sign webhook payloadsHMAC-SHA256PHP hash_hmac
Sign and verify configuration bundlesEd25519libsodium
Audit trail integritySHA-256 hash chain over canonical JSON of each entryPHP hash
Passwords on access linksNextcloud IHasherArgon2id or bcrypt, per Nextcloud
Random tokens (links, feeds, OAuth2 state)Nextcloud ISecureRandomCSPRNG
User passwordsHandled by Nextcloud, not by OpenRegistern/a

Sources: lib/Service/FieldEncryptionHandler.php; lib/Service/Consumer/JwtValidator.php; lib/Service/WebhookRequestOptions.php; lib/Service/Config/BundleSigner.php; lib/Service/AuditHashService.php; lib/Service/Sharing/AccessLinkSecrets.php

See also: Credential broker

19. Input handling and injection prevention​

Please describe the strategy to prevent injection attacks and other data handling attacks

  • Object data is validated against its JSON Schema (opis/json-schema) before it is stored. Requests can also be validated against the OpenAPI description (OasValidationMiddleware).
  • Database access uses the Nextcloud QueryBuilder with named parameters (about 1,200 call sites). Table and column names that come from schema definitions are quoted and escaped for the database platform, and checked before a table is changed.
  • Route parameters are constrained with requirements in appinfo/routes.php.
  • Templates that users author (computed fields, mappings) render in a Twig sandbox with an allow-list of tags, filters and functions.
  • Uploads are checked for executable content by extension and by magic bytes, also after base64 decoding (ExecutableContentDetector). Nextcloud's antivirus app can scan files on top.
  • The front end uses Vue templates, which escape output. The one place that renders HTML sanitises it with DOMPurify first.
  • Outbound calls go through one client that applies Nextcloud's protection against requests to local addresses.
  • CI runs static analysis (Psalm, PHPStan) and the Hydra security gates on every pull request.

Sources: lib/Service/Object/ValidateObject.php; lib/Middleware/OasValidationMiddleware.php; lib/Db/MagicMapper.php; lib/Service/SharedSchema/SchemaTableMigrator.php; lib/Service/MappingService.php; lib/Service/File/ExecutableContentDetector.php; src/components/shared/SettingsSection.vue

See also: Enhanced validation errors

20. Security configuration​

Please describe configured security mechanisms

Response headers: Nextcloud sets the security headers for every response, including Content-Security-Policy with nonces, X-Frame-Options, X-Content-Type-Options, Referrer-Policy and X-Robots-Tag. HSTS is set by the host's web server. Where a feature needs more than the default policy, such as the web push service worker, OpenRegister extends the policy for that response through Nextcloud's CSP manager. Responses from public endpoints get CORS headers without credentials (PublicApiCorsMiddleware).

Secrets: credentials for external sources are encrypted with ICrypto. OAuth2 tokens and broker credentials live in the Nextcloud credential vault or KeepIQ, and objects store only a reference (hydra ADR-064). Tenant log lines go through TenantLogRedactor, which drops a line it cannot prove free of secrets. Database credentials and the instance secret live in Nextcloud's config.php, which the host protects.

Configuration files: OpenRegister ships no production configuration. Each organisation runs its own Nextcloud; its config.php and OpenRegister's app settings (stored in the database through IAppConfig) are the production configuration. The Docker Compose files in the repository are for development and demos and differ from production: they use default passwords, plain HTTP and debug settings.

Sources: lib/AppInfo/Application.php; lib/Middleware/PublicApiCorsMiddleware.php; lib/Service/TenantLogRedactor.php; hydra ADR-064 (credential custody); docker-compose.yml

See also: Instance hardening

21. Security logging​

Please describe the strategy for security logging

What we log:

  • Every create, update and delete of an object in the audit trail, with user, session, request id, IP address, organisation and processing purpose. Reads of protected fields are logged as well.
  • Changes to access: grants and revocations, ownership handovers, changes to authorization settings on schemas and registers, and changes to security settings.
  • Failed authentication on protected endpoints and rate-limit blocks, through Nextcloud's logger. Nextcloud and its audit app log logins and logouts.

Where: the audit trail is a database table (openregister_audit_trails). Optionally every entry is also written to a structured file that the organisation's log platform or SIEM reads (AuditSink). Technical events go to the Nextcloud log (file or syslog, set by the host).

Sensitive data: tenant log lines name the organisation and a pseudonymous actor reference, and carry no secrets (TenantLogRedactor). Audit history shown to readers is redacted to what they may see.

Tampering: a background job seals audit entries into a SHA-256 hash chain, in which each entry carries the hash of the one before it. The integrity check recomputes the chain and reports entries that no longer match. Shipping entries to an external log platform keeps an independent copy outside the application and its database. Retention periods per entry follow the retention rules.

Sources: lib/Db/AuditTrail.php; lib/Service/AuditHashService.php; lib/BackgroundJob/AuditSealJob.php; lib/Service/Audit/AuditSink.php; lib/Service/Rbac/GrantChangeAuditor.php; lib/Service/Rbac/SettingsChangeAuditor.php; lib/Service/AuthorizationAuditService.php; lib/Middleware/RevealAuditMiddleware.php; lib/Service/TenantLogRedactor.php

See also: Content versioning and audit trail

22. Dependency management​

Please describe the dependency management strategy of the system

All third-party code comes in through package managers: Composer for PHP and npm for JavaScript, with committed lock files. Composer uses Packagist plus two pinned GitHub sources (LLPhant, and our fork of the PDF signing library sapp). npm uses the public registry. Three small patches to Composer packages are applied at install time and kept in patches/.

  • Dependabot proposes updates for npm and Composer every week. Majors we cannot take yet are listed with the reason in .github/dependabot.yml.
  • Cooldowns: npm refuses releases younger than two days (.npmrc), Dependabot waits one day for Composer (hydra ADR-093).
  • roave/security-advisories blocks installing PHP packages with known advisories. CI runs composer audit as a gate on every pull request, and npm audit when a release is built.
  • Every release ships a CycloneDX SBOM. Grype scans it, and a critical vulnerability stops the release.
  • CI installs from the lock files (npm ci, composer install, hydra ADR-090) and runs REUSE for licences.

Sources: composer.json (repositories, roave/security-advisories); .github/dependabot.yml; .npmrc; patches/; SECURITY.md (SBOM, Grype); hydra ADR-090, ADR-093

See also: Quality assurance

Other remarks​

23. Additional remarks​

Please use the space below for any additional remarks

  • SECURITY.md describes how to report a vulnerability (security@conduction.nl) and the response times. /.well-known/security.txt is served by the app.
  • Security rules for all Conduction apps are recorded in hydra ADR-005 (security), ADR-054 (public surface hardening), ADR-064 (credential custody) and ADR-082 (public endpoint throttling). Hydra's mechanical gates check several of them on every pull request, for example per-object authorization, route authorization and unsafe authorization fallbacks.

Sources: SECURITY.md; lib/Controller/WellKnownController.php; hydra openspec/architecture/

24. Time spent and feedback​

How much time was spent filling in this form? Other feedback?

Given on the submitted form.

See also the maintainability questionnaire.