Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about storage mode and attachments #79

Open
dyihoon90 opened this issue Sep 13, 2021 · 4 comments
Open

Question about storage mode and attachments #79

dyihoon90 opened this issue Sep 13, 2021 · 4 comments

Comments

@dyihoon90
Copy link

dyihoon90 commented Sep 13, 2021

In this SDK's readme the following is mentioned:

Attachments are downloaded using S3 pre-signed URLs, with a expiry time of one hour. You must call decryptWithAttachments within this time window, or else the URL to the encrypted files will become invalid.

Is this one hour expiry relevant for Email mode only, or does it apply for using the webhook with Storage mode as well?

Thanks!

@mantariksh
Copy link
Contributor

The one hour expiry is actually only relevant to storage mode, as webhooks are only available for storage mode. It has no relevance to email mode as email mode attachments are simply included as attachments in the email to the admin. Hope that helps!

@dyihoon90
Copy link
Author

I see, thanks for the quick reply.
A follow-up question:
In storage mode, I understand the storage of form data is permanent. Is the storage of attachments permanent as well?

If it is permanent, what are the means to retrieve and decrypt the stored encrypted attachments afterwards.
e.g. Can we self-gen another S3 pre-signed URL to download the attachment?

Thanks!

@liangyuanruo
Copy link
Contributor

liangyuanruo commented Oct 27, 2021

@dyihoon90 we do store the attachments encrypted, however we currently don't offer any APIs to retrieve your own attachments only.

@vasanthsreeram
Copy link

@dyihoon90 we do store the attachments encrypted, however we currently don't offer any APIs to retrieve your own attachments only.

I am currently working on a project called Tiger Trail and it uses this SDK to retrieval the data. and some of the data is actually images and it would be super useful if the webhook actually sent the s3 link that can be used to retrieve the image from the s3 database, because if not I have to convert the unit8array to image and then store it at my own s3 bucket for easy retrieval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants