Admin settings store + Settings panel (#52) #55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/settings-store"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First slice of the policy-out-of-config-file settings store (#52).
internal/settings— atomic-JSON store (same pattern as shares/app-passwords/license state) holding admin-editable policy:instanceName,shareDefaultExpiry,shareAllowUploadDefault. Validated on write. ConfigsettingsPath(default/data/.cairn/settings.json).GET/PUT /api/v1/settings— GET readable by any authenticated user (the UI needs the instance name); PUT admin-gated (honorsauth.admins/adminGroups/User.Admin)./me.admin). First panel edits the instance name — shown in the header when set. Grows one panel at a time, exactly as the issue prescribes.Boundary held: the store is for policy, never identity — who-is-admin stays with
auth.admins/auth.adminGroups, so it can't fight the directory.New
settings_test.go(roundtrip, validation, persistence). gofmt + vet + build + full test suite +node --checkon the UI script all green on the runner before push.