Skip to content

roles: rename instance-level 'member' to 'admin'#153

Merged
dangtony98 merged 1 commit intomainfrom
rename/instance-role-admin
May 8, 2026
Merged

roles: rename instance-level 'member' to 'admin'#153
dangtony98 merged 1 commit intomainfrom
rename/instance-role-admin

Conversation

@dangtony98
Copy link
Copy Markdown
Contributor

Summary

Part of a small batch of changes aimed at making Agent Vault more ergonomic for the way people actually deploy AI agents.

This PR renames the instance-level role from member to admin. The vault-scoped member role is unchanged — only the instance axis is touched (users.role, agents.role, invites.agent_role, user_invites.role).

  • Migration 044 rebuilds the four affected tables (SQLite can't alter CHECK constraints in place) and rewrites existing member values to admin.
  • Go server, CLI, web UI, tests, and docs are updated together so the surface stays consistent.
  • Default role on user/agent invites now defaults to admin (previously member).

Test plan

  • go test ./... passes (store, server, cmd)
  • go build ./... clean
  • Smoke: upgrade an existing DB with members → migration rewrites them to admins; agent-vault user list reflects new label
  • Smoke: agent-vault user invite foo@bar.com defaults to admin; --role owner still works; bogus role rejected
  • Smoke: web invite-user / invite-agent dialogs show "Admin" / "Owner"; toggle in users tab demotes owner → admin (and is blocked for last owner)

Renames the instance-level role from 'member' to 'admin' across the
schema, Go code, web UI, tests, and docs. The vault-scoped 'member'
role is unchanged — only the instance axis (users.role, agents.role,
invites.agent_role, user_invites.role) is touched.

Migration 044 rebuilds the four affected tables (SQLite cannot alter
CHECK constraints in place) and rewrites existing 'member' values to
'admin'.
@infisical-review-police
Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-agent-vault-153-roles-rename-instance-level-member-to-admin

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@mintlify
Copy link
Copy Markdown

mintlify Bot commented May 8, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
agent-vault 🟢 Ready View Preview May 8, 2026, 1:43 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@dangtony98 dangtony98 merged commit b608427 into main May 8, 2026
10 checks passed
@dangtony98 dangtony98 deleted the rename/instance-role-admin branch May 8, 2026 03:23
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