Skip to content

Require an e-signature to deploy

eaxScadaHow-to guideStarterProEnterpriseView as Markdown

Make every deploy of a project an electronic signature: the person who deploys re-enters their password over a meaning that states exactly what is published, and the server publishes exactly that.

The setting Require e-signature to deploy, per project, in the Project manager’s Operator runtime section.
Default, new project On (a new project, and the project of a new installation).
Default, existing project Off, shown as “Off (default for projects created before this version)”: an upgrade changes nothing.
Who deploys and signs Lead_Engineer or Administrator, signed in with a password session. The deployer signs their own deploy.
Who never signs API tokens and the AI co-pilot account: with the setting on, their deploys are refused.
Turn it on Lead_Engineer or Administrator; no signature needed.
Turn it off Lead_Engineer or Administrator, with their own e-signature.
Edition Every edition.
  1. Open Project → Project settings… and go to Operator runtime.
  2. Tick Require e-signature to deploy. It is saved at once; the line under it says On: deploys are e-signed.

The Operator runtime section: Live editing off, and Require e-signature to deploy on, with what it means. The Operator runtime section: Live editing off, and Require e-signature to deploy on, with what it means.

Require e-signature to deploy, below Live editing.

The change is saved against the project’s revision: if the project changed meanwhile, it is refused and you reopen the Project manager. A project save never changes the setting.

  1. Click Deploy. With the setting on, the dialog has an Electronic signature required block:
    • Signer: you, the signed-in user, read-only;
    • Meaning: what the server says the deploy publishes, for example Deploy project Docs plant: 5 screens, 3 dashboards (manifest f1c60b55cd7e);
    • Password: empty, never filled in for you.
  2. Check the meaning, enter your password and click Sign and deploy.

The Deploy dialog: the review gate, then the signer, the meaning with the manifest’s fingerprint, an empty password field and Sign and deploy. The Deploy dialog: the review gate, then the signer, the meaning with the manifest’s fingerprint, an empty password field and Sign and deploy.

A signed deploy, with the project's review gate above it.

What the server checks:

  • One signature per deploy. The password gives a one-time signature ticket, bound to you, to this project and to the manifest’s hash. It is used by the deploy that follows and cannot be used again.
  • Bound to the manifest. The server builds the manifest again when you sign and when you deploy. If anything was saved in between (by you or someone else), the signature is refused and you sign the new meaning. The deploy publishes exactly the signed manifest.
  • The deployer signs. A signature made by another person is refused.
  • With review before deploy, the approved review and the signature must be for the same manifest.
  • Order of the deploy checks: the review gate, then the acknowledgement of what the deploy changes, then the signature, then the plant e-stop setting and the screen errors. A deploy that fails the signature changes nothing. The plant e-stop signal itself moves only after every check and the DEPLOY record, right before the screens go live: DEPLOY, PROJECT PLANT_ESTOP_TAG, DEPLOY_SIGNED, DEPLOY_DONE.
