Skip to content

sync, sdk: let the server decide writes to another user's resources - #353

Open
bjornars wants to merge 1 commit into
novem-code:mainfrom
bjornars:sync-and-other-user-writes
Open

bjornars wants to merge 1 commit into
novem-code:mainfrom
bjornars:sync-and-other-user-writes

Conversation

@bjornars

@bjornars bjornars commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

With user= set, api_write/api_delete on vis, code and job objects and
api_load printed "You cannot modify another user's ..." and sent
nothing, though gaia admits the write under a group rw share. They now
go to the user-scoped path and the server decides; a refusal raises
Novem403 (load counts it as a failed file). Vis writes previously used
the caller's own path, so they had to move to users//... too.

api_create still sends nothing under user=, now silently: gaia refuses
every create in another user's namespace whatever the shares grant
(same decision as novem-code/novem-tui#326).

Dump and load follow gaia's REST changes:

  • Switches read back as yes/no (gaia#8033 and friends), so yes/true
    and no/false now compare equal instead of being re-POSTed every load.
  • notifications gains a DELETE that resets it (gaia#8068). It stays out
    of the managed set, so loading an older dump won't reset it.
  • Listings now give each caller its own actions (gaia#8046), so a dump
    of another user's resource can omit files the owner could delete.
    Such a dump is marked with a .novem-partial file, and loading a
    partial dump never deletes remote files.

The Python CLI half of #343 (non-zero exit on 403) no longer applies:
the CLI is the native binary, fixed in novem-code/novem-tui#326.

Closes #343
Closes #345

With user= set, api_write/api_delete on vis, code and job objects and
api_load printed "You cannot modify another user's ..." and sent
nothing, though gaia admits the write under a group rw share. They now
go to the user-scoped path and the server decides; a refusal raises
Novem403 (load counts it as a failed file). Vis writes previously used
the caller's own path, so they had to move to users/<owner>/... too.

api_create still sends nothing under user=, now silently: gaia refuses
every create in another user's namespace whatever the shares grant
(same decision as novem-code/novem-tui#326).

Dump and load follow gaia's REST changes:

- Switches read back as yes/no (gaia#8033 and friends), so yes/true
  and no/false now compare equal instead of being re-POSTed every load.
- notifications gains a DELETE that resets it (gaia#8068). It stays out
  of the managed set, so loading an older dump won't reset it.
- Listings now give each caller its own actions (gaia#8046), so a dump
  of another user's resource can omit files the owner could delete.
  Such a dump is marked with a .novem-partial file, and loading a
  partial dump never deletes remote files.

The Python CLI half of novem-code#343 (non-zero exit on 403) no longer applies:
the CLI is the native binary, fixed in novem-code/novem-tui#326.

Closes novem-code#343
Closes novem-code#345

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant