feat: add Android release signing and user remapping
Lint / Lint (push) Successful in 1m2s
Security / Secrets (gitleaks) (push) Successful in 1m11s
Tests / Dashboard checks (push) Successful in 1m17s
Security / Dependencies (Trivy) (push) Successful in 1m20s
Security / Code (Semgrep) (push) Successful in 3m15s
Tests / Go backend (push) Successful in 3m29s
Docker / Docker Build & Push (push) Successful in 8m42s
Lint / Lint (push) Successful in 1m2s
Security / Secrets (gitleaks) (push) Successful in 1m11s
Tests / Dashboard checks (push) Successful in 1m17s
Security / Dependencies (Trivy) (push) Successful in 1m20s
Security / Code (Semgrep) (push) Successful in 3m15s
Tests / Go backend (push) Successful in 3m29s
Docker / Docker Build & Push (push) Successful in 8m42s
- Add release signing configuration and static debug-key workflow - Add a CLI to remap legacy users to AuthGuard accounts
This commit is contained in:
1 parent
817236f349
commit
7150ebd13e
8 files changed
+1553
-2
No files matched your search
@@ -60,6 +60,26 @@ go -C backend build -o collabtable-server .
|
||||
|
||||
The Dockerfile performs those dashboard and Go build steps automatically.
|
||||
|
||||
## One-time legacy user remap
|
||||
|
||||
Databases from before the AuthGuard migration key list memberships and API tokens by the old
|
||||
local user IDs. After the migration each person's identity is their AuthGuard ID, which is
|
||||
usually different, so they sign in and see none of the lists they owned. Run this once, with the
|
||||
server stopped and before any AuthGuard account signs in:
|
||||
|
||||
```bash
|
||||
# users.json: the array GET /api/auth/users returns, copied while signed in as an AuthGuard admin
|
||||
collabtable-server remap-users --authguard-users users.json # dry run: prints the plan
|
||||
collabtable-server remap-users --authguard-users users.json --apply # writes the remap
|
||||
```
|
||||
|
||||
Legacy users are matched to AuthGuard accounts by email, or by username when the legacy account
|
||||
has no email. For anything unmatched or ambiguous, pass `--map` with a JSON object from legacy ID to
|
||||
AuthGuard ID, such as `{"3": 12}`. The tool refuses to write while a legacy user who owns rows is
|
||||
unmapped, and it refuses a second run. If a legacy ID is also the ID of a different AuthGuard
|
||||
account, the plan blocks until you pass `--accept-id-overlap`; use that only after confirming the
|
||||
account has never signed in. `DATABASE_URL` must be set.
|
||||
|
||||
## API
|
||||
|
||||
All Android synchronization routes are prefixed with `/api/` and require:
|
||||
|
||||
Reference in new issue
Block a user