Skip to content

fix: handle missing turnstile key#47

Open
duckyfuz wants to merge 1 commit into
mainfrom
fix/turnstile-fails-open
Open

fix: handle missing turnstile key#47
duckyfuz wants to merge 1 commit into
mainfrom
fix/turnstile-fails-open

Conversation

@duckyfuz
Copy link
Copy Markdown
Owner

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insecure-file-sharing-landing-page Ready Ready Preview, Comment Apr 29, 2026 2:10am

@github-actions
Copy link
Copy Markdown

Terraform Plan Results

Commit: 54bb9a2de14f979ca9820d01221b4a9f9f28bfee
Message: fix: reject uploads when turnstile secret key is missing

Show Plan Output
data.archive_file.lambda: Reading...
cloudflare_turnstile_widget.ifs_widget[0]: Refreshing state... [id=0x4AAAAAACZ8FGkiyBlJ5f7M]
data.archive_file.lambda: Read complete after 0s [id=3ee61c261d6f0a58f79cb5ae7965200ec0933a0a]
cloudflare_record.vercel_landing_cname[0]: Refreshing state... [id=09fda2364fd0bdf2c0a11c6702261752]
aws_acm_certificate.subdomain_cert[0]: Refreshing state... [id=arn:aws:acm:us-east-1:533267177082:certificate/7ec35bb5-81ab-441c-8ef0-4a0804a82e9d]
aws_acm_certificate_validation.cert[0]: Refreshing state... [id=0001-01-01 00:00:00 +0000 UTC]
cloudflare_record.acm_certificate_cname[0]: Refreshing state... [id=8fba275c16601a9e9facf00a351026c2]
aws_cloudfront_origin_access_identity.oai: Refreshing state... [id=E1CER2APENQ1UU]
aws_iam_policy.lambda_logging: Refreshing state... [id=arn:aws:iam::533267177082:policy/ifs_lambda_logging]
aws_iam_role.lambda_role: Refreshing state... [id=ifs_lambda_role]
aws_s3_bucket.main_bucket: Refreshing state... [id=ifs-storage-bucket]
aws_iam_role_policy_attachment.lambda_logs: Refreshing state... [id=ifs_lambda_role/arn:aws:iam::533267177082:policy/ifs_lambda_logging]
aws_s3_bucket_public_access_block.allow_public_acl: Refreshing state... [id=ifs-storage-bucket]
aws_iam_policy.allow_s3_access: Refreshing state... [id=arn:aws:iam::533267177082:policy/ifs_s3_access_policy]
aws_cloudfront_distribution.s3_distribution: Refreshing state... [id=E2C9XYLKDNE51M]
aws_s3_object.web_app_js: Refreshing state... [id=ifs-storage-bucket/app.dfdb24fb.js]
aws_s3_bucket_website_configuration.s3_site_config: Refreshing state... [id=ifs-storage-bucket]
aws_s3_bucket_lifecycle_configuration.one_day_lifetime: Refreshing state... [id=ifs-storage-bucket]
aws_s3_object.web_styles_css: Refreshing state... [id=ifs-storage-bucket/styles.5877cb1f.css]
aws_s3_bucket_policy.main_bucket_policy: Refreshing state... [id=ifs-storage-bucket]
aws_iam_role_policy_attachment.combined_policy_attachment: Refreshing state... [id=ifs_lambda_role/arn:aws:iam::533267177082:policy/ifs_s3_access_policy]
aws_s3_bucket_cors_configuration.allow_cors: Refreshing state... [id=ifs-storage-bucket]
cloudflare_record.cloudfront_to_subdomain_cname[0]: Refreshing state... [id=df1f447d6d68314b15b5e2ac8132a13b]
aws_lambda_function.upload_function: Refreshing state... [id=ifs_upload_function]
aws_cloudwatch_log_group.upload_function_log_group: Refreshing state... [id=/aws/lambda/ifs_upload_function]
aws_lambda_function_url.upload_function_url: Refreshing state... [id=ifs_upload_function]
aws_s3_object.web_index_html: Refreshing state... [id=ifs-storage-bucket/index.html]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # aws_lambda_function.upload_function will be updated in-place
  ~ resource "aws_lambda_function" "upload_function" {
        id                             = "ifs_upload_function"
      ~ last_modified                  = "2026-04-08T00:58:13.000+0000" -> (known after apply)
      ~ source_code_hash               = "yk8nD4qyosM1xNibaKRkznH23EH67TPL2xS2xkXw/VM=" -> "ilFuPWUqpX6cOLhypTU76nmSak1HqOlSEdy6ew74qz4="
        tags                           = {}
        # (30 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Saved the plan to: tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "tfplan"

@github-actions
Copy link
Copy Markdown

Preview Environment Ready

Preview URL https://d21jutm5g1r9l4.cloudfront.net
PR #47
Commit 54bb9a2

Preview environments are automatically destroyed when this PR is closed.

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

Successfully merging this pull request may close these issues.

1 participant