Approvals#
Every job is signed by the server when it is saved in the app: the signature covers the job's tasks and the authority it runs with. A job whose file does not carry a valid signature is one the server cannot vouch for, and an administrator has to approve it.
This page is about those jobs. For who a job runs as, see Who may see, change and run a job.
Which jobs wait for approval#
| State | Why |
|---|---|
| "no authority record" | the job was last saved by CrushFTP 11, or its file was written by something other than the app |
| "the authority record's signature does not verify" | the job's file was changed outside the app, or copied in from another server |
| "job.XML cannot be read" | the file is damaged |
Typical cases: jobs that came with an update from version 11, a jobs folder copied from another server, a job file edited by hand, a job restored from a backup of another machine.
A job that is imported through the app, or saved again in the designer, is signed then, as whoever did it.
Whether such a job runs#
That is one setting of the server, rbac_jobs_require_signature:
| Server | The setting starts as | Unsigned jobs |
|---|---|---|
| a new install | on | do not run until they are approved |
| updated from CrushFTP 11, with jobs | off | run as before, with full authority, and each such run is noted in the server's log and the audit log |
On an updated server, approve the jobs you have and then turn the setting on. From then on a job file that somebody slips into the jobs folder does not run.
Approving#
The approvals button in the bar of the job list is shown to accounts that may approve. It opens Jobs waiting for approval:
- "Signed jobs are required: these do not run until they are approved." or
- "Signed jobs are not required: these still run as before. Approving signs them as you."
- the jobs, each with its state and Approve. "No job is waiting." when there is none.
Approve asks: "Approve … ? It is signed as you and runs with your authority from now on."
So approving is not a formality. The job becomes yours: it runs with your authority, as if you had drawn it. Open the job and read it first. Look at every Execute, Java, Copy and HTTP task, and at where they point.
A job can also be approved by opening it in the designer and pressing Save Changes: saving signs.
Who may approve#
A full administrator, or a role holder with the "approve" right for the job's folder. Nobody can approve a job into more authority than their own: a role holder who approves a job makes it run as their roles, and the approval is refused when the job holds a task those roles do not allow.
Things to know#
- Approval is per job, once. After it, the job is like any other.
- A change in the app does not need approval. Only files that changed outside the app do.
- Events and alerts carry jobs too, and those are signed the same way when the user or the alert is saved.
- The API lists the waiting jobs and approves them: see Jobs in the API.
- Refusals are logged. A run that was refused for a missing signature is in the audit log as "no authority record and signatures are required".