Skip to content

api: let every signed in user read system information - #55

Merged
bbedward merged 1 commit into
masterfrom
motile/system-info-for-members
Nov 12, 2026
Merged

bbedward merged 1 commit into
masterfrom
motile/system-info-for-members

Conversation

@bbedward

Copy link
Copy Markdown
Contributor

Problem

A project member got Forbidden in two places: the DNS record in the domain card and the volume Expand section. Both read GET /system/get, which required viewer on the system. Only the superuser group holds system grants, so every team or project member who is not an instance owner was refused, not only project members.

Change

SystemService.GetSettings no longer checks a system role. GET /system/get takes a session and nothing else. It returns the external IP, version, storage capacity, networking provider and capabilities, wildcard domain and BuildKit replica and parallelism settings. No secrets.

Unchanged:

  • Updating system settings requires editor on the system.
  • The /system routes are session only, so API keys and MCP cannot call them.

Tested

  • Unit tests: reading settings makes no permission check, updating without system editor is refused.
  • Against the local dev stack with a fresh project-only account: GET /system/get answers 200, PUT /system/settings/update answers 403 for a project admin.

Not tested in a browser. The dev cluster has no external IP, so external_ipv4 came back empty there.

Notes

  • The other system calls on member screens are already limited to system admins in the UI (update status, registry stats), or need no role (DNS check).
  • PUT /system/settings/update verifies the wildcard domain's DNS before it checks the role, so a member sending a domain gets 400 instead of 403. Nothing is written. Not changed here.

GET /system/get required viewer on the system, which only instance
owners hold. Team and project members got Forbidden in the domain card,
where the DNS record needs the external IP, and in volume expand, which
needs the storage limits.

Reading it now takes a session and no role. It returns the external IP,
version, storage capacity, networking provider, wildcard domain and
BuildKit settings. Updating settings still requires editor on the system.
@bbedward
bbedward merged commit 8dbe61a into master Nov 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant