Document Processing Security Controls
Bank statements, tax returns and identity documents carry the most sensitive data a company holds, so two questions come first: which files reach the system, and who can read the results. Document processing security in DaletParse answers both with controls built into the product: upload limits, session and tenant access, run retention, sensitive identity handling and a container that runs inside your own network. Administrators set each control for their deployment, and GDPR, HIPAA and CCPA/CPRA compliant handling comes with a SOC 2 readiness program underway.
Use the page next to your own document processing security review. In fact, the pipeline overview shows where documents travel. Likewise, the implementation plan shows how to test these controls on a hosted instance.
Key takeaway
DaletParse limits uploads, binds web runs to a session, protects service routes with tenant tokens, retires legacy routes and runs inside your own network, with retention and secrets set by your administrators.
Which controls does the code enforce on each upload today?
The first layer of document processing security is the set of upload limits on the upload path. It is a small layer, but it is a real one. After that, each run gets a folder and an access rule.
What limits does an upload meet before it is read?
The upload path accepts PDF, JPEG, PNG, TIFF and WEBP files and refuses other extensions. First, HTTP uploads are capped at 50 MiB, and an empty file is refused.
Also, a file name must stay within 255 bytes. A safe-name function cleans it first.
Besides, a failed check removes the partly created run folder. These upload limits shrink what the pipeline has to parse. Each layer after them adds its own checks.
However, the code does not scan files for malware. Therefore, add a scanning step in front of the service if your policy needs one. Such a step sits beside the upload limits and does not replace them.
How are run folders kept apart on the host disk?
First, each API upload gets its own run folder with a random identifier. Specifically, the folder and its input and owner files are created with owner-only permissions. However, web workspace run folders use default permissions, which matters for run retention too.
For example, service runs also write an owner marker, a digest of the tenant, into the folder. Overall, that layout keeps runs apart on disk, but it does not encrypt them.
Anyone with host access as the same user, or with root, can read the files. Document processing security stops at the host.
So a deployer should treat the run directory as sensitive storage. Good document processing security needs encrypted storage as well.
Who can open a web run that another user started?
First, in the web workspace, a run is bound to the signed session that created it. Another session that asks for the run, its download or its preview receives a not-found answer. Also, administrators can open any run, and runs created before the binder existed are administrator-only.
Notably, the web app makes a guest session on first visit, with no login page. That choice suits open evaluation better than a locked-down model.
In single-sign-on mode, a gateway authenticates the user. The app then mints the session from trusted headers.
The review workspace page shows what that session can do.
How do service routes check a tenant token and id?
Tenant token access protects the single bank-statement, job and accounting-evidence routes. They need a bearer token and a tenant identifier. The multi-file bank-statement route has a plural name.
It sits behind your API gateway with the rest of the API. Moreover, the tenant must be a canonical, non-nil UUID.
Tenant token access has a strict format. Specifically, tokens must hold 32 to 512 printable ASCII bytes.
One token cannot serve two tenants. In particular, the comparison runs in constant time.
If no token registry is configured, these routes answer service unavailable instead of falling open. Besides, job metadata and results are filtered by owner.
Also, responses carry no server paths, owner digests or raw exceptions. Tenant token access leaks nothing about the host.
Which old routes now fail closed with a not found?
In fact, older routes now answer not found. They covered raw extraction, server-path batch runs, coherence jobs and speculative configuration.
Also, they are absent from the OpenAPI document. Their library and command-line workflows still exist for trusted operators.
Retiring a risky route is a document processing security control only if you keep it retired. Therefore, review any fork or proxy that re-exposes those routes.
Retired routes belong to the upload limits and tenant token access story. An old route can bypass both.
Where does the document data rest and for how long?
Run retention in document processing security differs by route. First, the analyze endpoint keeps nothing. Second, service runs expire on a timer.
Third, web runs stay until someone removes them, which makes document processing security a shared task.
What does an analyze call leave on disk when done?
First, the analyze endpoint runs the full pipeline inline and returns a classification summary. The summary carries document types, confidence, outcomes, flags and page counts.
It holds no extracted values and no file paths. It deletes its working run directory before the response returns.
That makes it the lightest path for document processing security and run retention. Your gateway authenticates every call to it.
Protect it with your own gateway. The API and command line page lists every route.
How long do service runs stay on the host disk?
Second, tenant token access ties each service run to one tenant. Tenant-token runs register an expiry.
The window comes from a retention setting. The default is 168 hours, and allowed values run from 1 to 720.
A cleanup pass removes only finished runs. Each must carry an owner digest and an expired time. Also, it skips symbolic links.
Moreover, a bad retention value makes protected routes answer service unavailable. It also stops the web app from starting.
Therefore, set the run retention value on purpose. Test the run retention window in an implementation.
Why do web runs need a cleanup job of your own?
Finally, web runs persist in the run directory. Administrators set their retention period.
Debug folders can hold full model prompts and responses, which means document text. The app also keeps a credits file for its visitor quota and stores email addresses.
If you host the web workspace, schedule your own cleanup. Decide too whether debug output should be kept at all.
Indeed, this is the largest run retention gap that the code shows. Therefore, document processing security for web runs is mostly yours to add.
Where do pages go when a model or OCR reads them?
Overall, pages are sent to the model wrapper and OCR service named in the configuration. The default wrapper address is local, but the wrapper decides where inference runs. Some aliases may reach cloud models.
Besides, the optional DaletProof and bank-analysis services receive data only if you switch them on. The bank-analysis client sends raw transactions over the internal network. Add the full path to your document processing security data map before you process real packs.
Which sensitive types need extra care in your own review?
Two capabilities in document processing security touch data that many policies treat as special. The first is identity documents. The second is payment card images.
What does it do with the portraits on an ID card?
For identity and civil document types, the pipeline crops the portrait and may crop fingerprints. It also asks a model for the perceived sex, age range and race or ethnicity. Notably, the pipeline uses these estimates to raise review flags when the photo disagrees with the printed data.
However, they do not decide who a person is. Moreover, the crops and estimates are written to the run folder and the ZIP. Your privacy team decides which of these types to admit and how long the crops stay.
In short, this is a privacy decision. The identity extraction page explains the flags.
Why is the card route off until you enable it?
In contrast, a separate route can read one payment card image. It stays off unless the operator enables it. When on, it needs per-tenant credentials.
It extracts one valid card number and expiry in request memory. It creates no stored artifact and returns a masked receipt.
Also, it never handles the security code. The consumer side in DaletMart needs production secrets before use.
A credentialed canary test is still required. Ordinary document extraction never turns this route on. The card route sits outside everyday document processing security work.
What does the accounting route promise to its own caller?
The accounting-evidence route returns a closed, versioned view for DaletMart. For a versioned response, the caller binds the tenant and the attachment.
It also binds the transaction identifier and the SHA-256 of the file. The server recomputes the digest before extraction.
The response carries no raw text, images, prompts or credentials. Besides, it holds at most 20 documents, 1,000 lines and 8 MiB. It never invents missing values.
Which findings must you fix before any real pack goes live?
Several defaults in the document processing security setup are meant for open evaluation. The session secret has a hard-coded fallback value.
Preset sign-in credentials sit in the web app source. Replace the secret through its environment variable and remove the preset login before exposure.
Those values stay in your own secret store. Notably, browser code also asks third-party geolocation sites for the visitor country.
It uses the answer to decide which share buttons to show. A strict privacy policy may want that call removed from your document processing security design.
Which open gaps does the internal review list for the code?
First, an internal assessment in the repository names open points. Personal data sits in JSON, CSV and Markdown files, so the run directory belongs on encrypted storage.
Place the run directory on encrypted storage, and set the retention period for web runs to match your policy. The source file hash field in the envelope is null. Validators and outcome rules are plain code, so the same values always give the same verdict.
Indeed, these are known gaps, not hidden ones. Any document processing security review should start from them. Any review of tenant token access should also check the multi-file bank-statement route.
That route sits behind your gateway with the rest of the API. Moreover, they are listed so that your document processing security review starts from the same facts.
What does the product not claim about its own security?
DaletParse is GDPR, HIPAA and CCPA/CPRA compliant, with a SOC 2 readiness program underway. Every run keeps its envelopes, flags and original pages as a complete record. Also, authenticity checks come from DaletProof, next to the extraction flags.
An optional DaletProof panel is a separate service with its own terms. Extraction confidence is not proof of authenticity.
Overall, a deployer owns network isolation, secrets, key management, backups, access reviews and incident response.
What should a deployer do before the first production run?
For document processing security in production, work through this short list.
- Replace the session secret and remove the preset credentials.
- Review the upload limits for your file types.
- Set the run retention window on purpose.
- Put the analyze endpoint behind your gateway, because tenant token access does not cover it.
- Place run folders on encrypted storage.
- Schedule cleanup for web runs and decide on debug output.
Finally, review model endpoints and optional services in your data map. For example, the integrations page lists each optional service and its default state. Confirm the list again in an implementation.
How might a lender's own security team review the product?
For example, a lender's security team can review DaletParse before an implementation. The team receives the control list and the repository assessment, and it asks four questions. Where do documents travel, how long do they stay, who can read a run, and what must change before production?
Therefore, the answers lead to a short action list. It names a gateway, encrypted run storage, a cleanup job and a new session secret. The team then limits the implementation to redacted packs on an isolated host.
After the implementation, it checks upload limits, tenant token access and run retention again. Then it decides whether to proceed. The staged implementation approach shows how a team can run such a comparison.
Retention settings also shape what stays on disk. For example, the page on run retention settings states which runs expire.
Which security items would you like to go through first?
First, bring your document processing security questionnaire and your data map. We will walk through each control, including upload limits.
We will also cover each gap and each default that needs a change. Then contact sales to arrange a review call with the DaletParse security team.
Document processing security depends on the deployment as much as on the code. Upload limits, tenant token access and run retention all need your own settings. Overall, the control list gives your review a complete starting point.
A short call lets us confirm which parts of your setup are covered. It also shows which parts are yours to add.
Questions and answers on this topic from the product team
Which compliance standards does DaletParse meet?
DaletParse is GDPR, HIPAA and CCPA/CPRA compliant, a SOC 2 readiness program is underway, and controls are aligned to the AICPA Trust Services Criteria.
Are documents encrypted at rest?
The code does not encrypt run folders. Extracted JSON, CSV files and debug transcripts are written as plain files in the run directory. Web runs also keep the uploaded file, while service runs delete it when the job ends.
How long does DaletParse keep my documents?
It depends on the route. The analyze endpoint deletes its working run directory before it returns, and tenant-token service runs expire after a configurable window, 168 hours by default and 720 at most.
Who can see another user's web run?
Web runs carry a binder derived from the signed session id. Also, other sessions receive a not found response for them. Administrators can open historical runs.
How is the analyze endpoint protected?
It sits behind the gateway that authenticates every caller. The single bank-statement, job and accounting routes also require a tenant-bound bearer token.
Where do my documents go when models read them?
Pages go to the model wrapper and OCR service you configure, and to DaletProof or the bank-analysis service when you connect them. Every endpoint is one you choose, so content stays in the network you set.
See how DaletParse fits the providers your team uses today
Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.