SequenceA signed deploy, from the dialog to its records
A signed deploy, from the dialog to its recordsThe Studio asks the eaxScada server what the deploy publishes and shows that meaning. The deployer's password, sent with the hash that was shown, gives a one-time ticket bound to the signer, the project and the manifest hash; when the project was saved since, nothing is signed. The Deploy then carries the ticket: the server runs the deploy checks in order, redeems the ticket against the manifest it builds at that moment, and only when every check passes records DEPLOY, moves the plant e-stop signal if it has to, publishes the signed manifest and records DEPLOY_SIGNED and DEPLOY_DONE.NOTHING IS SIGNEDSIGNEDCHECK 3 REFUSESEVERY CHECK PASSESDeployersigned inStudioDeploy dialogeaxScadaserverAudit trail1Clicks Deploy2GET …/deploy-esignsubject: hash and meaningof the manifest built now3PasswordSign and deploy4POST …/deploy-esign/ticketpassword, purpose "deploy", hash shown409 manifest_changedsaved since: the new subject to signNo ticket: 403wrong password, API token or AI co-pilotESIG_OBJECT_TICKET_ISSUEDrecorded first: no record, no ticketOne-time ticket, 60 sbound to signer, project, manifest hash5POST …/deploysignature_ticketDeploy checks, in order1 review before deploy2 acknowledgement of changes3 e-signature: the ticket4 plant e-stop setting5 screen errorsDEPLOY_SIGNATURE_REFUSED403 deploy_signature_refusedor deploy_signature_required: no ticket. Nothing changes6DEPLOYrecorded firstPROJECT PLANT_ESTOP_TAGfirst, when the e-stop signal movesPublishes the manifestbuilt again under the lockit has the signed hashSaved meanwhile: not published, signal moved back,DEPLOY_SIGNATURE_REFUSED7DEPLOY_SIGNED, DEPLOY_DONEDeployed
The server builds the manifest again when you sign, when it checks the signature and when it publishes: only the manifest you signed goes live.
  • Product
  • Service or process
  • Data store
  • Person or role
  • Data or telemetry
  • Configuration or deploy
  • Authentication
  • Refusal
Read as text

The Studio asks the eaxScada server what the deploy publishes and shows that meaning. The deployer's password, sent with the hash that was shown, gives a one-time ticket bound to the signer, the project and the manifest hash; when the project was saved since, nothing is signed. The Deploy then carries the ticket: the server runs the deploy checks in order, redeems the ticket against the manifest it builds at that moment, and only when every check passes records DEPLOY, moves the plant e-stop signal if it has to, publishes the signed manifest and records DEPLOY_SIGNED and DEPLOY_DONE.

Participants

  • Deployer (person or role): signed in
  • Studio (service or process): Deploy dialog
  • eaxScada (product): server
  • Audit trail (data store)

Steps, in order

  1. Deployer → Studio (data or telemetry): Clicks Deploy
  2. Studio → eaxScada (data or telemetry): GET …/deploy-esign
  3. eaxScada → Studio (reply): subject: hash and meaning. of the manifest built now
  4. Deployer → Studio (authentication): Password. Sign and deploy
  5. Studio → eaxScada (authentication): POST …/deploy-esign/ticket. password, purpose "deploy", hash shown
  6. Nothing is signed:
    1. eaxScada → Studio (refusal): 409 manifest_changed. saved since: the new subject to sign
    2. eaxScada → Studio (refusal): No ticket: 403. wrong password, API token or AI co-pilot
  7. Signed:
    1. eaxScada → Audit trail (data or telemetry): ESIG_OBJECT_TICKET_ISSUED. recorded first: no record, no ticket
    2. eaxScada → Studio (reply): One-time ticket, 60 s. bound to signer, project, manifest hash
  8. Studio → eaxScada (configuration or deploy): POST …/deploy. signature_ticket
  9. eaxScada: Deploy checks, in order: 1 review before deploy; 2 acknowledgement of changes; 3 e-signature: the ticket; 4 plant e-stop setting; 5 screen errors
  10. Check 3 refuses:
    1. eaxScada → Audit trail (data or telemetry): DEPLOY_SIGNATURE_REFUSED
    2. eaxScada → Studio (refusal): 403 deploy_signature_refused. or deploy_signature_required: no ticket. Nothing changes
  11. Every check passes:
    1. eaxScada → Audit trail (data or telemetry): DEPLOY. recorded first
    2. eaxScada → Audit trail (data or telemetry): PROJECT PLANT_ESTOP_TAG. first, when the e-stop signal moves
    3. eaxScada: Publishes the manifest: built again under the lock; it has the signed hash
    4. Note: Saved meanwhile: not published, signal moved back, DEPLOY_SIGNATURE_REFUSED
    5. eaxScada → Audit trail (data or telemetry): DEPLOY_SIGNED, DEPLOY_DONE
    6. eaxScada → Studio (reply): Deployed

A wrong password signs nothing: the dialog stays open with its message and an empty password field, and you stay signed in. It counts toward the account lockout, as every electronic signature does (the fifth wrong password locks the account for 15 minutes).

The automatic deploy of live editing cannot sign. With the setting on, a screen save never reaches the operators by itself: the automatic deploy is refused (fail closed), operators keep the previous deployed version, and the status bar says signature required. Deploy from the Studio to publish the saves.

  1. Clear Require e-signature to deploy.
  2. The Studio asks for your signature: the signer (you), the meaning Turn off "Require e-signature to deploy" for project <name> (revision <rev>) and your password.
  3. Confirm. The line says Off.

The signature is bound to the project revision you change it from: a signature cannot be replayed on a later state of the project.

Call Who What
GET /api/dev/projects/{id}/deploy-esign Lead_Engineer, Administrator require_deploy_esign, require_deploy_esign_default (true: the project predates the setting), signer; when on, subject (hash, meaning, screens, dashboards) and disable_meaning
POST /api/dev/projects/{id}/deploy-esign/ticket the signed-in person body {"password", "purpose": "deploy" | "disable", "hash"}; answers a one-time ticket
POST /api/dev/projects/{id}/deploy Lead_Engineer, Administrator body {"signature_ticket": "..."} when the project requires it; with "ack": {"preview_hash", "reason"} when the deploy changes command targets, scripts or the write policy (Deploy preview API)
PUT /api/dev/projects/{id}/deploy-esign Lead_Engineer, Administrator body {"require_deploy_esign": true | false, "signature_ticket": "..."} (the ticket only to turn it off); If-Match: the project revision it is changed from

The acknowledgement is checked before the signature: a deploy refused for its acknowledgement (409 deploy_preview_ack_required or deploy_preview_stale) does not use the ticket.

For a deploy, hash is the subject.hash the person was shown. For turning the setting off, sign with purpose: "disable". The answer holds ticket, expires_at and the meaning signed; the ticket is valid for 60 seconds.

Refusals:

HTTP Code When
403 deploy_signature_required a deploy without a ticket; an automatic deploy
403 deploy_signature_refused a ticket that is not the deployer’s, not this project’s, for another manifest, already used or expired; an API token; the AI co-pilot account
409 manifest_changed (ticket) the project changed since the person was shown what to sign: the answer holds the new subject
403 signature_refused (status) (ticket) a wrong password, an unknown or disabled signer, an API token, the AI co-pilot account
429 (ticket) the account is locked (the fifth wrong password locks it for 15 minutes)
400 (ticket) no password
503 (ticket) the server could not hand out a ticket (too many open, HA store); 503 AUDIT_NOT_WRITTEN when the signature could not be recorded
401 no session (sign in again); never a wrong password
403 setting_signature_required turning the setting off without a ticket
403 setting_signature_refused turning it off with a ticket that is not the changer’s, or for another revision
409 (setting) If-Match names an older project revision: read the project again

Each is written to the access audit and the operations audit:

Event When
DEPLOY_SIGNED a signed deploy: the signer, the meaning and the manifest hash
DEPLOY_SIGNATURE_REFUSED a deploy refused by the signature step, or one whose project changed while it was deployed
PROJECT_DEPLOY_ESIGN_CHANGED the setting turned on or off; off names the signer and the meaning
PROJECT_DEPLOY_ESIGN_CHANGE_REFUSED turning it off refused (no signature, a wrong one, or a role that may not)
ESIG_OBJECT_TICKET_REJECTED a signature refused when the ticket was asked for
AUTO_DEPLOY_REFUSED an automatic deploy refused (here: it cannot sign)

require_deploy_esign: absent (a project from before the setting: off), true or false. It is changed through PUT .../deploy-esign only; a project save keeps the stored value.