f7b409f114
use a NaiveDate in data model, it serializes to string (iso 8601 format)
2023-08-30 11:24:01 +02:00
abf011c290
lifecycle: implement validation into garage's internal data structure
2023-08-29 18:22:03 +02:00
8041d9a827
s3: add xml structures to serialize/deserialize lifecycle configs
2023-08-29 17:44:17 +02:00
2e90e1c124
Merge branch 'main' into next
2023-08-29 11:32:42 +02:00
cece1be1bb
bump version to 0.8.3
2023-08-28 13:17:26 +02:00
9b4ce4a8ad
admin api: refactor caddy check api code
2023-08-28 12:17:10 +02:00
Jonathan Davies
f607ac6792
garage/api: cargo: Updated idna dependency to 0.4.
2023-08-28 09:30:27 +00:00
24e533f262
support {s3,web}.root_domains in /check endpoint
2023-08-08 11:05:42 +02:00
Jonathan Davies
59bfc68f2e
post_object.rs: Fixed typos / grammar.
2023-08-01 15:31:39 +01:00
Jonathan Davies
b94ba47f29
api/Cargo.toml: Updated roxmltree to 0.18.
2023-06-24 14:15:26 +01:00
8ef42c9609
admin docs: reformatting, key admin: add check
2023-06-14 17:19:25 +02:00
a83a092c03
admin: uniformize layout api and improve code
2023-06-14 17:12:37 +02:00
7895f99d3a
admin and cli: hide secret keys unless asked
2023-06-14 16:56:15 +02:00
4a82f6380e
admin api: move all endpoints to v1/ by default (v0/ still supported)
2023-06-14 14:15:51 +02:00
28cc9f178a
admin api: make name optionnal for CreateKey
2023-06-14 13:56:37 +02:00
35c108b85d
admin api: switch GetClusterHealth to camelcase ( fix #381 again)
2023-06-14 13:53:19 +02:00
52376d47ca
admin api: change cluster status/layout to use lists and not maps ( fix #377 )
2023-06-14 13:45:27 +02:00
5670367126
multipartupload in test: add forgotten timestamp
2023-06-13 23:10:46 +02:00
90b2d43eb4
Merge branch 'main' into next
2023-06-13 17:14:11 +02:00
bf19a44fd9
admin API: add missing camelCase conversions ( fix #381 )
2023-06-13 16:15:50 +02:00
942c1f1bfe
multipart uploads: save timestamp
2023-06-13 10:48:22 +02:00
a6cc563bdd
UploadPart: automatic cleanup of version (and reference blocked) when interrupted
2023-06-09 16:23:37 +02:00
c14d3735e5
Add test for multipart uploads and fix part renumbering
2023-06-09 16:23:37 +02:00
412ab77b08
comments and clippy lint fixes
2023-06-09 16:23:37 +02:00
511e07ecd4
fix mpu counter (add missing workers) and report info at appropriate places
2023-06-09 16:23:37 +02:00
8644376ac2
fix test; simplify code
2023-06-09 16:23:37 +02:00
7ad7dae5d4
fix s3 list test
2023-06-09 16:23:37 +02:00
82e75c0e29
Adapt S3 API code to use new multipart upload models
...
- Create and PutPart
- completemultipartupload
- upload part copy
- list_parts
2023-06-09 16:23:37 +02:00
Jonathan Davies
8a945ee996
payload.rs: Surround / in inverted commas.
2023-06-06 16:26:06 +01:00
Jonathan Davies
180992d0f1
payload.rs: Fixed typo in error message.
2023-06-06 16:25:29 +01:00
746b0090e4
k2v signature verification: double urlencoding (see comment in source code)
2023-05-18 11:18:06 +02:00
Jonathan Davies
c783194e8b
*: apply clippy recommendations.
2023-05-09 20:49:34 +01:00
351d734e6c
Merge branch 'main' into next
2023-05-09 12:40:08 +02:00
d2deee0b8b
Declare garage crates using workspace.dependencies
...
This will allow to really disable "sled" feature without declaring
`default-features = false` in every Cargo.toml where garage_db and
garage_model is used.
See https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table
2023-05-09 08:46:15 +00:00
fa78d806e3
Merge branch 'main' into next
2023-04-25 12:34:26 +02:00
Jonathan Davies
c168383113
api/Cargo.toml: Bumped quick-xml to version 0.26.
2023-04-23 20:14:28 +01:00
0a1ddcf630
Prepare for v0.8.2
2023-03-13 18:46:31 +01:00
Jonathan Davies
9ea154ae9c
admin/cluster.rs: Added rust_version.
2023-03-10 14:46:54 +00:00
Jonathan Davies
e4e5196066
api/generic_server.rs: Use new handle_forwarded_for_headers() function.
2023-03-06 11:43:35 +00:00
Jonathan Davies
94d70bec69
generic_server.rs: Added support for logging X-Forwarded-For header.
...
Fixes : #460
2023-02-04 15:19:21 +00:00
Jonathan Davies
1b6ec74748
error.rs: Corrected error messages to say unexpected scope.
2023-02-02 16:20:31 +00:00
Jonathan Davies
9c354f0a8f
Improved bucket authorization response strings.
2023-01-29 20:34:41 +00:00
Jonathan Davies
004bb5b4f1
api_server.rs: Adapted to use query string per Caddy upstream change.
2023-01-29 20:34:37 +00:00
8e93d69974
More clippy fixes
2023-01-26 17:26:32 +01:00
590a0a8450
Merge branch 'main' into k2v-watch-range-2
2023-01-26 16:46:40 +01:00
Jonathan Davies
20c1cdf662
Cargo.toml: Loosen tracing dependency to just 0.1.
2023-01-26 11:13:11 +00:00
Jonathan Davies
63e22e71f2
api/Cargo.toml: Updated idna from 0.2 to 0.3.
2023-01-26 11:13:11 +00:00
Jonathan Davies
36944f1839
Cargo.toml: Updated base64 from 0.13 to 0.21.
2023-01-26 11:13:07 +00:00
Jonathan Davies
93c3f8fc8c
api/Cargo.toml: Updated url from 2.1 to 2.3.
2023-01-23 19:16:58 +00:00
Jonathan Davies
1c435fce09
api/Cargo.toml: Updated httpdate from 0.3 to 1.0.
2023-01-23 19:16:54 +00:00
Jonathan Davies
dead123892
api/Cargo.toml: Updated pin-project to 1.0.12.
2023-01-23 18:39:35 +00:00
Jonathan Davies
100b01e859
Implemented website hosting authorization endpoint.
...
Fixes : #468
2023-01-13 09:38:58 +00:00
cbfae673e8
PollRange & PollItem: min timeout = 1 sec
2023-01-11 15:03:08 +01:00
bba13f40fc
Correctly return bad requests when seeh marker is invalid
2023-01-11 12:27:19 +01:00
b83517d521
Implement PollRange API endpoint
2023-01-10 15:22:25 +01:00
a48e2e0cb2
K2V: Subscription to ranges of items
2023-01-10 10:30:59 +01:00
570e5e5bbb
Merge branch 'main' into next
2023-01-04 11:34:43 +01:00
0650a43cf1
PutObject: better cleanup on Drop (incl. when request is interrupted in the middle)
2023-01-03 17:05:17 +01:00
426d8784da
cleanup
2023-01-03 15:08:37 +01:00
6775569525
Bump everything to v0.8.1
2023-01-02 14:15:33 +01:00
1af4a5ed56
Merge pull request 'Fix router keyword handling ( fix #442 )' ( #446 ) from router-keywords-fix into main
...
Reviewed-on: Deuxfleurs/garage#446
2022-12-15 08:40:26 +00:00
a0abf41762
Fix router keyword handling ( fix #442 )
2022-12-12 12:05:37 +01:00
2ac75018a1
Properly enforce allow_create_bucket
2022-12-12 12:03:54 +01:00
2c2e65ad8b
Merge commit 'ec12d6c' into next
2022-12-11 18:41:15 +01:00
533afcf4e1
simplify
2022-12-11 18:17:08 +01:00
5ea5fd2130
Always return 200 OK on /v0/health, reinstate admin api doc as draft and complete it
2022-12-11 18:11:28 +01:00
d7868c48a4
Separate /health (simple text answer) and /v0/health (full json answer, authenticated)
2022-12-05 15:38:32 +01:00
280d1be7b1
Refactor health check and add ability to return it in json
2022-12-05 15:28:57 +01:00
2065f011ca
Implement /health admin API endpoint to check node health
2022-12-05 14:59:15 +01:00
dc50fa3b34
Fix typo in admin API on BucketInfo
2022-11-11 16:56:56 +01:00
217abdca18
Fix HTTP return code
2022-11-08 15:38:53 +01:00
d75b37b018
Return more info when layout's .check() fails, fix compilation, fix test
2022-11-08 14:58:39 +01:00
ea5afc2511
Style improvements
2022-11-07 20:11:30 +01:00
28d7a49f63
Merge branch 'main' into optimal-layout
2022-11-07 12:20:59 +01:00
5670599372
Merge pull request 'Use status code 204 No Content for empty responses' ( #403 ) from tobikris/garage:http-no-content into main
...
Reviewed-on: Deuxfleurs/garage#403
2022-10-18 14:20:44 +00:00
7865003323
Use status code 204 No Content for empty responses
2022-10-17 10:55:26 +02:00
8d04ae7014
cargo2nix unstable (patched), rust 1.63.0, nixpkgs 22.05 (32-bit builds are broken)
2022-10-14 14:30:48 +02:00
4abab246f1
cargo fmt
2022-10-10 17:21:13 +02:00
ceac3713d6
modifications in several files to :
...
- have consistent error return types
- store the zone redundancy in a Lww
- print the error and message in the CLI (TODO: for the server Api, should msg be returned in the body response?)
2022-10-05 15:29:48 +02:00
1778e4b318
Fix span name for api server requests
2022-09-26 16:21:30 +02:00
782630fc27
Initialize metrics exporter earlier ( fix #389 )
2022-09-20 17:50:22 +02:00
5d4b6f2173
Faster GetObject workflow for getting entire objects
2022-09-19 12:19:59 +02:00
76f42a1a2b
Properly return HTTP 204 when deleting non-existent object ( fix #227 )
2022-09-14 17:07:55 +02:00
38be811b1c
Fix clippy lint that says we should implement Eq
2022-09-13 16:08:00 +02:00
44733474bb
Remove/change println! in server code ( fix #358 )
2022-09-13 16:01:55 +02:00
ff30891999
Use streaming block API for get with Range requests
2022-09-13 15:13:07 +02:00
7f54706b95
Merge branch 'lx-perf-improvements' into netapp-stream-body
2022-09-08 15:50:56 +02:00
d9d199a6c9
Merge branch 'main' into lx-perf-improvements
2022-09-08 15:49:17 +02:00
ceb1f0229a
Move version back into util
2022-09-07 18:36:46 +02:00
2559f63e9b
Make all HTTP services optionnal
2022-09-07 17:54:16 +02:00
28d86e7602
Report build features in garage --help
2022-09-07 17:05:21 +02:00
db61f41030
Move GIT_VERSION injection later in build chain to reduce build times
2022-09-07 11:59:56 +02:00
907054775d
Faster copy, better get error message
2022-09-06 22:25:23 +02:00
431dee050f
Remove opentelemetry-otlp dep in api/
2022-09-06 17:25:44 +02:00
48ffaaadfc
Bump versions to 0.8.0 (compatibility is broken already)
2022-09-06 16:47:56 +02:00
ea36b9ff90
Allow building without Prometheus exporter (/metrics endpoint)
...
prometheus and opentelemetry-prometheus add 7 extra dependencies in
total and increases the size of the garage binary by ~7 % (with
fat LTO).
2022-09-06 01:15:09 +02:00
e7af006c1c
Make OTLP exporter optional via feature "telemetry-otlp"
...
opentelemetry-otlp add 48 (!) extra dependencies and increases the
size of the garage binary by ~11 % (with fat LTO).
2022-09-06 01:14:47 +02:00
13b5f28c7e
Make use of BytesBuf from new Netapp
2022-09-02 13:46:42 +02:00
bc977f9a7a
Update to Netapp with OrderTag support and exploit OrderTags
2022-09-01 12:58:20 +02:00
68087ee13d
Fix clippy
2022-07-29 12:25:03 +02:00