Add installer, regression tests and missing assets
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
KRONIC ADMINISTRATION V2 - development build
|
||||
Based on the original source and patches through Kronic Room Identity V1.
|
||||
Extract directly inside /home/admin/mediaserver (or the actual application root).
|
||||
Back up source and both account/media databases first; use a consistent SQLite
|
||||
backup, or stop the services before copying. Restart both media and chat services
|
||||
and refresh browsers. No dependencies or config changes. New tables are created
|
||||
additively in the existing account DB. Existing accounts and grants are not reset.
|
||||
|
||||
New /admin tabs:
|
||||
- Media Access: select a non-platform-admin account; choose six media categories
|
||||
and named indexed libraries. Uncheck inherit to save an explicit allowlist.
|
||||
New libraries are denied until selected. Inherit removes the instance allowlist,
|
||||
not room restrictions. Existing accounts without a new policy behave as before.
|
||||
- Room Templates: save category/library allowlists, AI chat/tools ceilings and
|
||||
role action ceilings. Select a template at room creation or explicitly apply it
|
||||
to an existing room. Copy, not live reference. Editing a template does not
|
||||
silently update rooms. Existing group member inheritance on room creation is
|
||||
unchanged. Applying a template does NOT grant missing user or group permissions.
|
||||
- Instance Settings: optional instance name, login title/subtitle, powered-by
|
||||
credit, permission for room owners to rename, and per-room icon/accent settings.
|
||||
Leave instance name blank for generic login. Room names still use the existing
|
||||
Rename control, internal room IDs unchanged. Room icons are emoji/short text;
|
||||
image upload, custom logos and full themes are not implemented.
|
||||
|
||||
IMPORTANT AUTHORIZATION BEHAVIOR
|
||||
Media and AI ceilings intersect across all assigned enabled rooms, as in the
|
||||
existing restrictive room media permission model; room switching does not select
|
||||
an independent media ACL. This is conservative and can restrict adults who also
|
||||
belong to a kids room. Use per-user restrictions rather than room templates if
|
||||
that is not desired. Platform admin retains full access. Role action ceilings
|
||||
apply within the individual room and cannot override the global role policy.
|
||||
A separate selected-room entitlement model would require further API/session work.
|
||||
Existing media-enabled group entitlement is still required. Named-library controls
|
||||
cover indexed movie/TV libraries; Music, IPTV, Tube and Twitch are category-level.
|
||||
Individual channels/tracks, room member caps, media/screen sharing feature switches,
|
||||
and per-domain branding are not included. Existing LiveKit screen shares cannot
|
||||
be content-filtered by library ACLs. Already-open playback streams may continue
|
||||
until restarted. Cached old UI state may be visible until refresh.
|
||||
|
||||
Restricted accounts cannot access Balroc remote device discovery/control or
|
||||
unrestricted Balroc fallback, or global cast/scan controls. Local AI media search
|
||||
uses the same library authorization checks; ordinary Balroc fallback is blocked
|
||||
for restricted accounts until that separate tool server supports granular access.
|
||||
External player links are now signed with the issuing user's ID and check that
|
||||
user's active entitlement and source permissions again on redemption. Previously
|
||||
issued links are invalidated. Links remain bearer URLs: anyone with a valid link
|
||||
can use it until expiration or issuer access is revoked. Do not share them with
|
||||
restricted users. No claim of DRM or complete parental-control isolation.
|
||||
|
||||
Tests: python test_admin_upgrade.py (temporary SQLite databases, mock media
|
||||
search and extracted HTTP route checks). Python compilation and JS syntax checks
|
||||
passed. Previous room identity simulated routing tests passed. Not tested against
|
||||
a live Kronic deployment, reverse proxy, Balroc, or physical mobile browser.
|
||||
Test with a disposable restricted account before granting access to children.
|
||||
Check category and library browse, direct denied playback and thumbnail URLs,
|
||||
AI search and direct remote requests, role management, template edits, and
|
||||
room picker/login in both frontends. Back up prior files for rollback; new DB
|
||||
policy tables may be left in place but older code does NOT enforce them.
|
||||
Reference in New Issue
Block a user