Skip to content

Enable Header Image Upload to Portal via Cloudflare R2 - #231

Open
Ethan-Chew wants to merge 7 commits into
mainfrom
r2-integration
Open

Ethan-Chew wants to merge 7 commits into
mainfrom
r2-integration

Conversation

@Ethan-Chew

Copy link
Copy Markdown
Member

Summary

Only allow GeeksHacking Portal administrators to upload a Header Image upon:

  1. Creation of Hackathon / Workshop
  2. Update of Hackathon / Workshop Image

Header Image URLs are exposed through the Portal API; But, R2 Links are only accessible through *.geekshacking.com domains.

CleanShot 2026-11-18 at 16 48 58@2x CleanShot 2026-11-18 at 16 48 26@2x

@Ethan-Chew Ethan-Chew self-assigned this Nov 18, 2026
Copilot AI balanced review requested due to automatic review settings November 18, 2026 08:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Ethan-Chew
Ethan-Chew requested a review from qin-guan November 18, 2026 08:51
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
portal-oidc-web-playground 50545ca Commit Preview URL

Branch Preview URL
Nov 18 2026, 02:07 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
portal 50545ca Commit Preview URL

Branch Preview URL
Nov 18 2026, 02:05 PM

Comment thread GeeksHackingPortal.AppHost/AppHost.cs Resolved
Copilot AI balanced review requested due to automatic review settings November 18, 2026 11:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new Cloud Run revision can fail deployment because it unconditionally references a secret version that neither the stack nor the deployment workflow provisions.

5 open issues

Review effort: Balanced

Comment on lines +595 to +596
Secret = r2WriteSecrets.SecretId,
Version = "latest",
}

stream.Position = 0;
var newKey = await storage.UploadAsync(
Comment thread GeeksHackingPortal.AppHost/AppHost.cs Outdated
Comment on lines +42 to +46
if (
!string.IsNullOrWhiteSpace(
builder.Configuration["Parameters:r2-bucket-name"] ?? builder.Configuration["Parameters:r2_bucket_name"]
)
)
return (await response.Content.ReadFromJsonAsync<HackathonResponse>())!;
}

[Test]
Comment on lines +119 to +123
public async Task Upload_WhenStorageNotConfigured_ReturnsServiceUnavailable()
{
var hackathon = await CreateHackathonAsync();

var response = await AuthenticatedClient.HttpClient.PutAsync(
@Ethan-Chew
Ethan-Chew requested a review from qin-guan November 18, 2026 14:06

This branch has not been deployed

No deployments
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.

3 participants