Skip to content

Audit Trail ​

This page has three parts:

  • What the software records: the audit trail of every Rosepetal controller with the Rosepetal dashboard.
  • Regulatory requirements: which requirements of 21 CFR Part 11 and EU GMP Annex 11 the software covers, which ones a regulated project adds, and which ones belong to the customer.
  • Reference architecture for regulated deployments: the design Rosepetal delivers as a project when the customer manages a Panel PC and an LDAP/Active Directory directory. It is not part of the standard software.

Status used on this page:

StatusMeaning
AvailablePart of the standard Rosepetal software.
Per projectDesigned by Rosepetal; delivered, configured and validated in a regulated project.
CustomerUnder the customer's procedures or infrastructure.
Not includedOutside the scope of Rosepetal.

What the software records ​

Audit events ​

  • The Audit Manager node of the Rosepetal dashboard records an audit event each time a flow sends it a message. The flows of each deployment decide which actions are audited: the node goes in the flow of every auditable action (batch start, bypass, recipe change...), with the event type of Annex 1.
  • The dashboard login records access_login_success, access_login_failed and access_logout, also when a session is closed for inactivity.
  • Events are stored on the controller in RethinkDB (database audit, table audit_events) and can also be published to NATS.
  • The date and time come from the controller when the event is recorded, not from the user's browser.
  • If the event cannot be stored, the node reports an error and does not pass the message on: an action wired after the node does not run without its record.
FieldContent
actionIdEvent type, from the catalog in Annex 1 (for example session_batch_start).
actionTypeCategory of the event type (for example session).
roleIdProfile of the signed-in user (for example client-operator).
sourcenode-red-flow for events of the Audit Manager node, dashboard-sso for login and logout.
timestampDate and time of the controller when the event is recorded.
userIdEmail of the user account signed in to the dashboard.
payloadFields the flow adds to the event, for example the batch (batchId), the previous and new value or the reason for a change.

Users, profiles and permissions ​

  • Each person signs in to the dashboard with an individual user account (Firebase Authentication; on an offline controller, the authentication service of the controller).
  • Each account has one profile. The software defines four customer profiles, Operator, Supervisor, Maintenance/Engineering and Administrator, with the permissions of Annex 2.
  • Every dashboard message carries the signed-in user with its profile and permissions, so the flows of the deployment allow or block each action.

Review ​

  • The audit viewer of the controller lists the recorded events by category, with text search, to signed-in users.
  • Review is on screen: the viewer does not export or print events.
  • Events cannot be modified from the dashboard or the viewer. Deleting them is reserved to Rosepetal's administration account.

Backup ​

  • The controller backs up its storage every day, including the audit database, with a SHA-256 checksum per backup.
  • The last five backups are kept on the controller and in the customer's own cloud storage bucket, and can be restored.

Regulatory requirements ​

The table maps the technical controls of 21 CFR Part 11 and EU GMP Annex 11 to the software, the reference architecture and the customer. Electronic signature is not included.

RequirementReferenceSoftware todayRegulated projectCustomer
Individual user identification§11.10(d), §11.300(a), Annex 11 §12Available: one account per person, recorded in every event.Login against the customer's LDAP/AD; the directory identity is recorded.Creates, disables and reviews the accounts.
Password and account policies§11.300(b), (d)Basic password rules of the user accounts.Inherited from LDAP/AD: expiry, lockout, retries.Defines the directory policies.
Authority checks§11.10(g)Available: profiles and permissions of Annex 2, checked by the flows.Permission matrix of every screen and GxP action, profiles mapped to AD groups, verified in FAT/SAT.Approves the matrix and the group membership.
Audit trail of operator actions§11.10(e), Annex 11 §9Available for the actions the flows audit: user, profile, controller time, event type.Every action of the permission matrix audited, with previous and new values.Defines which actions are GxP-relevant.
Reason for changeAnnex 11 §9When the screen asks for it, the flow adds it to the event.The reason is mandatory for GxP changes.Defines which changes need a reason.
Protection of the audit trail§11.10(c), (e)Not editable from the dashboard; deletion reserved to Rosepetal's administration account. No durable queue or tamper evidence.Transactional store on the Panel PC, outbox on the controller, hash per published report.Controls access to the Panel PC and the GxP directory.
Time reference§11.10(e)Clock of the controller.Synchronization with the customer's time source.Provides the time source (NTP).
Readable and electronic copies§11.10(b), Annex 11 §8On-screen review in the audit viewer; no export.Automatic PDF and CSV reports published to the GxP directory.Reviews and archives the reports.
Retention and backup§11.10(c), Annex 11 §7Available: daily backup with checksum and off-site copy. Events are kept until deleted.Reports retained in the GxP directory.Retention period, backup of the GxP directory.
AI model and recipe integrityAnnex 11 §10Not recorded as evidence.Model SHA-256 and recipe version in the audit trail and the reports.Approves model and recipe changes.
Validation§11.10(a), Annex 11 §4Not included in the software.Validation documentation and FAT/SAT of the delivered configuration.Validates the system for its intended use.
Electronic signature§11.50, §11.70, §11.100–§11.300, Annex 11 §14Not includedNot includedReview signatures outside Rosepetal.

Reference architecture for regulated deployments ​

NOTE

This architecture is designed by Rosepetal for regulated deployments (e.g. 21 CFR Part 11) in which the customer manages the Panel PC. It is delivered, configured and validated in each project; the standard software is described in What the software records.

Overview ​

  • Users log in to the Rosepetal application on the Panel PC against the customer's LDAP/Active Directory: no individual Windows users on the Panel PC.
  • The Panel PC Gateway / Auth Service validates the credentials, reads the user's corporate groups and assigns the Rosepetal profiles defined by the customer.
  • The Rosepetal Controller does not store or validate corporate passwords and does not access LDAP/AD or the customer network, except through the controlled channel with the Panel PC.
  • The Audit / Event Store on the Panel PC stores the audit events transactionally, for traceability, report generation and retries.
  • An Audit & Batch Report Generator without user interface generates PDF and/or CSV reports automatically and publishes them to a shared GxP directory defined by the customer, which the customer's infrastructure backs up and retains.
  • The official review is done on the published reports; the audit viewer of the controller remains for on-screen checks.

Architecture ​

Architecture

ElementResponsibility
Panel PCApplication authentication, authorization, audit reception, transactional storage, report generation, publication to the folder and integration control.
Panel PC WindowsCustomer-managed equipment under IT policies. Provides secure environment, certificates, network permissions, service execution and controlled access to approved resources.
Panel PC Gateway / Auth ServiceManages the application login, validates against LDAP/AD, creates the Rosepetal session, generates access tickets and authorizes access to the controller.
LDAP / Active DirectoryCorporate source of identity, account status, users, groups, profiles and authentication policies.
Role MapperConverts LDAP/AD groups approved by the customer into Rosepetal profiles.
Rosepetal ControllerRuns the Rosepetal software, batches, recipes, AI model and communication with cameras/devices. It does not directly access LDAP/AD.
Audit / Event StoreTransactional store of audit events used for traceability, integrity control, report generation and retries.
Audit & Batch Report GeneratorAutomatic service without user interface that generates PDF/CSV reports by batch, inter-batch period, alarms, audit and model/recipe.
Shared directoryFinal repository of the generated reports, managed by the customer for backup, retention, access and review.

Components ​

On the Panel PC:

ComponentFunction
Panel PC Gateway / Auth ServiceReceives https://panelpc/rosepetal, manages the application login, validates against LDAP/AD and authorizes access to the Rosepetal Controller.
LDAP ConnectorLDAPS connector for user searches, credential validation, group queries and retrieval of attributes approved by IT.
Role MapperMaps Active Directory groups to the Rosepetal profiles: Operator, Supervisor, Maintenance/Engineering and Administrator.
Audit APIReceives the audit events sent by the controller; validates origin, session, integrity and format.
Audit / Event StoreProtected local database with the audit events, original payload, normalized event, hashes and publication status.
Audit & Batch Report Generator ServiceAutomatic service without user interface that generates batch, audit trail, alarm/incidence and model/recipe reports.
Shared Folder PublisherPublishes files to the shared folder with controlled writing, hash, manifest, retries and result logging.

On the Rosepetal Controller:

