Commit 03662b1
* feat(#3647): auth pivot, dev scaffold, entity provider fixes
Pivot Kagenti authentication from per-user RFC 8693 token exchange
to service-account OAuth2 Client Credentials Grant. Add dev
scaffold (app-config.yaml, packages/backend, load-secrets.sh).
Fix entity provider API URLs and response handling.
Auth pivot (config.d.ts, schemas.ts, schemas.test.ts):
- Replace tokenExchange.{enabled,audience,userTokenHeader} with
flat tokenEndpoint, clientId, clientSecret, tokenExpiryBufferSeconds
- Bump BOOST_CONFIG_SCHEMA_VERSION to 2
- clientSecret marked sensitive: true with @visibility secret
- tokenExpiryBufferSeconds: .number().int().min(0).optional()
- Add validation tests for new fields
Entity provider fixes (kagenti-entity-provider):
- New KeycloakAuthClient: OAuth2 Client Credentials Grant with
token caching and configurable expiry buffer
- Fix API URLs from /a2a/ to /api/v1/ for agents and tools
- Add unwrapItems helper for {items:T[]} and T[] responses
- Pass optional authClient to entity providers
- Module reads boost.kagenti.auth.* and constructs auth client
- Add tests for auth, URL patterns, response unwrapping
Dev scaffold:
- app-config.yaml with guest auth, SQLite, dev providers
- packages/backend host with metrics shim and boost plugins
- scripts/load-secrets.sh for K8s dev secret loading
Spec updates across 14 specification/openspec files:
- Rename "Per-User Identity Delegation" to "Service-Account
Keycloak Authentication" throughout
- Add boost-responses-api-toolkit and boost-toolscope to workspace
structure docs
- Add Local Development section to boost-context.md
- Update staged-issues.md issue 13 and add issue 16 URL
TODO comments added to mcp/routes.ts and skills/routes.ts for
future catalog cross-reference.
Closes #3647
* fix(kagenti-entity-provider): address review findings for PR 3648
- Remove fail-open auth pattern: let getBearerToken() throw propagate
to refresh() catch which serves cached entities (not unauthenticated)
- Wire tokenExpiryBufferSeconds from config to KeycloakAuthClient
- Clamp token expiry to prevent hot-loop when buffer >= token lifetime
- Validate access_token exists in Keycloak response before caching
- Remove dead auth field from KagentiEntityProviderConfig type
- Update tests to expect auth-failure-serves-cached behavior
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(boost): address review findings from second review agent run
- Add partial auth config detection with warning log in readKagentiAuthConfig
when only 1-2 of 3 required fields (tokenEndpoint, clientId, clientSecret)
are present
- Rename KeycloakTokenManager to KeycloakAuthClient across all docs and specs
for naming consistency with the actual code class name
- Fix stale class name and file path in pluggable-ai-platform-architecture PRD
cache migration table
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: gabemontero <gmontero@redhat.com>
* docs(boost): update issue 3309 and staged-issues with PR 3648 completions
Mark tasks 7.1, 7.2, 7.4, 7.5a as complete in tasks.md and
staged-issues.md. Split task 7.5 into 7.5a (entity providers, done)
and 7.5b (KagentiApiClient, remaining). Add note clarifying that
remaining auth tasks target boost-backend-module-kagenti.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs(boost): add issue 17 (KeycloakAuthClient cacheService migration) to staged-issues
Tracks #3654 — refactor KeycloakAuthClient to use Backstage
cacheService instead of in-memory token cache, aligning with
design principle 1.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(boost): harden dev scaffold security defaults
- Remove dangerouslyAllowOutsideDevelopment from guest auth config;
Backstage already allows guest auth in development mode by default
- Make NODE_TLS_REJECT_UNAUTHORIZED overridable in load-secrets.sh
so operators can enforce TLS verification when not using self-signed
certs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs(boost): clarify X-Backstage-User scope in auth specs
X-Backstage-User header only applies to user-initiated requests via
KagentiApiClient (chat, agent operations), not entity provider
background polling which has no user context. Updated access-control
spec, security design doc, and boost-context to make this distinction
explicit.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: gabemontero <gmontero@redhat.com>
---------
Signed-off-by: gabemontero <gmontero@redhat.com>
Co-authored-by: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com>
Co-authored-by: gabemontero <gmontero@redhat.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e2df0a3 commit 03662b1
33 files changed
Lines changed: 990 additions & 150 deletions
File tree
- workspaces/boost
- openspec/changes
- platform-operations-deployment
- specs/runtime-config
- pluggable-ai-platform-architecture
- specs/provider-packaging
- security-safety-governance
- specs/access-control
- packages/backend
- src
- plugins
- boost-backend
- src
- config
- mcp
- skills
- kagenti-entity-provider/src
- providers
- scripts
- specifications
- prd
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
Lines changed: 44 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
96 | 94 | | |
97 | | - | |
| 95 | + | |
98 | 96 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
103 | 100 | | |
104 | | - | |
| 101 | + | |
105 | 102 | | |
106 | | - | |
107 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
108 | 119 | | |
109 | 120 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
113 | 135 | | |
114 | 136 | | |
115 | 137 | | |
116 | | - | |
| 138 | + | |
117 | 139 | | |
118 | | - | |
| 140 | + | |
119 | 141 | | |
120 | 142 | | |
121 | 143 | | |
| |||
Lines changed: 11 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments