Skip to content

Create Marketplace Route#27

Merged
hayesZach merged 17 commits intomasterfrom
feature/marketplace-routes
Feb 4, 2026
Merged

Create Marketplace Route#27
hayesZach merged 17 commits intomasterfrom
feature/marketplace-routes

Conversation

@hayesZach
Copy link
Copy Markdown
Collaborator

@hayesZach hayesZach commented Jan 30, 2026

Closes CSF-882
Refs CSF-876
Refs CSF-697


Note

Medium Risk
Adds a new authenticated key-management endpoint and refactors AuthMiddleware to depend on the request-scoped repository factory; mistakes in middleware ordering/context injection could break auth across routes.

Overview
Adds a versioned API router mounted at /api/v1, introducing /v1/marketplace/keys with a POST handler to create marketplace API keys.

Updates AuthMiddleware to pull repository.Factory from request context (via FactoryMiddleware) instead of being constructed with a KeyRepository, and adjusts tests accordingly. Also tightens/centralizes CSFloat-only admin-key checks via Key.IsOwnedByCSFloat() and switches Permissions.MarshalJSON to a value receiver.

Written by Cursor Bugbot for commit bc7cc86. This will update automatically on new commits. Configure here.

@hayesZach hayesZach self-assigned this Jan 30, 2026
@hayesZach hayesZach added the Enhancement New feature or request label Jan 30, 2026
@hayesZach hayesZach changed the base branch from master to feature/server January 30, 2026 18:41
Base automatically changed from feature/server to master January 30, 2026 22:31
@hayesZach hayesZach marked this pull request as ready for review January 30, 2026 22:32
@linear
Copy link
Copy Markdown

linear bot commented Jan 30, 2026

@hayesZach hayesZach requested a review from Step7750 January 30, 2026 23:43
@hayesZach hayesZach requested a review from Step7750 February 2, 2026 20:20
Copy link
Copy Markdown

@cursor cursor bot left a comment

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 and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@hayesZach hayesZach merged commit c35cf15 into master Feb 4, 2026
2 checks passed
@hayesZach hayesZach deleted the feature/marketplace-routes branch February 4, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants