Archive destinations
VaultLens never keeps your archive files. Each CSV is made in memory and saved straight to a place you own. You choose the place in the archive setup, under Where should archive files go?
What happens before anything is deleted
- VaultLens builds the CSV for a table and saves it to your destination.
- The destination confirms the file arrived intact. VaultLens checks it against the provider’s checksum or hash.
- VaultLens records which record IDs went into the file.
- If you use analytics, the records are marked archived in your database.
- Files and images on the records are attached to the VaultLens Archived Files table in Knack, and checked.
- Only then are the records deleted from Knack, or their flag set back to No.
If the destination can’t confirm the file, the run fails and nothing changes in Knack. VaultLens never overwrites a file.
Use Test mode to write files without changing anything in Knack. Turn it off once the files look right.
In this Knack app
Each file is attached to a record in a VaultLens Archive Runs table. Click Set up the archive tables for me to create it. See Set up the archive flag and archive tables.
Knack lets anyone who has a file’s link download it, without signing in, even when the field is set to secure. Keep the archive table and its links private, and use your own bucket or drive for sensitive data. HIPAA workspaces can’t use this option.
Your own cloud bucket
Choose Your own cloud bucket, then a Provider. VaultLens only gets permission to add files. It can’t read, list or delete them.
Google Cloud Storage
- Enter the Bucket name and, optionally, a Folder.
- Give the VaultLens service account the Storage Object Creator role on the bucket, with a condition that limits it to your workspace’s folder (
vaultlens-<your workspace ID>/). The page shows the exactgcloudcommand with your bucket and workspace filled in. - Click Test connection. VaultLens writes a small test file.
No keys are needed. VaultLens checks that the folder condition is in place and won’t write to a bucket without it, so no other workspace can use your grant. Files go to your workspace folder, then your chosen folder.
Amazon S3 (beta)
- Enter the Bucket name, Folder and Region.
- Create an IAM user or role key that can only put objects in that folder (the page shows the policy). If the bucket uses SSE-KMS, also allow
kms:GenerateDataKeyon the key. - Enter the Access key ID and Secret access key, then click Test connection.
Azure Blob Storage (beta)
- Enter the Container URL and Folder.
- Create a container SAS token with only Create and Write permissions and an expiry date. Tokens that allow reading, listing or deleting are refused.
- Enter the SAS token and click Test connection.
Keys and tokens are stored in Google Secret Manager and never shown again.
Your cloud drive
Choose Your cloud drive, pick Google Drive or OneDrive, personal or Microsoft 365 (beta), enter a New folder name, and click Connect Google Drive or Connect OneDrive. Sign in in the pop-up.
- Google Drive: VaultLens creates the folder in your My Drive and can only see the files it creates there.
- OneDrive: VaultLens creates the folder under Apps/VaultLens Studio and can only use that app folder.
To stop, click Disconnect drive. Your files stay in your drive. Cloud drives aren’t available in HIPAA workspaces.
Beta destinations
Amazon S3, Azure Blob Storage and OneDrive are built to each provider’s published specification and tested against an emulator, but haven’t been used with a live account yet. Run in test mode first and check the files arrive.
HIPAA workspaces
HIPAA workspaces must use their own cloud bucket, covered by a Business Associate Agreement with the cloud provider. See HIPAA.