Skip to content

Commit 5b2bd87

Browse files
authored
Merge pull request #172 from cryptomator/feature/guides
Feature: Add Hub guides
2 parents 2c3c53c + 4b306fa commit 5b2bd87

30 files changed

Lines changed: 305 additions & 36 deletions

‎docs/hub/access-vault.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: access-vault
33
title: Working with Vaults
4-
sidebar_position: 6
4+
sidebar_position: 7
55
---
66

77
# Working with Vaults

‎docs/hub/admin.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: admin
33
title: Admin
4-
sidebar_position: 8
4+
sidebar_position: 9
55
---
66

77
# Admin
@@ -13,7 +13,7 @@ The license is bound to the instance and cannot be transferred to another instan
1313
Every license has a number of seats and a validity period.
1414
As an Hub administrator, you can view license information in the administration area.
1515

16-
<Image src="/img/hub/admin-area-license.png" alt="Administration area" width="1440" height="574" />
16+
<Image src="/img/hub/admin-area-license.png" alt="Administration area" width="2880" height="1800" />
1717

1818
### What Is a Seat? {/* #what-is-a-seat */}
1919

@@ -106,7 +106,7 @@ The logs are displayed in a structured table containing the following columns:
106106
- **Event** – The type of event that occurred.
107107
- **Details** – Additional information about the event.
108108

109-
<Image src="/img/hub/auditlogs-overview.png" alt="Audit Logs Table View" width="1238" height="858" />
109+
<Image src="/img/hub/auditlogs-overview.png" alt="Audit Logs Table View" width="2880" height="1720" />
110110

111111
### Filtering Audit Logs {/* #filtering-audit-logs */}
112112

@@ -155,7 +155,7 @@ Visit [cryptomator.org](https://cryptomator.org/hub/) for more information about
155155

156156
This configuration defines default [Emergency Access](emergency-access.mdx) values for new or updated vaults.
157157

158-
<Image src="/img/hub/admin-emergency-access.png" alt="Emergency Access" width="1440" height="658" />
158+
<Image src="/img/hub/admin-emergency-access.png" alt="Emergency Access" width="2880" height="1800" />
159159

160160
Activate `Enable Emergency Access` and configure:
161161

‎docs/hub/deployment/_category_.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"label": "Deployment Cookbook",
3-
"position": 12,
3+
"position": 13,
44
"link": {
55
"type": "doc",
66
"id": "hub/deployment/index"

‎docs/hub/deployment/index.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import DocCardList from '@theme/DocCardList';
66

77
# Deployment Cookbook
88

9-
This section collects recipes for running Cryptomator Hub in production. If you just want to try Hub, start with the [Quick Start](../quick-start.mdx) instead.
9+
This section collects recipes for running Cryptomator Hub in production. If you just want to try Hub, start with the [Quick Start](../quick-start.mdx) instead. For an end-to-end walkthrough from deployment to backups, see the [Self-Hosting Guide](../guides/self-hosting-guide.mdx).
1010

1111
:::tip
1212
Cryptomator Hub is also offered as a hosted solution, including 99.5%-uptime guarantee and regular backups! Visit [cryptomator.org](https://cryptomator.org/for-teams/) for more information.

‎docs/hub/emergency-access.mdx‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: emergency-access
33
title: Emergency Access
4-
sidebar_position: 9
4+
sidebar_position: 10
55
---
66

77
# Emergency Access
@@ -15,15 +15,15 @@ Its process requires a group of trusted users (the "council") to approve the rec
1515
When enough approvals are collected, the emergency change is completed and vault management access is restored.
1616
Technically, this is implemented using key splitting based on **[Shamir's Secret Sharing](https://en.wikipedia.org/wiki/Shamir%27s_secret_sharing)**.
1717

18-
## Set Up Emergency Access
18+
## Set Up Emergency Access {/* #set-up-emergency-access */}
1919

2020
The feature can be activated for new and existing vaults:
2121

2222
* **New vaults:** During vault creation, use the `Define Emergency Access Conditions` step.
2323
For the full workflow, see [Vault Management](vault-management.mdx#create-a-vault).
2424
* **Existing vaults:** Open `Vault Details` and [configure Emergency Access](vault-management.mdx#emergency-access-council).
2525

26-
## Starting a Recovery Process
26+
## Starting a Recovery Process {/* #starting-a-recovery-process */}
2727

2828
To start, open the `Emergency Access` page, select the vault, and start the desired process.
2929

@@ -52,7 +52,7 @@ Starting a process automatically approves the process.
5252
:::
5353

5454

55-
### Choose Vault Members
55+
### Choose Vault Members {/* #choose-vault-members */}
5656

5757
The `Choose Vault Members` process allows you to select new vault `Owners` or `Members`.
5858

@@ -61,15 +61,15 @@ Users that are no longer part of the vault are shown as `Removed`.
6161
<Image src="/img/hub/emergency_access_change_permissions_start.png" alt="Emergency Access Vault List" width="2560" height="1080" />
6262

6363

64-
### Change Emergency Access Council
64+
### Change Emergency Access Council {/* #change-emergency-access-council */}
6565

6666
The `Change Emergency Access Council` process allows you to select a new council.
6767

6868
The minimum required number of members is configured in the [Admin settings](admin.mdx#emergency-access).
6969

7070
<Image src="/img/hub/emergency_access_change_council_start.png" alt="Emergency Access Vault List" width="2560" height="1080" />
7171

72-
## Approve a Recovery Process
72+
## Approve a Recovery Process {/* #approve-a-recovery-process */}
7373

7474
To view or approve running Emergency Access processes, open the `Emergency Access` list.
7575
If an Emergency Access process is running for a vault, the vault is displayed with a process button.
@@ -97,7 +97,7 @@ You can also inspect details before approving. Hover (or click) the segment ring
9797

9898
<Image src="/img/hub/emergency_access_vault_list_hover_process.png" alt="Emergency Access Vault List Hover Process" width="2560" height="1080" />
9999

100-
## Complete a Recovery Process
100+
## Complete a Recovery Process {/* #complete-a-recovery-process */}
101101

102102
As soon as enough shares are available, the process button in the `Emergency Access` vault list shows `Complete now`.
103103

@@ -114,14 +114,14 @@ Results by type:
114114

115115
After successful completion, the process is removed.
116116

117-
## Abort a Recovery Process
117+
## Abort a Recovery Process {/* #abort-a-recovery-process */}
118118

119119
Running processes can be canceled in the dialog using `Abort this Process`.
120120

121121
<Image src="/img/hub/emergency_access_vault_list_change_council_abort_dialog.png" alt="Emergency Access Vault List Abort Dialog" width="2560" height="1080" />
122122

123123

124-
## Typical States and Notes
124+
## Typical States and Notes {/* #typical-states-and-notes */}
125125

126126
The following warning states can appear in the Emergency Access list:
127127

@@ -132,6 +132,6 @@ The following warning states can appear in the Emergency Access list:
132132
* `No Redundancy`: No fault tolerance in the council.
133133
What to do: Increase the number of council members or reduce the required threshold so one unavailable user does not block recovery.
134134

135-
## Audit Log Events
135+
## Audit Log Events {/* #audit-log-events */}
136136

137137
See [Emergency Access Audit Log events](admin.mdx#event-type-emergency-access).

‎docs/hub/guides/_category_.json‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "Guides",
3+
"position": 3,
4+
"link": {
5+
"type": "doc",
6+
"id": "hub/guides/index"
7+
}
8+
}

‎docs/hub/guides/admin-guide.mdx‎

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
id: admin-guide
3+
title: Admin Guide
4+
sidebar_position: 2
5+
description: Your first day as a Hub administrator — add users and groups, connect your identity provider, enable Emergency Access, and keep an eye on audit logs and license seats.
6+
---
7+
8+
# Admin Guide
9+
10+
This guide walks you through setting up a fresh Cryptomator Hub instance for your organization in about **20 minutes**.
11+
12+
As a worked example, meet Alice: she administers Hub at the design agency Acme.
13+
Her instance is up and running, and now she adds her first users and a group, connects the company's identity provider, enables Emergency Access, and checks the audit log and license.
14+
15+
## Before You Start {/* #before-you-start */}
16+
17+
You need:
18+
19+
* A running Hub instance — a local test instance from the [Quick Start](../quick-start.mdx) or a server deployment (managed or selfhosted)
20+
* An account with the `admin` [role](../user-group-management.mdx#roles), such as the initial admin account created during deployment.
21+
22+
:::tip
23+
Not keen on hosting an instance yourself? Cryptomator Hub is also available as a [managed service](https://cryptomator.org/hub/managed/?utm_source=docs.cryptomator.org&utm_medium=referral&utm_campaign=admin-guide) with a free 30-day trial period — this guide applies there all the same.
24+
:::
25+
26+
## Add Users and Groups {/* #add-users-and-groups */}
27+
28+
Since version 2.0, users and groups are managed directly in Hub, via the `Users` and `Groups` entries in the sidebar.
29+
Alice creates accounts for Bob and Carol, each with username, email, and an initial password.
30+
She then creates the group *Designers* and adds both as members — sharing vaults with a group scales better than managing individual permissions.
31+
32+
<Image src="/img/hub/user-create.png" alt="Create user form" width="2240" height="2064" />
33+
34+
Bob and Carol can now log in and complete their account setup, as described in the [User Guide](user-guide.mdx#set-up-your-account).
35+
36+
For more details, read [Create User](../user-group-management.mdx#create-user), [Create Group](../user-group-management.mdx#create-group), and [Manage Group Members](../user-group-management.mdx#manage-group-members).
37+
38+
## Connect Your Identity Provider {/* #connect-your-identity-provider */}
39+
40+
Creating users by hand is fine for a handful of people.
41+
Since Acme already manages its staff in a central directory, Alice instead connects Hub's bundled Keycloak to it, so users log in with their existing credentials and accounts stay in sync.
42+
43+
<Image src="/img/hub/access-keycloak-link.png" alt="Accessing Keycloak via Hub" width="2880" height="1520" />
44+
45+
The `Manage Keycloak` link takes Alice to the Keycloak admin console, where identity providers are configured on the `Identity providers` page:
46+
47+
<Image src="/img/hub/keycloak-identity-providers.png" alt="Identity providers in the Keycloak admin console" width="2880" height="1800" />
48+
49+
Depending on what your organization runs, follow the matching reference section:
50+
51+
* [OpenID Connect](../keycloak.mdx#openid-connect) providers such as Microsoft Entra ID or Google Workspace.
52+
* [LDAP and Active Directory](../keycloak.mdx#ldap-and-active-directory) for user federation.
53+
* [Mapping groups to roles](../keycloak.mdx#mapping-groups-to-roles), e.g. to grant an *IT* directory group the `admin` role automatically.
54+
55+
For more details, read [Connecting an External Identity Provider](../keycloak.mdx#connecting-an-external-identity-provider) and [External Identity Management](../user-group-management.mdx#enterprise-external-iam).
56+
57+
## Enable Emergency Access {/* #enable-emergency-access */}
58+
59+
What if Bob leaves Acme and the *Client Projects* vault has no other owner?
60+
Emergency Access, new in version 2.0, lets a council of trusted users jointly restore access to a vault.
61+
Alice enables it in the admin area and defines a default council, so every new vault gets Emergency Access conditions during creation.
62+
For existing vaults, owners set up the council in the vault details.
63+
64+
<Image src="/img/hub/admin-emergency-access.png" alt="Emergency Access" width="2880" height="1800" />
65+
66+
:::info[Enterprise Feature]
67+
Emergency Access is available as an Enterprise feature.
68+
Visit [cryptomator.org](https://cryptomator.org/hub/) for more information.
69+
:::
70+
71+
For more details, read [Emergency Access admin settings](../admin.mdx#emergency-access), [Set Up Emergency Access](../emergency-access.mdx#set-up-emergency-access), and the per-vault [Emergency Access Council](../vault-management.mdx#emergency-access-council).
72+
73+
## Review the Audit Log {/* #review-the-audit-log */}
74+
75+
The next morning, Alice verifies that everything went as intended.
76+
In the audit log, she filters for vault events and sees the creation of *Client Projects* and the access grants for Carol and the *Designers* group, each with actor and timestamp.
77+
78+
<Image src="/img/hub/auditlogs-overview.png" alt="Audit Logs Table View" width="2880" height="1720" />
79+
80+
For more details, read [Audit Logs](../admin.mdx#audit-logs), [Filtering Audit Logs](../admin.mdx#filtering-audit-logs), and the list of [Event Types](../admin.mdx#event-types).
81+
82+
## Check Your License {/* #check-your-license */}
83+
84+
Finally, Alice opens the license section of the admin area.
85+
With Bob and Carol having vault access, two seats are in use — a seat is occupied by every user who is assigned to at least one vault.
86+
The overview shows the used and licensed seats and where to upgrade before the team grows.
87+
88+
<Image src="/img/hub/admin-area-license.png" alt="Administration area" width="2880" height="1800" />
89+
90+
For more details, read [License](../admin.mdx#license), [What Is a Seat?](../admin.mdx#what-is-a-seat), and [Updating Your License](../admin.mdx#updating-your-license).
91+
92+
## Next Steps {/* #next-steps */}
93+
94+
* Set up [backups](../operations.mdx#backup) before real data accumulates.
95+
* Harden logins with [session timeouts](../keycloak.mdx#session-timeouts) and [access restrictions](../keycloak.mdx#restricting-access-to-hub).
96+
* Send your team the [User Guide](user-guide.mdx) so they can get started on their own.

‎docs/hub/guides/index.mdx‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import DocCardList from '@theme/DocCardList';
2+
3+
# Guides
4+
5+
Step-by-step walkthroughs for the most common Cryptomator Hub workflows.
6+
Each guide follows a worked example from start to finish and links to the reference pages for details.
7+
8+
<DocCardList />
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
id: self-hosting-guide
3+
title: Self-Hosting Guide
4+
sidebar_position: 3
5+
description: Take Hub from a local playground to a production deployment — pick a recipe, deploy, set up backups, and keep the instance healthy.
6+
---
7+
8+
# Self-Hosting Guide
9+
10+
This guide takes you from trying Cryptomator Hub to running it in production for your organization.
11+
It sequences the existing [Deployment Cookbook](../deployment/index.mdx) and [Operations](../operations.mdx) references into one path; how long it takes depends mostly on your infrastructure — plan for **an hour** plus DNS.
12+
13+
As a worked example, meet Alice: she liked the [Quick Start](../quick-start.mdx) playground and now deploys Hub for the design agency Acme, a team of about 20 people.
14+
15+
:::tip
16+
Not keen on running Hub yourself? We also offer Hub as a [managed service](https://cryptomator.org/hub/managed/?utm_source=docs.cryptomator.org&utm_medium=referral&utm_campaign=self-hosting-guide) with uptime guarantee and regular backups.
17+
:::
18+
19+
## Before You Start {/* #before-you-start */}
20+
21+
Decide on these up front — they are hard to change later:
22+
23+
* Two public URLs, one for Hub and one for Keycloak, with DNS records created before deploying.
24+
* TLS termination via a reverse proxy or ingress controller — Hub, Keycloak, and PostgreSQL must never be exposed directly.
25+
* Whether to run the bundled Keycloak and PostgreSQL or connect existing instances.
26+
27+
The defaults are sized for small installations like Acme's; see [Sizing](../deployment/index.mdx#sizing) for larger teams.
28+
29+
For more details, read [Before You Begin](../deployment/index.mdx#before-you-begin) — including why the public URLs must be final before the first start.
30+
31+
## Choose a Recipe {/* #choose-a-recipe */}
32+
33+
The [Deployment Cookbook](../deployment/index.mdx#recipes) offers three recipes:
34+
35+
* [Docker Compose](../deployment/compose.mdx) — a single Docker host behind a Traefik reverse proxy with Let's Encrypt. The simplest production setup.
36+
* [Kubernetes](../deployment/kubernetes.mdx) — the Helm chart via the Helm CLI, for teams that already operate a cluster.
37+
* [Rancher](../deployment/rancher.mdx) — the same Helm chart installed through the Rancher UI.
38+
39+
Acme has no Kubernetes cluster and 20 users fit comfortably on one virtual machine, so Alice picks Docker Compose.
40+
The rest of this guide follows that path.
41+
42+
## Deploy with Docker Compose {/* #deploy-with-docker-compose */}
43+
44+
Alice provisions a VM with Docker, points the two DNS records at it, and opens ports 80 and 443.
45+
She downloads the production Compose example, replaces the placeholders — hostnames, Let's Encrypt email, and freshly generated passwords and secrets — and starts the stack with `docker compose up -d`.
46+
Once all services are healthy, she signs in as `admin`, enters the license, and Hub is live at Acme's own domain.
47+
48+
For more details, read [Prerequisites](../deployment/compose.mdx#compose-prerequisites), [Deploy](../deployment/compose.mdx#compose-deploy), and [Configuration](../deployment/compose.mdx#compose-configuration) — including which ports must never be published.
49+
50+
## Set Up Backups {/* #set-up-backups */}
51+
52+
All of Hub's state lives in PostgreSQL: vaults, encrypted keys, and the audit log in the `hub` database, users and credentials in the `keycloak` database.
53+
Alice schedules a nightly `pg_dumpall` via cron and moves the dumps off the VM.
54+
Then she does what most people skip: she [restores](../operations.mdx#restore) one dump onto a scratch instance to confirm the backup actually works — a backup that has never been restored is a hope, not a backup.
55+
56+
For more details, read [Backup](../operations.mdx#backup) and [Restore](../operations.mdx#restore).
57+
58+
## Keep It Healthy {/* #keep-it-healthy */}
59+
60+
Running Hub is low-maintenance; these are the recurring and occasional tasks:
61+
62+
* [Upgrading](../deployment/compose.mdx#compose-upgrading) — back up first, bump the pinned image tags, `docker compose up -d`.
63+
* [Verifying container images](../operations.mdx#verifying-container-images) before deploying new versions.
64+
* [Trusting a private certificate authority](../operations.mdx#trusting-a-private-certificate-authority) if your organization uses one.
65+
* [Changing the database password](../operations.mdx#changing-the-database-password) as part of credential rotation.
66+
67+
## Next Steps {/* #next-steps */}
68+
69+
* The instance is running, but empty — continue with the [Admin Guide](admin-guide.mdx) to add users, groups, and your identity provider.
70+
* Bookmark [Operations](../operations.mdx) as the reference for everything maintenance.

0 commit comments

Comments
 (0)