feat/controlplane api projector#397
Open
ron96g wants to merge 10 commits into
Open
Conversation
…token Add issuer_url field to Zone entity for per-zone identity provider configuration. Rename Team.rover_token_ref to Team.team_token to reflect the generalized token concept. Includes generated ent code and projector domain updates for both entities.
Add client secret rotation support to Application entity with fields for rotated_client_secret, rotation phase tracking, and expiration timestamps. Remove issuer_url from Application (moved to Zone). Add secrets resolver package for external secret manager integration with deployment patches for SA token projection and trust bundle. Includes projector domain updates for the new application fields.
Introduce EventExposure and EventSubscription ent schemas with visibility, delivery type, approval config, and cascade delete support. Wire new edges from Application, Approval, and ApprovalRequest. Add cascade delete for ApiSubscription approval requests. Includes all generated ent code, projector domains for event exposure/subscription, updated approval/approvalrequest projectors, and shared infrastructure (id resolver, cache keys).
Add event exposure and subscription types, queries, and mutations to the GraphQL schema. Implement resolvers for creating, updating, and deleting event exposures and subscriptions with approval workflow support. Add mutation helper utilities and info type models. Includes updated gqlgen config and all generated resolver code.
Add RFC 9457-aware GraphQL error presenter that maps Problem types to appropriate error extensions. Add mutation logging middleware for structured audit logging of all GraphQL mutations. Wire both into the GraphQL controller setup.
Refactor viewer middleware to support team-scoped authentication and updated token extraction. Extend services layer with event exposure and subscription CRUD operations. Update team interceptor filtering logic and add build decision test coverage. Remove deprecated helpers.go in favor of inline implementations. Update test utilities and seed data for new entity types.
Introduce first-class Api and EventType entities that represent the catalogue of registered APIs and event types, independent of their exposures in specific environments. Components changed: - api: add Specification field to ApiSpec CRD type - controlplane-api: add Api and EventType ent schemas with owner/team edges, GraphQL relay connections, specification URL resolver, and file-manager base URL configuration - projector: add api and eventtype domain modules (translator, repository, cache keys, ID resolver) and wire into bootstrap - Link ApiExposure -> Api and EventExposure -> EventType via optional FK edges resolved from the active catalogue entry - rover: propagate Specification field when syncing Api CRs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the missing core features to the controlplane-api: