Skip to content

feat: object ACL controls, archived-object restore, and IAM teams#116

Merged
designcode merged 6 commits into
mainfrom
feat/teams-acl-restore
Jun 26, 2026
Merged

feat: object ACL controls, archived-object restore, and IAM teams#116
designcode merged 6 commits into
mainfrom
feat/teams-acl-restore

Conversation

@designcode

@designcode designcode commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Surfaces the new @tigrisdata/storage@3.16.0 and @tigrisdata/iam@2.2.0 capabilities in the CLI. One commit per area.

Changes

  • Deps: bump @tigrisdata/storage to ^3.16.0 and @tigrisdata/iam to ^2.2.0.
  • Bucket creation: --allow-object-acl and --enable-directory-listing on both mk and buckets create, wired into createBucket.
  • Object access on upload: cp gains --access public|private for local→remote uploads (objects put already had it). Rejected for remote→remote / remote→local, with a pointer to objects set-access.
  • Archived objects: objects restore (restoreObject, --days) and objects restore-info (getRestoreInfo; reports archived / in-progress / restored).
  • Teams: iam teams list/create/edit (listTeams/createTeam/editTeam), mirroring iam users and gated to OAuth + non-Fly orgs.

Notes

  • --members accepts email addresses (comma-separated), matching the --email/--role convention in iam users.

🤖 Generated with Claude Code


Note

Medium Risk
IAM team edits replace the full member list when --members is set, and new bucket/object settings change org access patterns; behavior is mostly additive with validation guards.

Overview
Bumps @tigrisdata/storage to ^3.16.0 and @tigrisdata/iam to ^2.2.0, then exposes the new SDK behavior in the CLI and docs (README.md, src/specs.yaml).

Bucket creation on mk and buckets create adds --allow-object-acl and --enable-directory-listing, passed through to createBucket.

Uploads: cp accepts --access public|private for local→remote uploads only (wired into put); invalid values and use on non-upload copies are rejected with guidance to use objects set-access.

Archived objects: new objects restore (restoreObject, optional --days, --version-id) and objects restore-info (getRestoreInfo; empty/null when the object is not archived).

IAM: iam teams list / create / edit call the IAM SDK, gated like other org IAM (OAuth, non-Fly), with parseMembers validating --members emails; edit requires at least one of name, description, or members.

Integration tests cover the new flags, cp --access, restore validation, and team CLI validation.

Reviewed by Cursor Bugbot for commit 71437f8. Bugbot is set up for automated code reviews on this repo. Configure here.

designcode and others added 4 commits June 25, 2026 18:42
…am to ^2.2.0

Brings in object ACL/directory-listing options on createBucket,
restoreObject/getRestoreInfo, and team management APIs, which the
following commits surface in the CLI.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- mk / buckets create: add --allow-object-acl and --enable-directory-listing,
  wired into createBucket
- cp: add --access (public|private) for local-to-remote uploads; rejected for
  other directions where it cannot apply, with a pointer to objects set-access

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- objects restore: request restoration of an archived object (e.g. GLACIER)
  for N days via restoreObject
- objects restore-info: report an object's restore state (archived,
  in-progress, restored) via getRestoreInfo

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add `iam teams list/create/edit`, mirroring `iam users`:
- list: show teams (member count in table, full members in JSON)
- create: create a team with optional description and member emails
- edit: update name/description/members (members replaced with the list)

Gated to OAuth + non-Fly orgs like the rest of iam user management.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@designcode designcode changed the title feat: surface storage 3.16 / iam 2.2 features (object ACLs, restore, teams) feat: object ACL controls, archived-object restore, and IAM teams Jun 25, 2026
- bucket ACL/listing: mk + buckets create with --allow-object-acl
  (verified via buckets get) and --enable-directory-listing
- cp --access: upload sets access; rejected for non-upload directions
  and invalid values
- objects restore/restore-info: restore-info on a non-archived object,
  --days validation, missing-key error
- iam teams: create/list/edit (OAuth-gated) plus an always-on edit
  validation check

Also stop `iam teams create --format json` from printing a trailing
Team ID line that polluted the JSON output.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0386fe6. Configure here.

Comment thread src/lib/iam/teams/edit.ts
Comment thread src/lib/iam/teams/create.ts
A valueless `--members` flag arrives as boolean `true` and an empty
`--members ""` as "", so the previous wrapping could send `[true]` to the
API or silently drop the flag (and misfire the "at least one field" check).

Add parseMembers to normalize the flag into a clean email list, erroring
when it is present without a usable value. Also coerce a bare --name /
--description so they can't forward a non-string. Covered by new validation
tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@designcode designcode merged commit 5925d65 into main Jun 26, 2026
5 checks passed
@designcode designcode deleted the feat/teams-acl-restore branch June 26, 2026 13:42
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 3.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants