Skip to content

Support the yank and delete roles - #15

Merged
kduma merged 2 commits into
mainfrom
claude/affectionate-ramanujan-cx25yt
Oct 29, 2026
Merged

kduma merged 2 commits into
mainfrom
claude/affectionate-ramanujan-cx25yt

Conversation

@kduma

@kduma kduma commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Summary

The registry can now give an account the yank and/or delete role with its own grants, without making it an admin (see kduma-OSS/serverless-registry-worker#31). This teaches sreg about them.

  • API models know the new roles: yank_grants / delete_grants on credentials and requests, access.yank / access.delete in whoami.
  • sreg whoami lists the yank and delete grants.
  • sreg yank and sreg delete already worked with any token; the README now says they accept a credential with the matching role whose grants cover the version.
  • docs/spec.md and docs/api.md are synced with the Worker's copies.

Needs a Worker that has the roles; the change is additive on the wire.

Test plan

  • cargo fmt --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace (includes new model tests for the roles)

Generated by Claude Code

The registry can now give an account the `yank` and/or `delete` role with
its own grants, without making it an admin. Teach the API models about
the new roles (`yank_grants`, `delete_grants`, `access.yank`,
`access.delete`), show the grants in `sreg whoami`, and document that
`sreg yank` and `sreg delete` accept such credentials. docs/spec.md and
docs/api.md are synced from the Worker.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TECh4WQ5Nukqo7g4pr8pha
docs/api.md and docs/spec.md are copies of the Worker's: yank and delete
only accounts can now sign in to the panel.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TECh4WQ5Nukqo7g4pr8pha
@kduma
kduma merged commit e1d70e3 into main Oct 29, 2026
37 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.

2 participants