ComponentFunction
Rosepetal Controller SoftwareRosepetal software for operation, inspection, batch management, recipes, AI and communication with cameras/devices.
Session clientExchanges the access ticket with the Panel PC Gateway and receives the authorized identity and privileges.
Audit clientSends the audit events to the Panel PC.
Temporary local outboxDurable local queue, so no event is lost while the connection with the Panel PC is interrupted.
Model / Recipe Integrity ClientReports the AI model version and hash, the active recipe and their changes, for the audit trail and the reports.

The outbox of the controller is not the official audit repository: it keeps the events pending delivery and resends them to the Panel PC when communication is restored.

User access ​

The user accesses through the Panel PC, and the individual identity is validated against LDAP/AD from the application. The controller does not authenticate against LDAP and does not receive corporate credentials.

Main user access flow

The access ticket rst separates the corporate authentication from the technical session between controller and gateway. The Panel PC Gateway generates it after validating the user in LDAP/AD.

PropertyDescription
Randomness128 or 256 cryptographically generated bits.
One-time useOnce exchanged by the controller, it is marked as used.
Short expiryValid for 30 to 120 seconds.
Not reusableA used or expired ticket is rejected.
Not a passwordIt only starts the controller-gateway session. It does not contain or replace the corporate password.
Associated with identityThe gateway associates it with the LDAP/AD user, profiles, line, Panel PC, session and expiry.
AuditableTicket issuance, exchange, expiry or rejection are recorded as technical audit events.

Audit generation and storage ​

Audit events are generated in the Rosepetal Controller, where the Rosepetal software runs and the operational actions occur. Reception, normalization, transactional storage and report generation take place on the Panel PC.

Audit generation and storage flow

DataResponsible party
User identityPanel PC Gateway / Auth Service, from LDAP/Active Directory.
Effective profilePanel PC Role Mapper, from the LDAP/AD groups approved by the customer.
Action performed in the Rosepetal softwareRosepetal Controller.
Previous value / new valueRosepetal Controller, from the controlled system state.
Reason for changeUser, captured by the Rosepetal software where applicable.
Transactional recordPanel PC Audit / Event Store.
Document reportPanel PC Audit & Batch Report Generator.
Final GxP archiveShared GxP directory managed by the customer.

The Audit / Event Store of the Panel PC is the transactional repository and the source of the reports; the shared directory keeps the reports as documentary evidence for review, backup and retention under the customer's infrastructure. The Panel PC is under the customer's IT control and its backup mechanisms, and the controller stays isolated from the customer network.

Automatic reports ​

FunctionDescription
Automatic generationGenerates reports without manual intervention at batch closure, during inter-batch periods or on configured events.
Batch ReportBatch data, recipe, users, counters, correct units, rejected units, status and critical parameters.
Audit Trail ReportAudit events with user, date/time, message, batch, event, result and metadata.
Alarm / Incidence ReportAlarms, incidences, resets, validations and relevant states.
Recipe / Model Integrity ReportActive recipe, AI model version, hash and version changes.
PDF exportReadable copies for human review and audit.
Optional CSV exportStructured data for analysis, filtering or electronic review, if the customer requires it.
Document publicationWrites the reports to the shared folder atomically, without overwriting existing files.
RetriesIf the shared folder is unavailable, keeps the report pending and retries the publication.
Generation auditRecords generation, failure, retry, publication, hash and final location.

Manual queries, interactive filters and electronic review signatures are not part of the generator: the reports are reviewed outside Rosepetal, from the files published to the customer's folder.

Automatic Report Generator flow

Publication flow to folder

ReportGeneration pointContent
Batch ReportAt batch closure.Batch data, recipe, start/end user, counters, correct/rejected units, critical parameters, AI model and final status.
Audit Trail ReportAt batch closure and/or inter-batch period.Audit events with user, date/time, action, message, batch, result and metadata.
Alarm / Incidence ReportAt batch closure and/or inter-batch period.Alarms, incidences, resets, validations, alarm status and associated events.
Recipe / Model Integrity ReportOn recipe/model load or change and at batch closure.Recipe, version, critical parameters, AI model, hash, activation date and user.
Report Generation LogFor each generation/publication.File name, path, hash, timestamp, trigger, result, errors and retries.

The Batch Report follows the customer's existing batch reports and includes at least: report title; machine, line and controller; batch code; reference, product and description; recipe name and version; start and end date/time and user of the batch; who generated the report and when; units processed, correct and rejected; rejection counters by category; batch status; AI model ID, version and hash; critical recipe and process parameters at batch start and end, where applicable.

The Audit Trail Report includes the service or user that generates it, the generation date/time, the applied filter (batch, time range or inter-batch period) and a table of events with user, date/time, message, event type, result, batch and recipe/model reference.

File names follow this convention:

<SITE>_<LINE>_<MACHINE>_<BATCH>_<REPORT_TYPE>_<YYYYMMDD_HHMMSS>_<HASH8>.pdf
Client_LINE1_ROSEPETAL_B0001234_BATCH_20260511_111331_A1B2C3D4.pdf
Client_LINE1_ROSEPETAL_B0001234_AUDIT_20260511_111302_F9E8D7C6.pdf
Client_LINE1_ROSEPETAL_B0001234_ALARMS_20260511_111302_91AB34EF.csv

Publication requirements:

  • Write access limited to the authorized service; read access according to the customer's policy.
  • A record and a SHA-256 hash of each generated file.
  • Atomic write: temporary file, hash validation, rename to the final name.
  • Controlled retries if the directory is unavailable, and an alarm if a report cannot be published within the agreed time.
  • No overwriting of generated reports; versioning by file name, timestamp and hash.

Security and access control ​

  • The corporate password is not stored, not logged, not sent to the controller and not included in audit events.
  • LDAP/AD is accessed through LDAPS or an equivalent mechanism approved by IT, optionally with a service account for user and group searches.
  • The Panel PC Gateway decides whether the user has access; the controller receives only the validated identity and the authorized privileges.
  • Critical GxP actions are blocked if the user's profile does not allow them. The permission matrix covers screens, actions, parameters, recipe, model, operation and administration, and is an input to FAT/SAT and validation.
  • The audit trail cannot be disabled from normal operation. If an event cannot be recorded safely, critical GxP operations are blocked or raise an alarm, according to criteria agreed with QA/IT.
  • Report generation, failure, retry and publication are audited too, and every report carries a hash or integrity manifest.
  • The Panel PC acts as an application gateway, not as a router between the networks.
InterfaceUse
NIC 1 - Customer networkLDAP/Active Directory, corporate policies, certificates, shared folder, backup/archive and services approved by IT.
NIC 2 - Internal Rosepetal networkControlled communication with the Rosepetal Controller. It does not route between the networks.
SourceDestinationUse
Local browser / userhttps://panelpc/rosepetalAccess to the Rosepetal application through the gateway.
Panel PC Gateway / Auth ServiceCustomer LDAP/Active DirectoryAuthentication, attribute search and group reading through LDAPS or an IT-approved mechanism.
Panel PC GatewayRosepetal ControllerProxied access to the Rosepetal software and rst ticket exchange.
Rosepetal ControllerPanel PC Audit APIAudit events, batch status, alarms, recipe and AI model.
Panel PC Report PublisherShared GxP directoryPDF/CSV reports, manifest and hash.
Shared GxP directoryCustomer backup/archiveBackup, restore, retention and archive according to IT/QA policy.

Profiles ​

The four profiles of the software are mapped to LDAP/AD groups provided by the customer.

ProfileIntended useExample permissions
OperatorDaily operation.Login, monitoring, basic operation, batch start/stop if applicable, status visualization and basic acknowledgement of permitted alarms.
SupervisorProduction supervision.Operator permissions, alarm validation, batch status review and controlled actions on batch/recipe according to the matrix.
Maintenance / EngineeringTechnical support and system adjustment.Diagnostics, maintenance, limited technical configuration, functional tests, access to technical logs and permitted parameterization.
AdministratorSystem administration.Configuration management, assignment of permitted parameters, local integration administration, advanced diagnostics and reserved functions.

Audit events and fields ​

