Privacy and preparation
Dataset sample access expiry: how to limit and revoke a sample
By SourceX Editorial · Reviewed by Noah Loul ·
9 sections
Short answer
Limit a dataset sample by sharing one approved, hashed package with named people through a method that expires on its own, set to the evaluation window rather than the tool's maximum. Keep logs on, send keys separately, and revoke early by deleting the object, rotating the signing key or removing the share. Expiry stops new access only, so close out with a test and written deletion confirmation.
Checklist
Dataset sample access expiry
Key takeaways
- A sample link is bearer access: anyone holding it can use it until it expires or is switched off.
- Signed URLs on S3, Cloud Storage and Azure user delegation SAS last at most seven days; named-person shares can run longer with an expiration date.
- Set the expiry from the evaluation plan, and reissue access rather than stretching one link.
- Hash the approved package so both parties can confirm the recipient evaluated exactly that file.
- Expiry never reaches downloaded copies, so the close-out needs a failed-access test and a written deletion confirmation.
Why does a sample link outlive the deal it was sent for?
A sample link outlives the deal because most sharing links are bearer access: whoever holds the link can open the file until it expires or is switched off, regardless of who it was sent to. Google's documentation says this directly for Cloud Storage signed URLs: anyone in possession of the URL can use it while it is active. Forwarded emails, pasted chat messages and shared notes all carry the link with them.
The second reason is that expiry stops future access, not past copies. Once a reviewer downloads the sample, the file sits on their laptop, in a notebook environment or in a team drive, and no link setting reaches it. That is why the control that matters most is the decision you make before sending: view only, or a copy.
So treat a sample as a small delivery, not an attachment. It needs an approved version, a named recipient, an end date set in the system rather than in an email, a record of who opened it, and a close-out step that confirms the access ended and any copy was deleted. The checklist below turns that into a routine one person can run.
Which sharing method fits a sample, and how long can its access last?
Pick the method by asking two questions: can the system enforce an end date on its own, and can you end access early without waiting for that date? The common options answer them differently, and the published limits below come from each vendor's own documentation, checked on the date of this article.
Signed or presigned object URLs are short-lived by design. Amazon S3 presigned URLs signed with Signature Version 4 last at most seven days, the S3 console caps them at 12 hours, and a URL signed with temporary credentials stops working when those credentials expire. Cloud Storage V4 signed URLs also top out at 7 days. Azure user delegation SAS tokens are limited to seven days too.
Named-person shares in collaboration tools last longer and are easier to manage for a multi-week evaluation. Google Drive lets eligible work or school accounts set an expiration date on a person's access, within one year. SharePoint and OneDrive administrators can require Anyone links to expire within a set number of days. A supervised viewing session, where the reviewer reads records on screen and nothing is downloaded, has no link to expire at all.
| Method | Longest access the system allows | How to end it early | Best fit |
|---|---|---|---|
| Amazon S3 presigned URL | 7 days with SigV4; 12 hours from the console; shorter if signed with temporary credentials | Delete or move the object; a bucket policy using s3:signatureAge can cap signature age | One-off download of a small, approved file |
| Cloud Storage V4 signed URL | 7 days | Rotate the signing key or delete the object | One-off download when your data already sits in Google Cloud |
| Azure user delegation SAS | 7 days | Revoke user delegation keys (all of them for the account, after a caching delay) | Download from a storage account used only for samples |
| Google Drive share to a named person | An expiration date within one year (eligible work or school accounts) | Remove the person's access | Multi-week review by named reviewers |
| SharePoint or OneDrive Anyone link | The number of days the admin policy requires | Delete the link or shorten the policy | Avoid for samples unless policy forces a short expiry |
| Supervised view-only session | The length of the session | End the session | Sensitive records where no copy should leave |
What should the sample access and revocation checklist include?
The checklist has ten controls across four stages: approve, send, monitor and close. Each control names the evidence to keep, because the point is not only to limit access but to be able to show later what was shared, with whom, for how long and how it ended. Copy it into the ticket or record you use for the sample.
Keep the evidence in one place, named with the sample ID. When a buyer later licenses the full dataset, or a dispute arises, the sample record is the first thing counsel or a privacy reviewer will ask for.
Two of the controls do most of the work. Least-necessary content limits what can leak if everything else fails, and setting expiry in the system rather than in a reminder removes the most common failure, which is a link nobody remembered to turn off. If you can only adopt part of the checklist at first, start with those two and the package hash.
When the same buyer asks for a second sample, open a new record with a new ID rather than adding files to the first. Each package then has one hash, one recipient list and one end date, and the history of what the buyer has seen stays readable.
| Stage | Control | Evidence to keep | Owner |
|---|---|---|---|
| Approve | Freeze the sample as one versioned package with an ID, prepared exactly as a delivery would be | Sample ID, file list, SHA-256 of the package, approver name and date | Data owner |
| Approve | Least-necessary content: only the fields and record count the stated test needs | Field list with the reason each field is included; redaction method and version | Data owner and privacy reviewer |
| Approve | Signed evaluation terms in place before anything is sent | Signed NDA or evaluation license reference | Legal |
| Send | Named recipients, not a team alias | Recipient names, work emails and organization | Sender |
| Send | Expiry set in the system, in UTC, no longer than the evaluation window | Screenshot or export of the link or share settings showing the end date | Sender |
| Send | Key separation: decryption key or password sent on a different channel from the link | Channel used for each, and time sent | Sender |
| Monitor | Access logging switched on before the link goes out | Log configuration, then the access log entries for the sample | IT or cloud admin |
| Monitor | Recipient confirms receipt and the package hash | Written confirmation quoting the SHA-256 value | Recipient |
| Close | Access ended at expiry or earlier, then tested | Time revoked and a failed test request after revocation | Sender |
| Close | Recipient confirms deletion of downloaded copies and derived files | Signed deletion confirmation naming locations checked | Recipient |
How do you choose the dataset sample access expiry date?
Set the expiry from the evaluation plan, not from the tool's maximum. Ask the buyer which tests they will run and how long each takes, add a short buffer, and make that the access window. A team that needs three days to profile fields does not need a link that lives for a week.
At a glance
How do you choose the dataset sample access expiry date
When the evaluation is longer than a signed URL can last, reissue rather than stretch. A fresh seven-day URL each week keeps every link short-lived and gives you a natural checkpoint: if the buyer has gone quiet, you simply do not reissue. For a review that runs a month, a named-person share with an expiration date is cleaner than four URLs.
Write the end date in UTC on the sample record and in the evaluation terms, and make the two match. If the contract says evaluation ends on the 30th and the share expires on the 45th, the share is what actually governs access. Where the buyer asks for more time, extend by issuing new access with a new record line, so the log shows a decision rather than a quiet change.
- Under 24 hours: a quick format check or a live walkthrough; use a presigned URL with an hours-long expiry.
- Two to seven days: field profiling and label checks; one signed URL or SAS token sized to the window.
- Two to six weeks: a structured evaluation by named reviewers; a named-person share with an expiration date, or weekly reissued URLs.
- Open-ended: not a sample. Move to a signed license with delivery terms before granting more access.
How do both parties verify access limits and the exact package received?
Both parties verify the package by comparing one hash and verify the access limits by comparing settings and logs. Before sending, compute a SHA-256 digest of the sample archive and record it. NIST's Secure Hash Standard describes exactly this use: digests are used to detect whether a message has changed since the digest was generated. The recipient computes the same digest on what they downloaded and quotes it back in writing.
A matching hash closes the most common later argument, which is whether the buyer evaluated the file you approved or an earlier draft someone forwarded. If the digests differ, stop and resend; do not let an evaluation run on an unknown file.
For access limits, keep the evidence the systems already produce. Export the share or link settings showing the end date at the moment you send. Turn on access logging before the link goes out, because some logs are not on by default: AWS CloudTrail, for example, does not record data events such as S3 object reads unless you add them to a trail or event data store. In collaboration tools, use the admin audit log your plan provides.
At close-out, ask the recipient to confirm deletion of downloaded copies and anything derived from them, such as profiling outputs that quote records. That confirmation is a statement, not proof; the stronger evidence is that the copy never left your systems, which is why view-only routes exist for sensitive samples.
How do you revoke a sample before it expires?
Revoke a sample by removing what the link points to or by invalidating what signed it, then test that access actually fails. Each method has its own lever, and some levers are broader than they look.
For S3, deleting or moving the object ends any presigned URL that pointed to it, and a bucket policy using the s3:signatureAge condition can deny presigned requests whose signature is older than a set age; AWS documents that this condition can shorten validity but never extend it. For Cloud Storage, rotating the key that signed the URL ends it early. For Azure, revoking user delegation keys invalidates every SAS signed with them, which is why samples should live in a storage account used for nothing else, and Microsoft notes there may be a caching delay before revocation takes effect.
For named shares, remove the person's access. In Google Drive, when temporary access expires the person's permission reverts to whatever they have on the parent folder, so keep samples in a folder the recipient cannot otherwise reach. For SharePoint and OneDrive, delete the link; shortening the admin policy also updates existing links to the shorter period.
- Record the time and reason for revocation in the sample record.
- Apply the method's lever: delete or move the object, rotate the signing key, revoke delegation keys or remove the share.
- Request the old link from an outside network and save the failed response.
- Check the access log for any reads after the intended end time.
- Ask the recipient for written deletion confirmation of downloaded copies and derived files.
- Close the record only when all five items are in it.
Illustrative worked example: a two-week sample with one exception
Illustrative example, not a real company or transaction. A field service company with about 300 employees agrees to let an AI developer evaluate 500 redacted work orders before discussing a license. The evaluation plan names two reviewers and ten working days.
The data owner freezes the package as sample WO-S1, records its SHA-256, and has the privacy reviewer confirm the redaction method matches what a delivery would use. Legal confirms the signed evaluation terms. Because the data already sits in S3, the sender plans two presigned URLs with seven-day expiries, the second issued only after the first week's checks are logged, enables CloudTrail data events for read activity on the sample prefix, and sends the archive password by phone, not in the email with the link.
Here is the exception. On day six the buyer asks for two more weeks. No single presigned URL can last that long, and stretching the evaluation was not in the plan. The owner keeps to the planned second URL, declines a third, offers instead a two-hour supervised session for the remaining questions, and records the decision. When the ten-day window closes, the owner deletes the object, tests that the old URL fails, finds no reads after the window in the log, and receives a signed deletion confirmation naming both reviewers' laptops and the shared notebook workspace.
The limit of this approach is visible in the example: the owner can prove when access ended and what was downloaded, but cannot inspect the reviewers' laptops. That residual risk is why the sample held only redacted records and the fields the test needed.
Which requests should pause a sample before anything is sent?
Stop and narrow the sample, or bring in counsel, privacy or security review, whenever the sample's risk grows faster than the evaluation's need for it. The triggers below are the common ones; each is a reason to pause sending, not a judgment that the deal cannot happen.
- The buyer asks for unredacted records, identifiers or free-text fields the stated test does not need.
- The sample would include personal data, health, financial or employee records, or data from customers whose contracts restrict sharing.
- The buyer wants to train or fine-tune on the sample, which is a license question, not an evaluation one.
- The recipient list grows beyond the named reviewers, or a link is found forwarded or posted.
- The digest the recipient quotes does not match the approved package.
- Access logs show reads after the end date or from unexpected networks.
- The evaluation keeps extending; at that point a signed license with delivery terms is the safer frame.
Sample controls alongside a signed SourceX scope
Sample controls sit alongside, not in place of, the scope a record owner signs with SourceX. The owner settles what is in scope and executes the agreement before a single file moves, and the rights review, preparation and delivery steps are SourceX's part of the work.
Qualification does not need a sample either; SourceX opens with a short assessment of the company, and nothing is uploaded for it.
Frequently asked questions
Can I revoke an S3 presigned URL before it expires?
There is no switch that cancels one URL, but you can make it useless. Deleting or moving the object ends access through any URL pointing to it, and a bucket policy with the s3:signatureAge condition can deny signatures older than a set age. URLs signed with temporary credentials also stop working when those credentials expire.
Does an expired sample link delete the copies people downloaded?
No. Expiry stops new access through the link; it does not reach files already saved on a laptop or in a team drive. That is why the checklist ends with a written deletion confirmation, and why sensitive samples are better shown in a supervised view-only session.
How long should dataset sample access last?
As long as the agreed evaluation needs plus a short buffer, and no longer. A format check needs hours, field profiling a few days, and a structured review by named people a few weeks. If access keeps being extended, move to a signed license instead of a longer sample.
Should the password be sent with the sample link?
No. Send the link and the decryption key or password on separate channels, such as email for the link and a phone call or separate message for the key. If one message is forwarded or exposed, the other part is still needed to read the sample.
What evidence shows who opened a sample?
The access logs of the system that served it, provided logging was on before the link went out. Some logs are off by default; AWS CloudTrail, for example, records S3 object reads only when data events are added. Keep the log entries with the sample record.
Sources
- Amazon S3 presigned URLs created with SigV4 can be valid for at most seven days, the S3 console allows at most 12 hours, and a URL signed with temporary credentials stops working when those credentials expire. Source
- An S3 bucket policy can use the s3:signatureAge condition to deny presigned requests whose signature is older than a set age; it can shorten validity but never extend it. Source
- Cloud Storage V4 signed URLs can be valid for at most 7 days, anyone holding the URL can use it while it is active, and it stops working early if the signing key is rotated. Source
- An Azure user delegation SAS is valid for at most seven days; revoking the user delegation keys invalidates every SAS signed with them, after a possible caching delay. Source
- SharePoint and OneDrive administrators can require Anyone links to expire within a set number of days, and shortening the setting updates existing links to the shorter period. Source
- Google Drive lets eligible work or school accounts add an expiration date to a named person's access, within one year, after which access reverts to what the person has on the parent folder. Source
- AWS CloudTrail does not log data events such as S3 object reads by default; they must be added to a trail or event data store. Source
- NIST FIPS 180-4 defines SHA-256, whose digests are used to detect whether a message has changed since the digest was generated. Source
See if your company qualifies
A short company assessment. No data uploads are needed.