Skip to content

feat: add AIStor Memory API policy actions#244

Merged
harshavardhana merged 1 commit into
minio:mainfrom
harshavardhana:feat/memory-policy-actions
Jul 16, 2026
Merged

feat: add AIStor Memory API policy actions#244
harshavardhana merged 1 commit into
minio:mainfrom
harshavardhana:feat/memory-policy-actions

Conversation

@harshavardhana

Copy link
Copy Markdown
Member

Description

Adds a memory:* policy action class (MemoryAction) for MinIO AIStor's
Memory API — the third API family alongside the Object Store and Tables.
It serves agent memory on a Cortex (Memory Bucket): cortex CRUD, secrets,
and search.

Today AIStor defines these actions as bare string literals, so only the
owner/root credential satisfies them; fine-grained IAM policies referencing
memory:* become effective once the actions live in the shared policy set.

Actions

memory:CreateCortex, memory:DeleteCortex, memory:GetCortex,
memory:ListCortexes, memory:PutSecret, memory:GetSecret,
memory:DeleteSecret, memory:ListSecrets, memory:Search, and memory:*.

Changes

Mirrors the existing s3tables/s3vectors service-action classes:

  • policy/memory-action.goMemoryAction type, constants,
    SupportedMemoryActions, IsValid, and the condition-key map.
  • statement.go — action-type exclusivity, isMemory(), and the
    ValidateMemory validation block.
  • actionset.goToMemorySlice / ValidateMemory.
  • resourceset.goValidateMemory (a cortex is an S3 bucket, so resources
    use S3 ARN format, e.g. arn:aws:s3:::my-cortex).
  • memory-action_test.goIsValid and condition-key coverage.

Tests

go test ./policy/... passes (new memory-action tests + full regression).

Add the memory:* policy action class (MemoryAction) used by MinIO AIStor's
Memory API — cortex CRUD, secrets, and search on a Memory Bucket (Cortex).

Mirrors the s3tables/s3vectors service-action classes: action constants +
SupportedMemoryActions + IsValid + a condition-key map, wired into statement
validation (action-type exclusivity, isMemory, ValidateMemory) and resource
validation (a cortex is an S3 bucket, so resources use S3 ARN format).
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@harshavardhana, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 47 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e47aec67-4c97-4890-842f-7c04bff5e119

📥 Commits

Reviewing files that changed from the base of the PR and between ec2fe86 and 6afc7b7.

📒 Files selected for processing (5)
  • policy/actionset.go
  • policy/memory-action.go
  • policy/memory-action_test.go
  • policy/resourceset.go
  • policy/statement.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@harshavardhana
harshavardhana merged commit 4575139 into minio:main Jul 16, 2026
11 checks passed
@harshavardhana
harshavardhana deleted the feat/memory-policy-actions branch July 16, 2026 18:14
@harshavardhana
harshavardhana requested a review from Copilot July 16, 2026 18:14

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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