CategoryEvents
AccessSuccessful login, failed login, logout, expired session, locked user, assigned profile, user change.
BatchBatch start, batch end, batch status change, cancellation, pause, restart, active batch change.
RecipeSelection, activation, modification, import/export, version change and critical parameters.
AI modelModel load, version change, hash calculation, integrity validation, integrity failure.
AlarmsIncidences, alarms activated, alarm reset, alarm validation/acknowledgement, subsystem failures.
OperationMachine start/stop, mode changes, relevant inspection events, rejection, critical confirmations.
ReportsSuccessful generation, failure, retry, publication, hash, file name, folder path.

The events keep the fields of the software, with the LDAP/AD user in userId, the component (Controller, Gateway, Auth Service, Report Service, Publisher...) in source, and these payload fields where applicable:

Payload fieldDescription
batchIdActive batch.
configId, configName, configVersionIdentifier, name and version of the active recipe.
oldValue, newValuePrevious and new value.
diffValueDifference between the previous and the new value.
commentsReason for the change.
resultSuccess, failed, rejected, blocked, pending, published.

AI model and recipe integrity ​

ElementEvidence
AI modelModel ID, version, training date, deployment date and SHA-256 hash of the model file.
RecipeRecipe ID, version, critical parameters, user who activates it and date/time.
Dataset / training packageReference to the dataset, training package or validated evidence where applicable.
Model changeAudit event with user, previous and new model, previous and new hash.
Batch closureThe report states which model and recipe were active during the batch.
Later verificationThe hash shows that the model used is the validated version.

Customer dependencies ​

DependencyRequired detail
LDAP/AD serverURL/IP, port, domain, LDAPS and availability.
CertificatesRoot/intermediate certificate for LDAPS, if applicable.
Base DNBase DN for user and group search.
User filterLDAP filter to locate and authenticate users.
AttributesUsername, display name, email, groups, account status and other required attributes.
AD groupsGroups for Operator, Supervisor, Maintenance/Engineering and Administrator.
Session policyExpiry, lockout, login retries and inactivity timeout.
Time sourceNTP server for the Panel PC and the controller.
Directory pathShared directory path.
PermissionsWrite permissions for the service and read/review permissions for the customer.
Final formatPDF, CSV or both.
HashVisible in the PDF, in a sidecar manifest or both.
NamingFinal report naming convention.

Annex 1: Audit event catalog ​

The Audit Manager node offers these event types; the flows of each deployment decide which ones they record.

Action TypeAction ID
accessaccess_login_success, access_login_failed, access_logout, access_session_expired, access_role_not_assigned (*)
actionsbypass_activate, bypass_deactivate, conveyor_activate, conveyor_deactivate
loglog_start, log_stop, log_show_errors, log_image_upload, log_stop_upload, log_clear
capturecapture_start, capture_stop, capture_start_upload, capture_stop_upload, capture_remove_images
alarmsalarm_detected, alarm_reset
operationoperation_software_start, operation_software_stop
reportsreport_failure (*)
sessionsession_batch_start, session_batch_stop
session_recipe_creation, session_recipe_deletion, session_recipe_rename, session_recipe_model_change, session_recipe_modification, session_recipe_import, session_recipe_export, session_recipe_version_change
session_ai_model_load, session_ai_model_version_change, session_ai_model_hash_calculation
backupbackup_creation, backup_creation_error, backup_recovery, backup_recovery_error

(*) Reference architecture only, generated on the Panel PC. In the reference architecture the Panel PC also generates the access_* events.

Annex 2: Permissions catalog ​

Permission Types
bypass_activate
bypass_deactivate
conveyor_activate
conveyor_deactivate
log_start
log_stop
log_show_errors
log_image_upload
capture_start
capture_stop
capture_start_upload
capture_stop_upload
capture_remove_images
alarm_reset
operation_software_start
operation_software_stop
session_batch_start
session_batch_stop
recipe_creation
recipe_deletion
recipe_batch_deletion
recipe_batch_nok
recipe_rename
recipe_read
recipe_model_change
recipe_rule_creation
recipe_rule_deactivation
recipe_rule_activation
recipe_element_creation
recipe_element_removal
recipe_element_classname_change
recipe_presence_source_selection
recipe_rule_rename
recipe_rule_change
backup_recovery