All resources

Data handling and enterprise security controls

Read · 3 min

This guide covers the operational details: when tokenization happens in a run, how downloads are issued and logged, what deleting a matter actually removes, and the extra security controls Enterprise adds on top.

Tokenization is the first pipeline stage, before anything else touches your files. Petria extracts working text from each exhibit (PDF text layer, tables, Word, and optical character recognition for scans and images), then tokenizes both the document text and the structured intake data on the matter. The token map is stored under that job's prefix, and every downstream stage works from tokens. De-tokenization runs at the end, immediately before delivery, so real names appear in your deliverables and not in the stages between. Your original uploads stay in the matter untouched throughout.

Downloads are issued as time-limited links rather than permanent URLs. Each link expires after a set window, one hour by default, so a link pasted into an email will stop working. Every issuance is recorded with the file, the deliverable type, and the expiry, and the download count on the deliverable is incremented. Requests are checked against your firm's storage prefix, so a link cannot reach another firm's files.

Deleting a matter is irreversible and is not the same as archiving. Archiving takes a matter off your active list but keeps its files. Delete removes every stored object under the matter, removes its job records, and clears the evidence manifest, leaving the matter marked deleted. Trying to delete an already-deleted matter returns an error rather than running twice. One deliberate exception: the audit trail survives a delete. Audit rows are kept, with the matter and job identifiers stripped from them, so you retain a record that actions occurred without retaining the client linkage. If your ethics or retention policy requires proof of destruction, that trail is where it lives. Practical sequence for closing a file: download and store your deliverables in your own document system first, archive the matter while the client relationship is active, then delete when your retention period ends. Once deleted, the deliverables cannot be re-downloaded.

Enterprise adds more controls, each managed by a firm admin. Single sign-on (SAML) through your firm's identity provider is coming soon; until then your team signs in with a password, a passkey or an authenticator app. Audit logs record the actions that matter across your firm, including sign-in and sign-out, matter creation and deletion, job submission, cancellation, and deletion, criteria confirmation and section regeneration, evidence uploads and deletions, download link issuance, structure approval, branding uploads, team invites and removals, settings changes, and client portal activity. The log view filters by action, by actor, and by date range, and pages through results; you can export what you are looking at as CSV or XLSX for a compliance request, or export straight into your configured storage once that storage is set up.

Two notes on what the audit log is and is not. It records that an action happened, by whom, and against what, which is what a client audit or an ethics review typically wants. It is not a copy of the documents, and it is not a substitute for your own document management system. Enterprise firms also run on an isolated job queue, so your work is not waiting behind other firms.

Your own AWS account (Enterprise)

An Enterprise firm can keep matter files in its own AWS account instead of Petria's storage, and can also run Petria's AI there. A firm admin sets this up in Workspace settings, under Data, Your own AWS account, before the firm's first real matter. The sample matter always stays in Petria's storage.

Connect your AWS account opens the AWS console with a ready-made CloudFormation setup. It creates a private S3 bucket with versioning and public access blocked, a KMS key with rotation, and two roles that only Petria's two service roles can use, and only with your firm's external ID: a storage role that can read and write that bucket and nothing else, and an AI role (petria-ai followed by your firm's ID) that can call Amazon Bedrock, Comprehend and Translate and cannot read the bucket. Tick the acknowledgment box and choose Create stack. When the stack finishes, it tells Petria what it created. Petria writes, reads and deletes a test file before it saves the connection, and the card updates by itself. The stack is created in the AWS account your browser is signed into, and the card shows that account's ID once connected.

If your IT team deploys infrastructure through its own review, choose Download the template. You get the template and a parameters file filled in for your firm. Deploy it, then enter the role, bucket and key from its outputs under Set up by hand. Set up by hand also works with roles and a bucket you build yourself: they must trust the two Petria roles shown there and require the external ID shown there. Petria issues that ID and you cannot choose it, so no other firm can point Petria at your roles. To bring an existing petria-storage stack up to date, for example to add the AI role, download the template from the card, then in CloudFormation update the stack, replace its template with the downloaded file and keep the parameters as they are.

To cut Petria off, delete the petria-storage stack, or remove the roles. Access stops at once. The bucket and key are kept, with your files in them. To rule out AI in your account entirely, set AllowAiRole to false on the stack, which removes the AI role. Test connection on the card reruns the checks at any time.

Choose what runs in your account: Files, or Files and AI. Files keeps matter files and drafts in your bucket, encrypted under your key. Files and AI also runs Petria's AI calls in your account and region, billed to you: Claude, Titan embeddings and Cohere Rerank on Amazon Bedrock, plus language detection and translation. Petria uses the AI role only after a firm admin chooses Files and AI, and you can switch either way at any time with Update AWS connection; nothing changes in AWS. Petria never falls back to its own account: until every model answers, the card shows Connected, AI not ready and AI work stops. Before you choose Files and AI, an admin of your AWS account does the following once, in the region where the stack lives:

  • In Amazon Bedrock, turn on access to Claude Sonnet 5.5, Claude Haiku 5.5, Amazon Titan Text Embeddings V2 and Cohere Rerank 3.5.
  • Call each model once from AWS CloudShell. The first call subscribes your account to models sold through AWS Marketplace, which Petria's roles cannot do for you. For Cohere Rerank: aws bedrock-runtime invoke-model --region us-west-2 --model-id cohere.rerank-v3-5:0 --cli-binary-format raw-in-base64-out --body '{"query":"test","documents":["a"],"top_n":1,"api_version":2}' out.json. For Claude, run this once with --model-id global.anthropic.claude-sonnet-5-5 and once with global.anthropic.claude-haiku-5-5: aws bedrock-runtime invoke-model --region us-west-2 --model-id global.anthropic.claude-haiku-5-5 --cli-binary-format raw-in-base64-out --body '{"anthropic_version":"bedrock-2023-05-31","max_tokens":1,"messages":[{"role":"user","content":"ok"}]}' out.json. Use your stack's region in place of us-west-2.
  • In Service Quotas, check the Amazon Bedrock tokens-per-minute quotas for Claude Sonnet 5.5 and Claude Haiku 5.5. New accounts can start at 0; request an increase if they do.
  • If a Claude call answers that the model is not available for this account, AWS has not opened that model to your account yet, and turning on access or calling it again will not change that. Ask AWS for access through a support case in the AWS console (Support, Create case), naming the model and region.
  • Then choose Files and AI and Save, or click Test connection if you already have. The status turns Connected once every model answers.