aboutsummaryrefslogtreecommitdiff
path: root/src/web
Commit message (Collapse)AuthorAgeFilesLines
* Make all HTTP services optionnalAlex Auvolat2022-09-072-199/+212
|
* Bump versions to 0.8.0 (compatibility is broken already)Alex Auvolat2022-09-061-5/+5
|
* First version of admin API (#298)Alex2022-05-242-28/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **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
|
* Bump version to 0.7 because of incompatible NetappAlex Auvolat2022-03-141-5/+5
|
* Add metrics to web endpointAlex Auvolat2022-03-142-4/+78
|
* Add tracing integration with opentelemetryAlex Auvolat2022-03-142-2/+2
|
* 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-042-18/+25
|
* Improved handling of HTTP rangestrinity-1686a2021-11-292-1/+11
| | | | | | | | | | | - 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>
* Improve how node roles are assigned in Garagev0.5-beta1Alex Auvolat2021-11-161-5/+6
| | | | | | | | | | | | | | | | | - change the terminology: the network configuration becomes the role table, the configuration of a nodes becomes a node's role - the modification of the role table takes place in two steps: first, changes are staged in a CRDT data structure. Then, once the user is happy with the changes, they can commit them all at once (or revert them). - update documentation - fix tests - implement smarter partition assignation algorithm This patch breaks the format of the network configuration: when migrating, the cluster will be in a state where no roles are assigned. All roles must be re-assigned and commited at once. This migration should not pose an issue.
* add support for vhost-style s3 bucketTrinity Pointard2021-11-162-112/+3
|
* Fix clippy lints (fix #121)Alex Auvolat2021-10-261-4/+4
|
* Improve CLI, adapt tests, update documentationAlex Auvolat2021-10-251-1/+3
|
* Improvements to CLI and various fixes for netapp versionAlex Auvolat2021-10-222-2/+4
| | | | Discovery via consul, persist peer list to file
* First port of Garage to NetappAlex Auvolat2021-10-221-5/+5
|
* Prepare for v0.3.0 and add migration path from v0.2.1.xv0.3.0Alex Auvolat2021-05-281-5/+5
|
* rename types to CamelCaseTrinity Pointard2021-05-031-3/+2
|
* fix clippy warnings on webTrinity Pointard2021-05-032-12/+13
|
* make most requested changesTrinity Pointard2021-04-272-2/+1
|
* document api crateTrinity Pointard2021-04-271-1/+1
|
* document web crateTrinity Pointard2021-04-273-2/+13
|
* attempt at documenting table crateTrinity Pointard2021-04-271-1/+2
|
* update to v0.2.1v0.2.1release-v0.2.1Alex Auvolat2021-03-191-5/+5
|
* Update Cargo.toml files with AGPL license infov0.2.0Alex Auvolat2021-03-181-5/+7
|
* Merge pull request 'add support for caching headers' (#49) from ↵Alex2021-03-181-1/+1
|\ | | | | | | | | | | trinity-1686a/garage:cache-headers into master Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/49
| * add support for caching headersTrinity Pointard2021-03-181-1/+1
| |
* | Prepare for release 0.2Alex Auvolat2021-03-181-5/+5
|/
* Update dependenciesAlex Auvolat2021-03-161-2/+1
|
* WIP migrate to tokio 1Alex Auvolat2021-03-151-1/+1
|
* Bump everything to 0.1.1Alex Auvolat2021-01-151-2/+2
|
* 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
|
* Simplify Error fileQuentin2021-01-151-17/+1
|
* Remove unused dependenciesQuentin2021-01-151-19/+0
|
* Fix formattingQuentin Dufour2020-12-171-14/+14
|
* Web server access controlQuentin Dufour2020-12-171-0/+16
|
* Fix wrong http status codeQuentin2020-11-211-0/+1
|
* Handle HEADQuentin2020-11-211-4/+8
|