Hub: LUNE_VAULT_CREATION=anyone lets every member create vaults
By default only the team owner and people who manage a vault can create vaults, as before. A hub run with LUNE_VAULT_CREATION=anyone lets any active member create one (and upload one); the creator is Manage on that vault only. Sharing is unchanged: inviting or granting still needs Manage on the vault being shared, so nobody can connect others to a vault they do not manage. An unknown value stops the hub at startup, before any data is touched. All three places that report or enforce the rule (me, canvas, create_vault) read the same setting. No client change is needed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -127,7 +127,7 @@ Lists each vault with its status, and anything that needs you:
|
||||
- **A note may contain a secret:** type where the secret really lives and click **Replace**, or click **Not a secret**.
|
||||
- **A note was changed in two places:** **Compare** shows both versions with the differences highlighted. Keep one, or keep both as separate notes.
|
||||
- **GBrain:** **Mark as GBrain** makes the vault a GBrain brain for the whole team (Lune suggests it when it sees `gbrain.yml`). Where `gbrain` is installed, Lune asks once whether to refresh GBrain after each sync; if a refresh fails, the vault turns amber with **Retry**.
|
||||
- **Upload:** put a vault that's only on this Mac onto a team, history included. The button shows for the team owner and anyone who manages a vault there. A vault that syncs with its own remote (GitHub, GitLab, Gitea…) is **detached** from it first, so its notes don't end up in two places; that remote keeps its copy as it was. Before anything is made on the team, Lune checks the notes the way the team's hub will: a line that looks like a secret turns red to decide (replace it with where to find it, or mark it not a secret), and if older history has one, you can upload just the current notes (the full history stays on your Mac).
|
||||
- **Upload:** put a vault that's only on this Mac onto a team, history included. The button shows for whoever may create vaults on that team: by default the team owner and anyone who manages a vault there, or every member if the hub allows it (`LUNE_VAULT_CREATION=anyone`). A vault that syncs with its own remote (GitHub, GitLab, Gitea…) is **detached** from it first, so its notes don't end up in two places; that remote keeps its copy as it was. Before anything is made on the team, Lune checks the notes the way the team's hub will: a line that looks like a secret turns red to decide (replace it with where to find it, or mark it not a secret), and if older history has one, you can upload just the current notes (the full history stays on your Mac).
|
||||
- **Join another team:** add a second hub, such as your workplace's. **Leave** next to a team removes this Mac from it (anything unshared is handed over first).
|
||||
|
||||
### The team canvas
|
||||
@@ -136,7 +136,7 @@ Open it from the menu (**Open team canvas**), or with `lunesync open`. Managers
|
||||
|
||||
- **Grant:** drag a vault onto a person.
|
||||
- **Revoke:** pull the ribbon between them until it snaps. You get an **Undo** for about 8 seconds; nothing reaches their devices before that.
|
||||
- **Invite person**, **New vault** (the team owner and anyone who manages a vault), **Delete vault…** (team owner; asks first, and the history stays archived on the hub), change roles, rename devices, **Nudge** a device that's behind, tidy notes changed in two places, review **handovers**, and (team owner only) **Remove from team** or **Restore**.
|
||||
- **Invite person**, **New vault** (the team owner and anyone who manages a vault; every member if the hub sets `LUNE_VAULT_CREATION=anyone`), **Delete vault…** (team owner; asks first, and the history stays archived on the hub), change roles, rename devices, **Nudge** a device that's behind, tidy notes changed in two places, review **handovers**, and (team owner only) **Remove from team** or **Restore**.
|
||||
|
||||
Every gesture also has a button in the side panel. Every access change is recorded in the hub's access log.
|
||||
|
||||
@@ -157,7 +157,7 @@ lunesync pair # a one-time code to add another device
|
||||
Team management from the terminal:
|
||||
|
||||
```sh
|
||||
lunesync vault new DevOps # the team owner, or anyone who manages a vault
|
||||
lunesync vault new DevOps # the team owner, or anyone who manages a vault (any member with LUNE_VAULT_CREATION=anyone)
|
||||
lunesync vault kind Brain gbrain # a GBrain brain for the whole team (or: obsidian)
|
||||
lunesync vault detach Brain # stop syncing with its own remote (GitHub, GitLab…); stays on this device
|
||||
lunesync vault upload Brain # put a vault that's only on this device onto the team
|
||||
@@ -214,6 +214,7 @@ Such a vault still shows in the Lune app with its status, but not on a team canv
|
||||
| `LUNE_HUB_DATA` | `/data` | Where vault histories, the database and the update-signing key live. |
|
||||
| `LUNE_HUB_LISTEN` | `0.0.0.0:8080` | Address the hub listens on. |
|
||||
| `LUNE_RELEASE_PASSWORD` | (asks) | Password of the update-signing key, for `release keygen` / `publish`. |
|
||||
| `LUNE_VAULT_CREATION` | `managers` | Who may create vaults (and upload one): `managers` is the team owner and anyone who manages a vault; `anyone` is every member. Creators manage only their own new vault, and sharing a vault still needs Manage on it. Any other value stops the hub at start. |
|
||||
|
||||
---
|
||||
|
||||
@@ -230,6 +231,7 @@ services:
|
||||
environment:
|
||||
LUNE_HUB_URL: https://lune.example.com
|
||||
LUNE_OWNER_NAME: Sen
|
||||
# LUNE_VAULT_CREATION: anyone # let every member create vaults (default: managers)
|
||||
volumes:
|
||||
- ./data:/data
|
||||
caddy:
|
||||
|
||||
Reference in New Issue
Block a user