WIP: Adding ente documentation #826

Draft
tcheronneau wants to merge 2 commits from tcheronneau/garage:main into main
First-time contributor

Adding the documentation to configure ente-server (museum) with garage.

Adding the documentation to configure ente-server (museum) with garage.
tcheronneau added 1 commit 2024-05-24 07:03:58 +00:00
Adding ente documentation
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
b98c90f045
maximilien added 1 commit 2024-05-26 06:18:23 +00:00
ente: add more details on bucket configuration
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
7e7cb6412d
add more configuration with details for options

Signed-off-by: maximilien <maximilien@deuxfleurs.fr>
Owner

Maybe it's worth merging this in its current state even if it is not perfectly complete? @tcheronneau @maximilien

Maybe it's worth merging this in its current state even if it is not perfectly complete? @tcheronneau @maximilien
kaiyou requested changes 2024-09-04 20:21:53 +00:00
kaiyou left a comment
Contributor

Thank you really much for the quick guide, which helped me avoid one or two pitfalls when setting up Ente backed up with Garage.

I did find a couple issues however, which are mentionned in the review. The biggest one is the CORS configuration, which currently prevents clients from uploading files.

Thank you really much for the quick guide, which helped me avoid one or two pitfalls when setting up Ente backed up with Garage. I did find a couple issues however, which are mentionned in the review. The biggest one is the CORS configuration, which currently prevents clients from uploading files.
@ -571,0 +578,4 @@
```bash
garage bucket create ente
garage key create ente-key
garage bucket allow ente --read --write --key ente-key
Contributor

For the CORS setup to work, the key needs to be --owner as well, at least temporarily.

For the CORS setup to work, the key needs to be `--owner` as well, at least temporarily.
@ -571,0 +584,4 @@
We also need to setup some CORS rules to allow the Ente frontend to access the bucket:
```bash
export CORS='{"CORSRules":[{"AllowedHeaders":["*"],"AllowedMethods":["GET"],"AllowedOrigins":["*"]}]}'
Contributor

Maybe we could be a bit more restrictive in AllowedHeaders even if I cannot think of a threat model where this is important.

However, we must:

Maybe we could be a bit more restrictive in `AllowedHeaders` even if I cannot think of a threat model where this is important. However, we must: - allow at least `PUT`, `POST` and `DELETE` in addition to `GET` so that Ente can upload and delete objects - allow at least `Etag` in `ExposeHeaders` so Ente can read the response Etag when uploading multipart objects (https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManageCorsUsing.html#cors-expose-headers, Ente is doing multipart above 5 x 4MB chunks, so >20MB)
@ -571,0 +600,4 @@
local-domain-suffix: "@example.com" # Your domain
local-domain-value: 123456 # Custom One-Time Password since we are not sending mail by default
key:
# You might want to change those next 3 which are the default one
Contributor

I would say you must, especially the jwt secret.

I would say you `must`, especially the jwt secret.
@ -571,0 +646,4 @@
b2-eu-cen: # Don't change this key, it seems to be hardcoded
key: <keyID>
secret: <keySecret>
endpoint: garage:3900
Contributor

We should be using the public garage URL here, so Ente can generate proper pre-signed URLs, as used by the clients.

We should be using the public garage URL here, so Ente can generate proper pre-signed URLs, as used by the clients.
All checks were successful
ci/woodpecker/pr/debug Pipeline was successful
Required
Details
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:tcheronneau-main
git checkout tcheronneau-main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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: Deuxfleurs/garage#826
No description provided.