aboutsummaryrefslogtreecommitdiff
path: root/src/web/web_server.rs
Commit message (Collapse)AuthorAgeFilesLines
* Error refactoringAlex Auvolat2022-05-131-4/+2
|
* 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
|
* Panic when it is a logical errorQuentin2020-11-101-4/+1
|
* Rewrite for clarityQuentin2020-11-101-8/+11
|
* Fix indent againQuentin2020-11-101-6/+11
|
* Fixes due to integration testsQuentin2020-11-101-2/+1
|
* Rewrite authority to host while staying on stackQuentin2020-11-101-21/+22
|
* Fix formattingQuentin2020-11-101-35/+35
|
* Extract bucketQuentin2020-11-101-5/+50
|
* Log hostQuentin2020-11-081-2/+2
|
* Add some documentationQuentin2020-11-081-1/+9
|
* Parse host headerQuentin2020-11-081-3/+68
|
* Skeleton to the new web APIQuentin2020-11-021-0/+37