Skip to content

feat: storage capability tokens - #152

Merged
pbrassel merged 3 commits into
mainfrom
feat/storage-capability-tokens
Nov 24, 2026
Merged

pbrassel merged 3 commits into
mainfrom
feat/storage-capability-tokens

Conversation

@pbrassel

@pbrassel pbrassel commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features
    • Added support for requesting time-limited storage access tokens with specified permissions for buckets and bucket files.
    • Added publicly available models for defining storage permissions, submitting token requests, and handling token details.
  • Tests
    • Added coverage for token issuance and expiration, along with shared setup for analysis buckets and bucket files.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The client adds storage capability token models and a method to mint tokens for an analysis. Tests add authenticated token coverage and update analysis bucket and file fixtures. .env.test updates PYTEST_HUB_VERSION.

Changes: Storage Capability Token Support

Layer / File(s) Summary
Token models and client method
flame_hub/_core_client.py, flame_hub/models.py
Adds models for storage capabilities, token requests, and token responses. Adds a client method that requests a token from the analysis storage-token endpoint and exports the models.
Analysis bucket and file fixtures
tests/test_core.py
Adds shared bucket and file helpers, creates code, result, and temp bucket fixtures, and updates configured-analysis and bucket-file tests to use the code-file fixture.
Authenticated token test
.env.test, tests/test_core.py
Adds node client authentication and a token-minting test. The test requests write access to an analysis result bucket and checks the token and expiry. Updates PYTEST_HUB_VERSION to 0.20.0.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@pbrassel
pbrassel merged commit c1dcb35 into main Nov 24, 2026
7 of 8 checks passed
@pbrassel
pbrassel deleted the feat/storage-capability-tokens branch November 24, 2026 14:08
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