aboutsummaryrefslogtreecommitdiff
path: root/src/web/web_server.rs
Commit message (Collapse)AuthorAgeFilesLines
* add request context helperYureka2024-03-041-14/+15
|
* [header-override-650] implement header overriding in GetObject (fix #650)header-override-650Alex Auvolat2024-02-091-2/+20
|
* [dep-upgrade-202402] fix shutdown issue introduced when upgrading hyperdep-upgrade-202402Alex Auvolat2024-02-081-6/+6
|
* [dep-upgrade-202402] refactor http listener codeAlex Auvolat2024-02-071-56/+19
|
* [dep-upgrade-202402] migration to http/hyper 1.0 for k2v apiAlex Auvolat2024-02-051-1/+3
|
* [dep-upgrade-202402] wip: port to http/hyper crates v1Alex Auvolat2024-02-051-53/+66
|
* everywhere: support unix sockets when binding in various placesnetworkException2023-09-291-9/+49
| | | | | this patch implements binding to paths as a unix socket for generic server and web server.
* web_server.rs: handle error properly and refactorcompat/index-without-trailing-slashAlex Auvolat2023-08-281-23/+13
|
* support index on path missing a trailing slashQuentin Dufour2023-08-081-28/+102
|
* *: apply clippy recommendations.Jonathan Davies2023-05-091-1/+1
|
* web/web_server.rs: Handle X-Forwarded-For here too.Jonathan Davies2023-03-061-1/+14
|
* Fix duplicated content-type in error documentBaptiste Jonglez2023-01-291-1/+0
| | | | Fixes #492
* cargo2nix unstable (patched), rust 1.63.0, nixpkgs 22.05 (32-bit builds are ↵Alex Auvolat2022-10-141-1/+1
| | | | broken)
* Make all HTTP services optionnalAlex Auvolat2022-09-071-198/+211
|
* First version of admin API (#298)Alex2022-05-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Spec:** - [x] Start writing - [x] Specify all layout endpoints - [x] Specify all endpoints for operations on keys - [x] Specify all endpoints for operations on key/bucket permissions - [x] Specify all endpoints for operations on buckets - [x] Specify all endpoints for operations on bucket aliases View rendered spec at <https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/admin-api/doc/drafts/admin-api.md> **Code:** - [x] Refactor code for admin api to use common api code that was created for K2V **General endpoints:** - [x] Metrics - [x] GetClusterStatus - [x] ConnectClusterNodes - [x] GetClusterLayout - [x] UpdateClusterLayout - [x] ApplyClusterLayout - [x] RevertClusterLayout **Key-related endpoints:** - [x] ListKeys - [x] CreateKey - [x] ImportKey - [x] GetKeyInfo - [x] UpdateKey - [x] DeleteKey **Bucket-related endpoints:** - [x] ListBuckets - [x] CreateBucket - [x] GetBucketInfo - [x] DeleteBucket - [x] PutBucketWebsite - [x] DeleteBucketWebsite **Operations on key/bucket permissions:** - [x] BucketAllowKey - [x] BucketDenyKey **Operations on bucket aliases:** - [x] GlobalAliasBucket - [x] GlobalUnaliasBucket - [x] LocalAliasBucket - [x] LocalUnaliasBucket **And also:** - [x] Separate error type for the admin API (this PR includes a quite big refactoring of error handling) - [x] Add management of website access - [ ] Check that nothing is missing wrt what can be done using the CLI - [ ] Improve formatting of the spec - [x] Make sure everyone is cool with the API design Fix #231 Fix #295 Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/298 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* First implementation of K2V (#293)Alex2022-05-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Specification:** View spec at [this URL](https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/k2v/doc/drafts/k2v-spec.md) - [x] Specify the structure of K2V triples - [x] Specify the DVVS format used for causality detection - [x] Specify the K2V index (just a counter of number of values per partition key) - [x] Specify single-item endpoints: ReadItem, InsertItem, DeleteItem - [x] Specify index endpoint: ReadIndex - [x] Specify multi-item endpoints: InsertBatch, ReadBatch, DeleteBatch - [x] Move to JSON objects instead of tuples - [x] Specify endpoints for polling for updates on single values (PollItem) **Implementation:** - [x] Table for K2V items, causal contexts - [x] Indexing mechanism and table for K2V index - [x] Make API handlers a bit more generic - [x] K2V API endpoint - [x] K2V API router - [x] ReadItem - [x] InsertItem - [x] DeleteItem - [x] PollItem - [x] ReadIndex - [x] InsertBatch - [x] ReadBatch - [x] DeleteBatch **Testing:** - [x] Just a simple Python script that does some requests to check visually that things are going right (does not contain parsing of results or assertions on returned values) - [x] Actual tests: - [x] Adapt testing framework - [x] Simple test with InsertItem + ReadItem - [x] Test with several Insert/Read/DeleteItem + ReadIndex - [x] Test all combinations of return formats for ReadItem - [x] Test with ReadBatch, InsertBatch, DeleteBatch - [x] Test with PollItem - [x] Test error codes - [ ] Fix most broken stuff - [x] test PollItem broken randomly - [x] when invalid causality tokens are given, errors should be 4xx not 5xx **Improvements:** - [x] Descending range queries - [x] Specify - [x] Implement - [x] Add test - [x] Batch updates to index counter - [x] Put K2V behind `k2v` feature flag Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/293 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Fix some new clippy lintsfix-resyncAlex Auvolat2022-03-141-2/+1
|
* Add metrics to web endpointAlex Auvolat2022-03-141-4/+76
|
* More permissive OPTIONS on S3 APIv0.6.1better-corsAlex Auvolat2022-03-011-2/+2
|
* Process CORS earlier in pipelineAlex Auvolat2022-02-281-1/+1
|
* Multipart improvementsAlex Auvolat2022-01-241-3/+3
| | | | | - support part_number for HeadObject - add checks in complete_multipart_upload
* Handle OPTIONS on website endpointbucket-corsAlex Auvolat2022-01-241-3/+7
|
* Implement {Put,Get,Delete}BucketCors and CORS in generalAlex Auvolat2022-01-241-52/+60
| | | | | | - OPTIONS request against API endpoint - Returning corresponding CORS headers on API calls - Returning corresponding CORS headers on website GET's
* Make use of website config, return error document on errorAlex Auvolat2022-01-131-26/+102
|
* New buckets for 0.6.0: make bucket id a SK and not a HK, CLI updatesAlex Auvolat2022-01-041-1/+1
|
* New buckets for 0.6.0: small changesAlex Auvolat2022-01-041-2/+1
| | | | | | | | | | | | - Fix bucket delete - fix merge of bucket creation date - Replace deletable with option in aliases Rationale: if two aliases point to conflicting bucket, resolving by making an arbitrary choice risks making data accessible when it shouldn't be. We'd rather resolve to deleting the alias until someone puts it back.
* New buckets for 0.6.0: small fixes, including:Alex Auvolat2022-01-041-1/+1
| | | | | | | | - ensure bucket names are correct aws s3 names - when making aliases, ensure timestamps of links in both ways are the same - fix small remarks by trinity - don't have a separate website_access field
* Model changesAlex Auvolat2022-01-041-4/+12
|
* New model for bucketsAlex Auvolat2022-01-041-13/+20
|
* Improved handling of HTTP rangestrinity-1686a2021-11-291-0/+1
| | | | | | | | | | | - correct HTTP code when range syntax is invalid (fix #140) - when multiple ranges are given, simply ignore and send whole file Co-authored-by: Trinity Pointard <trinity.pointard@gmail.com> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/157 Reviewed-by: Alex <alex@adnab.me> Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
* add support for vhost-style s3 bucketTrinity Pointard2021-11-161-111/+3
|
* Fix clippy lints (fix #121)Alex Auvolat2021-10-261-4/+4
|
* fix clippy warnings on webTrinity Pointard2021-05-031-12/+12
|
* document web crateTrinity Pointard2021-04-271-0/+1
|
* add support for caching headersTrinity Pointard2021-03-181-1/+1
|
* Do not accept domains such as [hellofeature/websiteAlex Auvolat2021-01-151-5/+8
|
* Explicitly set code path unreachableQuentin2021-01-151-3/+1
|
* Behavior problem: do not panic anymore + add testsQuentin2021-01-151-5/+10
|
* Fix formattingQuentin Dufour2020-12-171-14/+14
|
* Web server access controlQuentin Dufour2020-12-171-0/+16
|
* Handle HEADQuentin2020-11-211-4/+8
|
* Use handle_getQuentin2020-11-211-121/+13
|
* We are able to serve a fileQuentin2020-11-211-5/+106
|
* Fix host to keyQuentin2020-11-211-5/+19
|
* Support punnycodeQuentin2020-11-201-1/+3
|
* Make it compile againQuentin2020-11-191-2/+3
|
* Build errorQuentin2020-11-111-3/+22
|
* Build path correctlyQuentin2020-11-111-4/+36
|
* WIP fetch objectQuentin2020-11-111-0/+7
|
* Add documentation to host_to_bucketQuentin2020-11-101-0/+6
|