rossoctl / rossoctl/cortex

feature: Core Arbitration for Overlapping Plugin Responsibilities in Kagenti AuthBridge

Open
#398 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
Go
Stars
13
Forks
40
Avg merge
12h 17m
Merged PRs (30d)
156

Description

Feature Description

Add Core‑level arbitration logic to Kagenti AuthBridge so that when multiple plugins define behaviors for the same outbound route or token‑handling operation, only one plugin is selected according to a deterministic rule, preventing conflicting actions.

Kagenti AuthBridge supports a plugin architecture - some of the plugins may offer conflicting behavior resulting in failures:

  • e.g. when both exchange and broker decide to replace a token

Introduce Core‑level arbitration so that:

  • Only one plugin is selected to handle a given outbound request when multiple plugins match and divide the space between them.
  • Arbitration happens before plugin execution, not during or after.
  • The arbitration mechanism is configurable, predictable, and transparent.
Proposed Solution

Plugins will define what their responsibility ( a string) - e.g. both exchange and broker define a responsibility of "Token Handler". Create a Passthrough plugin - also defined as "Token Handler"

Option 1: Simplify - Remove support for default behavior - Token Handler plugins will only act when they have a defined route. The order of plugins will determine the precedence - the second Token Handler plugin defined will only be called if the first Token Handler plugin do not have a route, etc. If none of the Token Handler plugins have a route - block the route.

Option 2: Move the config of routes to core - core will handle a AuthBridge wide default for all Token Handler plugins. Route has a mandatory host and action - use the Token Handler plugin based on action. Routes may include additional parameters not handled by core and can be used to extend config of the plugins.

Want to contribute?
  • I would like to work on this issue.
Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by reading the AuthBridge core plugin dispatch, responsibility definitions, and route configuration, then resolve whether Option 1 or Option 2 is intended. Done means a documented, configurable arbitration rule selects one matching plugin before execution and verifies conflicting token-handler cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.