Support CORS container for CORS settings #212

Open
opened 2025-02-13 11:00:00 +00:00 by alexvanin · 0 comments
Owner

Context

In #158 we've introduces CORS settings in configuration. As a next step we want to reuse same generic CORS settings for containers across all FrostFS gateways, including S3 Gateway. See more in TrueCloudLab/frostfs-s3-gw#641

Proposal

Consider existing CORS configuration as an override for new CORS settings mechanism. New CORS settings mechanism consist of having separate CORS container with CORS objects inside. Format of the CORS object is defined in S3 Gateway.

We need to:

  1. Define CORS container in a config
  2. Support the search of CORS object in the container
  3. Apply CORS headers based on the data in the CORS object the same way it is done in S3 Gateway
  4. Override these settings if cors config values are defined
# Context In #158 we've introduces CORS settings in configuration. As a next step we want to reuse same generic CORS settings for containers across all FrostFS gateways, including S3 Gateway. See more in https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/issues/641 # Proposal Consider existing CORS configuration as an override for new CORS settings mechanism. New CORS settings mechanism consist of having separate CORS container with CORS objects inside. Format of the CORS object is defined in S3 Gateway. We need to: 1. Define CORS container in a config 2. Support the search of CORS object in the container 3. Apply CORS headers based on the data in the CORS object the same way it is done in S3 Gateway 4. Override these settings if `cors` config values are defined
mbiryukova was assigned by alexvanin 2025-02-17 12:38:23 +00:00
alexvanin added this to the v0.33.0 milestone 2025-02-27 08:22:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-http-gw#212
No description provided.