Skip to content

Conversation

@Samk13
Copy link
Member

@Samk13 Samk13 commented Oct 6, 2025

❤️ Thank you for your contribution!

Description

  • Added instructions for configuring CORS in NetApp StorageGrid
    to enable file uploads and previews.
  • Applying S3 configs seems to not be sufficent for StorageGrid

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

  • I'm aware of the code of conduct.
  • I've created logical separate commits and followed the commit message format.
  • I've targeted the master branch.
  • If this documentation change impacts the current release of InvenioRDM, I will backport it to the production branch following approval or indicate to a maintainer that it should be backported.

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

* Added instructions for configuring CORS in NetApp StorageGrid
   to enable file uploads and previews.
* applying S3 configs seems to not be sufficent for StorageGrid
@m6121
Copy link
Contributor

m6121 commented Nov 5, 2025

We had the same problem and provided the following PR: #867 However, based on our testing, such extensive permissions were not necessary. Can anyone verify this?

@Samk13
Copy link
Member Author

Samk13 commented Nov 5, 2025

Thanks for the cross-reference @m6121

To clarify: the config in your PR is correct for AWS S3, which is more permissive and doesn’t require declaring every method/header explicitly for multipart uploads. Having said that, StorageGrid behaves differently; it enforces stricter CORS validation and fails multipart/pre-signed upload flows unless all relevant methods and headers (e.g., HEAD, POST, DELETE, ETag) are explicitly allowed.

So your configuration is valid for AWS, and the expanded example here is needed for StorageGrid and similar S3-compatible backends. We'll keep both documented so users on different platforms have clear guidance.

Happy to hear others’ experiences as well.

@Samk13 Samk13 marked this pull request as ready for review November 5, 2025 13:41
@m6121
Copy link
Contributor

m6121 commented Nov 5, 2025

Hi @Samk13 Actually, we also use Netapp Storagegrid and failed in enabling multipart upload due to the missing permissions. However, instead of enabling all methods, we tried to find a working solution which was the result in our PR (just adapted to the existing AWS configuraiton style). This setup seems to work in our tests with our netapp storage. However, we are not exactly sure, if the other methods in this PR HEAD, POST and DELETE are also needed.

@Samk13
Copy link
Member Author

Samk13 commented Nov 5, 2025

Interesting, thanks for the details! I'll check with our DevOps team on whether those extra methods were required in our setup or if a narrower rule set worked for us too.
Good to compare notes.

@m6121
Copy link
Contributor

m6121 commented Nov 5, 2025

That's great. We are also not sure whether there are other side-effects of these more restrictive rules. Looking forward to your feedback.

@lindhe
Copy link

lindhe commented Nov 5, 2025

I'll check with our DevOps team on whether those extra methods were required in our setup or if a narrower rule set worked for us too.

Hello, I'm the DevOps team! ✋ 😅

I need to double check something in our proxy first, just so I don't confuse matters more than necessary. BRB.

@lindhe
Copy link

lindhe commented Nov 7, 2025

Confusingly, we have two different policies in place. I'll have to experiment next week to verify what's really required.

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