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

Bug: Production profile images "expire" and return 403 forbidden on Cloudflare R2 #1642

Open
zachgoll opened this issue Jan 20, 2025 · 1 comment
Labels
🐛 Bug Something isn't working Hosted Hosted app only

Comments

@zachgoll
Copy link
Collaborator

Describe the bug
A clear and concise description of what the bug is.

Image

In production, Rails ActiveStorage has an expiry bug when generating pre-signed URLs with R2 storage, which causes profile images to be blocked with a 403 forbidden error shortly after changing the image.

To Reproduce
Steps to reproduce the behavior:

  1. Change profile image
  2. Wait a day or two
  3. Observe missing image

Expected behavior
A clear and concise description of what you expected to happen.

Profile images should display indefinitely.

What version of Maybe are you using?

Hosted only.

What operating system and browser are you using?
The more info the better.

Screenshots / Recordings
If applicable, add screenshots or short video recordings to help show the bug in more detail.

Image

@zachgoll zachgoll added 🐛 Bug Something isn't working Hosted Hosted app only labels Jan 20, 2025
@zachgoll
Copy link
Collaborator Author

Profile images seem to be working now, so unclear whether this was some sort of throttling implemented by Cloudflare or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working Hosted Hosted app only
Projects
None yet
Development

No branches or pull requests

1 participant