@smartkomm/plexus-cli 0.1.34 → 0.1.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -9
- package/dist/cli.mjs +229 -200
- package/dist/skill/.managed-by-plexus-cli +1 -1
- package/dist/skill/SKILL.md +4 -6
- package/dist/skill/references/commands.md +25 -28
- package/dist/skill/references/config/attach-a-template.md +7 -2
- package/dist/skill/references/config/set-tenant-branding.md +6 -5
- package/dist/skill/references/retention/erase-due-applications.md +35 -6
- package/dist/skill/references/users/cli-access-for-tenant-admin.md +10 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -214,15 +214,13 @@ the category (`Users (platform operator)`, `Offer (school token)`) and as a
|
|
|
214
214
|
|
|
215
215
|
| Scope | Who runs it | Where it lives |
|
|
216
216
|
|---|---|---|
|
|
217
|
-
| **platform operator** | a token with a `_platform.*` right; a school's token is refused | `platform …`, or a group that is the operator's as a whole: `feedback`, `demo`, `setup`, `retention`, `jobs`, `audit
|
|
218
|
-
| **school token** | a module permission inside one school — the school's own administrator (`--tenant <slug>`) | every other group: `offer`, `applications`, `config`, `tenant-users`, `users groups\|set-group\|unset-group`, `notifications letters\|chrome`, `org`, `catalog`, `generator` (not `input-key`), `stripe`, `signing list\|start\|show\|void\|resend\|reconcile`, `signing connection show\|test`, … |
|
|
217
|
+
| **platform operator** | a token with a `_platform.*` right; a school's token is refused | `platform …`, or a group that is the operator's as a whole: `feedback`, `demo`, `setup`, `retention`, `jobs`, `audit` |
|
|
218
|
+
| **school token** | a module permission inside one school — the school's own administrator (`--tenant <slug>`) | every other group: `offer`, `applications`, `config`, `branding`, `files`, `tenant-users`, `users groups\|set-group\|unset-group`, `notifications letters\|chrome`, `org`, `catalog`, `generator` (not `input-key`), `stripe`, `signing list\|start\|show\|void\|resend\|reconcile`, `signing connection show\|test`, … |
|
|
219
219
|
| **own account** | any signed-in token | `whoami`, `tenants`, `tokens …`, `call` (the called function's own gate decides) |
|
|
220
220
|
| **offline** | no deployment | `functions`, `describe`, `offer validate`, the bundle editors |
|
|
221
221
|
|
|
222
222
|
So the path tells a school administrator whether a command is theirs: nothing
|
|
223
|
-
under `platform …` is, and no other group mixes the two
|
|
224
|
-
(`files list` is the school's; `files put|delete` reach only the platform's
|
|
225
|
-
functions — a school adds files through `config apply` or the app). Two
|
|
223
|
+
under `platform …` is, and no other group mixes the two. Two
|
|
226
224
|
commands have a platform branch behind a flag: `tokens create --for <email>`
|
|
227
225
|
and `accounts email-changes --user <address>`. `commandScope.test.ts` holds this:
|
|
228
226
|
it reads the `gate:` of every backend function a command calls, and fails when
|
|
@@ -941,16 +939,25 @@ The local rdu admin key does **not** satisfy the gate — use a token even local
|
|
|
941
939
|
`.manage` (part of the derived `tenant_admin`; held tenant-wide) open `config export`, `config apply`,
|
|
942
940
|
`config set` and `config targets --tenant` for **that tenant only**. A tenant-scoped apply
|
|
943
941
|
is refused (`FORBIDDEN`, naming the field) when it would create a tenant, use
|
|
944
|
-
`--from blueprint`, pass `--allow-destructive`, change a platform-owned setting —
|
|
945
|
-
`tenant.*` key
|
|
946
|
-
`
|
|
942
|
+
`--from blueprint`, pass `--allow-destructive`, change a platform-owned setting — a
|
|
943
|
+
`tenant.*` key such as `enabledModules`, `mailLevel`, `magicLinkLogin`, `externalSignIn`,
|
|
944
|
+
`adminSeesSignatureImages`, `bankImportScope`, or the import `source`
|
|
947
945
|
— name a `foundation.users` address that is not an active member with a login, or put a
|
|
948
946
|
`_platform.*` right in a group; changing groups needs `administration.permissions.manage`,
|
|
949
947
|
changing `foundation.users` needs `administration.users.manage`, and giving, moving or taking a
|
|
950
948
|
user's group there (a user new to the config, `permissionGroupKey`, `unitKey`, validity,
|
|
951
949
|
`additionalMemberships`) needs `administration.permissions.manage` as well, for every scope
|
|
952
950
|
the change touches (a tenant-wide membership needs it tenant-wide, one in a unit for that unit
|
|
953
|
-
or tenant-wide) — the rule the Rechteverwaltung asks.
|
|
951
|
+
or tenant-wide) — the rule the Rechteverwaltung asks. The school's own `tenant.*` keys are
|
|
952
|
+
`branding`, `brandingAssets`, `notificationChrome`, `terms`, `retentionDays`, `nationalityFlag`,
|
|
953
|
+
`admissionFieldDisplayGroupKey`, `defaultStartInProxy` and `hideMailLevelNotice`;
|
|
954
|
+
`retentionDays` also needs `bewerbungsmanagement.applications.manage`, `partyRetention`
|
|
955
|
+
`stammdaten.parties.delete` and `defaultApplicantGroupKey`
|
|
956
|
+
`administration.permissions.manage` (removing it stays the platform's), the rights their
|
|
957
|
+
in-app twins ask. `tenant.retentionDays` sets how long ended applications are kept, per
|
|
958
|
+
classification, in whole days from 30 to 3650 (absent = the platform defaults):
|
|
959
|
+
`config set --target tenant --key <slug> --field retentionDays --value '{"rejected":365}'`.
|
|
960
|
+
`wipe`, `prune-offers`, `--scope platform` and setup mode
|
|
954
961
|
stay platform-only. Recipe:
|
|
955
962
|
[playbooks/users/cli-access-for-tenant-admin.md](./playbooks/users/cli-access-for-tenant-admin.md).
|
|
956
963
|
|