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

REST file handling and SMTP automation block attachments #13403

Merged
merged 86 commits into from
Apr 22, 2024

Conversation

PClmnt
Copy link
Collaborator

@PClmnt PClmnt commented Apr 4, 2024

Description

Merging base feature branch of 2 PRs into master:

Feature branch env

Feature Branch Link

Launchcontrol

  • Adds the ability for users to retrieve files using an external query and store them temporarily for use in Budibase
  • Update the Send Email block within Automations to allow for the adding of attachments.

@PClmnt PClmnt added feature-branch Release this PR code into a feature branch and removed feature-branch Release this PR code into a feature branch labels Apr 8, 2024
@mike12345567 mike12345567 added the firestorm Data/Infra/Revenue Team label Apr 10, 2024
@PClmnt PClmnt marked this pull request as ready for review April 18, 2024 15:41
@PClmnt PClmnt requested a review from a team as a code owner April 18, 2024 15:41
@PClmnt PClmnt requested review from mike12345567 and removed request for a team April 18, 2024 15:41
packages/backend-core/src/objectStore/objectStore.ts Outdated Show resolved Hide resolved
packages/backend-core/src/objectStore/utils.ts Outdated Show resolved Hide resolved
packages/server/src/integrations/rest.ts Outdated Show resolved Hide resolved
@@ -162,6 +164,42 @@ export async function sendEmail(
contents: opts?.contents,
}),
}
if (opts?.attachments) {
const attachments = await Promise.all(
opts.attachments?.map(async attachment => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to worry for now, but this can cause some kind of DDoS if we don't limit the attachment length

PClmnt and others added 4 commits April 22, 2024 15:37
* Updating TTL handling in upload functions

* describe ttl type

* account for ttl creation in existing buckets and update types

* fix tests
@PClmnt PClmnt enabled auto-merge (squash) April 22, 2024 15:25
@PClmnt PClmnt merged commit a4c0328 into master Apr 22, 2024
10 checks passed
@PClmnt PClmnt deleted the feat/automations-and-rest-file-handling branch April 22, 2024 15:30
@github-actions github-actions bot locked and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-branch Release this PR code into a feature branch firestorm Data/Infra/Revenue Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants