Add support X-Frostfs-S3-VHS and X-Frostfs-Servername headers #449

Merged
r.loginov merged 1 commit from r.loginov/frostfs-s3-gw:feature/vhs_header into feature/virtual-hosted-style 2024-08-16 12:41:05 +00:00
Member
No description provided.
r.loginov self-assigned this 2024-08-01 14:38:05 +00:00
r.loginov added 3 commits 2024-08-01 14:38:09 +00:00
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
[#446] Add tests for address style middleware
All checks were successful
/ DCO (pull_request) Successful in 1m8s
/ Vulncheck (pull_request) Successful in 1m17s
/ Builds (1.21) (pull_request) Successful in 1m26s
/ Builds (1.22) (pull_request) Successful in 1m24s
/ Lint (pull_request) Successful in 2m5s
/ Tests (1.21) (pull_request) Successful in 1m46s
/ Tests (1.22) (pull_request) Successful in 1m41s
94070b107b
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
[##] Add support header for vhs and servername
Some checks failed
/ DCO (pull_request) Failing after 1m9s
/ Vulncheck (pull_request) Successful in 1m15s
/ Builds (1.21) (pull_request) Successful in 1m23s
/ Builds (1.22) (pull_request) Successful in 1m28s
/ Lint (pull_request) Successful in 2m1s
/ Tests (1.21) (pull_request) Successful in 1m38s
/ Tests (1.22) (pull_request) Successful in 1m33s
745a562848
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
r.loginov force-pushed feature/vhs_header from 745a562848 to a7187ad956 2024-08-01 14:40:34 +00:00 Compare
alexvanin changed title from WIP: Add support X-Frostfs-S3-VHS and X-Frostfs-Servername headers to WIP: Add support X-Frostfs-S3-VHS and X-Frostfs-Servername headers 2024-08-02 08:12:39 +00:00
alexvanin changed target branch from master to feature/virtual-hosted-style 2024-08-02 08:12:40 +00:00
r.loginov changed title from WIP: Add support X-Frostfs-S3-VHS and X-Frostfs-Servername headers to Add support X-Frostfs-S3-VHS and X-Frostfs-Servername headers 2024-08-02 08:19:26 +00:00
dkirillov approved these changes 2024-08-05 09:34:05 +00:00
@ -742,1 +739,3 @@
| `namespaces` | `map[string]bool` | yes | | A map in which the keys are the name of the namespace, and the values are the flag responsible for enabling VHS for the specified namespace. |
| Parameter | Type | SIGHUP reload | Default value | Description |
|---------------------|-------------------|---------------|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| `enabled` | `bool` | yes | `false` | Enables the use of virtual host addressing for banquets at the application level. |
Member

banquets means buckets?

`banquets` means `buckets`?
dkirillov marked this conversation as resolved
@ -743,0 +740,4 @@
|---------------------|-------------------|---------------|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| `enabled` | `bool` | yes | `false` | Enables the use of virtual host addressing for banquets at the application level. |
| `vhs_header` | `string` | yes | `X-Frostfs-S3-VHS` | Header for determining whether VHS is enabled for the request. |
| `servername_header` | `string` | yes | `X-Frostfs-Servername` | Header for determining servername. |
Member

Please add this parameters in the example above

Please add this parameters in the example above
dkirillov marked this conversation as resolved
r.loginov force-pushed feature/vhs_header from a7187ad956 to e906ec99de 2024-08-06 06:02:02 +00:00 Compare
dkirillov reviewed 2024-08-06 06:41:42 +00:00
@ -742,1 +741,3 @@
| `namespaces` | `map[string]bool` | yes | | A map in which the keys are the name of the namespace, and the values are the flag responsible for enabling VHS for the specified namespace. |
| Parameter | Type | SIGHUP reload | Default value | Description |
|---------------------|-------------------|---------------|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
| `enabled` | `bool` | yes | `false` | Enables the use of virtual host addressing for buckets at the application level. |
Member

Please, reformat table.

diff --git a/docs/configuration.md b/docs/configuration.md
index 3747c406..2a2dd113 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -740,7 +740,7 @@ vhs:
 
 | Parameter           | Type              | SIGHUP reload | Default value          | Description                                                                                                                                  |
 |---------------------|-------------------|---------------|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
-| `enabled`           | `bool`            | yes           | `false`                | Enables the use of virtual host addressing for buckets at the application level.                                                            |
+| `enabled`           | `bool`            | yes           | `false`                | Enables the use of virtual host addressing for buckets at the application level.                                                             |
 | `vhs_header`        | `string`          | yes           | `X-Frostfs-S3-VHS`     | Header for determining whether VHS is enabled for the request.                                                                               |
 | `servername_header` | `string`          | yes           | `X-Frostfs-Servername` | Header for determining servername.                                                                                                           |
 | `namespaces`        | `map[string]bool` | yes           |                        | A map in which the keys are the name of the namespace, and the values are the flag responsible for enabling VHS for the specified namespace. |

Please, reformat table. ```diff diff --git a/docs/configuration.md b/docs/configuration.md index 3747c406..2a2dd113 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -740,7 +740,7 @@ vhs: | Parameter | Type | SIGHUP reload | Default value | Description | |---------------------|-------------------|---------------|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------| -| `enabled` | `bool` | yes | `false` | Enables the use of virtual host addressing for buckets at the application level. | +| `enabled` | `bool` | yes | `false` | Enables the use of virtual host addressing for buckets at the application level. | | `vhs_header` | `string` | yes | `X-Frostfs-S3-VHS` | Header for determining whether VHS is enabled for the request. | | `servername_header` | `string` | yes | `X-Frostfs-Servername` | Header for determining servername. | | `namespaces` | `map[string]bool` | yes | | A map in which the keys are the name of the namespace, and the values are the flag responsible for enabling VHS for the specified namespace. | ```
r.loginov force-pushed feature/vhs_header from e906ec99de to 2997613002 2024-08-06 12:02:24 +00:00 Compare
dkirillov approved these changes 2024-08-06 12:50:32 +00:00
r.loginov merged commit 2997613002 into feature/virtual-hosted-style 2024-08-16 12:41:05 +00:00
r.loginov deleted branch feature/vhs_header 2024-08-16 12:41:07 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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-s3-gw#449
No description provided.