Repository navigation
docs(authbridge): trim demos.md and fix token/deploy guidance - #1680
Conversation
9104728 to
18326a8
Compare
|
Updated PR: added DCO sign-off and restored a Verify deployment section plus Layer 1 inbound checks (agent card, no token, invalid token, JWT decode, E2E curl). Single-file commit only. |
|
Also updated |
da5f4fa to
d6fc07d
Compare
|
Rebased onto current Also added a small Gotchas subsection to
Three commits now: the original demos.md trim, the install.md CPU/secret doc, and the new gotchas. PR is |
d6fc07d to
c216c5a
Compare
Link to the weather UI demo for deployment. Document credentials, OAuth clients, A2A on :8080, deploy verification commands, and inbound CLI checks. Note 4-CPU Kind/Podman resource tips. Fixes kagenti#1679 Signed-off-by: Mariusz Sabath <[email protected]>
Recommend 8 CPUs for typical Kind/Podman installs; note that 4 CPUs often causes Shipwright build pods to stay Pending. Fix keycloak-admin-secret docs to reflect operator 0.2+ storage in kagenti-system. Fixes kagenti#1679 Signed-off-by: Mariusz Sabath <[email protected]>
Capture two pitfalls surfaced while running the weather agent demo: - admin-cli lives in the master realm, not kagenti. Hitting the kagenti realm's token endpoint with admin credentials returns null and cascades into empty-token failures downstream. - 'aud not satisfied' from AuthBridge for client_credentials tokens on operator <= v0.2.0-rc.5 — the agent's client was registered before the realm audience scope existed, so the SPIFFE audience never lands in the token. Linked to the issue and fix PR upstream. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Mariusz Sabath <[email protected]>
c216c5a to
e066393
Compare
…bient mesh The core Istio Gateway controller (istio-base + istiod) is always installed and required for *.localtest.me:8080 ingress (gatewayClassName: istio), while --with-istio is a separate optional ambient mesh. Note that the AuthBridge weather demo does not need --with-istio. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Mariusz Sabath <[email protected]>
Alan-Cha
left a comment
There was a problem hiding this comment.
Code Review
Docs-only PR (2 files, +185/−198): trims docs/authbridge/demos.md ~40% by replacing duplicated UI walkthroughs with pointers to the kagenti-extensions demo guides, and corrects docs/install.md on the operator's Keycloak admin secret and local CPU/RAM guidance. I verified the substantive claims against the live kagenti charts, the installer script, and the kagenti-extensions repo — the high-stakes factual claims all check out.
Correctness — verified against source
- ✅ Keycloak secret correction is accurate.
charts/kagenti/values.yamlhas exactlyadminSecretName: keycloak-initial-admin,adminUsernameKey: username,adminPasswordKey: password,namespace: keycloak. The removedkeycloak-admin-secret/adminExistingSecretchart values do not exist in the current chart, so removing that guidance is correct. - ✅ The
--keycloak-admin-secret-namespaceoperator flag exists (kagenti-operator/cmd/main.go,manager.yaml). - ✅ CPU/RAM numbers match the installer.
setup-kagenti.shsetsRECOMMENDED_MEMORY_MB=18432/RECOMMENDED_CPUS=6, warn-only (never fails) — exactly as the new wording states. - ✅ Cross-repo links resolve on
main:demo-ui.md,demo-ui-advanced.md, andtoken-exchange-routes/README.mdall exist;#github-issue-agent-full-authbridge-flowmatches the actual### GitHub Issue Agent (Full AuthBridge Flow)heading.
Issues / Risks
⚠️ Residual contradiction (out of scope, worth flagging).deployments/envs/secret_values.yaml.examplestill contains akeycloak: { adminUsername: admin, adminPassword: admin }block with a comment describingkeycloak-admin-secret"for agent namespace secrets… used by the AuthBridge client-registration sidecar" — the exact model this PR now declares "invented" and removes frominstall.md. Either that example file is stale and should be cleaned up in a follow-up, or the AuthBridge sidecar path genuinely differs from the operator path (in which case the "invented chart values" framing is slightly too absolute). Recommend a follow-up issue to reconcile.- 🔸 Port/endpoint change is a real behavioral fix — confirm end-to-end. The doc moves from
weather-service.team1.svc:8000/runwith{"query": ...}toweather-service:8080/with a JSON-RPC A2Amessage/sendenvelope. Consistent with the "Service fronts AuthBridge on 8080" verify step, but this is the one change a reviewer running the demo should confirm (the PR's own checklist leaves "follow Layer 1 after UI deploy" unchecked). - 🔸 JWT decode one-liner is fragile. The inline
python3 -c "..."base64url decoder works but is hard to maintain in a doc. Minor; acceptable for a demo. The note that JWTs use base64url (notbase64 -d) is a good correction.
Style
- ✅ Good use of tables and blockquote callouts, consistent with existing file style.
- 🔸 Unicode right-single-quote (U+2019) appears in the new
install.mdprose ("node's", "operator's") while the rest of the file uses ASCII'. Minor consistency nit.
Test Coverage / Security
- N/A (docs). Test plan is appropriate; I independently reproduced the chart/installer verifications.
- ✅ No secrets committed; retains the production note steering toward a dedicated service account over the admin account. The
admin-cli/master-realm and audience-claim gotchas are accurate.
Verdict
Approve. Accurate, well-verified, reduces duplication and fixes genuinely wrong guidance. The one substantive follow-up is reconciling the stale deployments/envs/secret_values.yaml.example comment so the "invented values" claim isn't itself contradicted by a file still in the tree.
🤖 Generated with Claude Code
clawgenti
left a comment
There was a problem hiding this comment.
Docs-only cleanup across two files — all CI checks pass, all commits carry DCO sign-off, and the factual claims appear accurate based on the PR's own verification notes and the prior review by @Alan-Cha. One minor inconsistency: the second commit message says "Recommend 8 CPUs" but the actual table in install.md lists 6 CPUs as the recommended profile — the doc content looks correct; the commit headline is off.
Reviewed by clawgenti using github:pr-review
|
|
||
| | Profile | RAM | CPUs | Typical install | | ||
| |---------|-----|------|-----------------| | ||
| | **Recommended** | 18 GiB | **6** | `--with-istio --with-spire --with-ui --with-backend` plus AuthBridge demos | |
There was a problem hiding this comment.
nit: Commit 1553fa8 headline says "Recommend 8 CPUs" but the table here lists 6 CPUs as the recommended profile (--with-istio --with-spire --with-ui --with-backend plus demos). The doc content is internally consistent and matches setup-kagenti.sh (RECOMMENDED_CPUS=6) — the discrepancy is only in the commit message, so this is purely informational and does not affect the content.
…d why Address review feedback that the walkthrough read as a bare series of commands. Add a 'What AuthBridge does' intro + a 3-step 'how it works', and a one-line 'what this proves' framing to each Layer, so a new reader learns the value (sidecar-enforced identity, per-hop token delegation) rather than just running curls. Also clarify the advanced demo's scope, soften the deploy-vs-learn wording, and drop a duplicate mention of 87-setup-test-credentials.sh. Commands are unchanged. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Mariusz Sabath <[email protected]>
clawgenti
left a comment
There was a problem hiding this comment.
Docs-only rewrite — content is accurate, well-structured, and the OAuth client guidance + credential gotchas address real user pain points. All CI passes.
Findings:
- Commit subject lines use
docs(scope):style without an emoji prefix; the Kagentigit:commitconvention requires a leading emoji (e.g.📝 docs(authbridge): …). Applies to all 5 feature commits.
Reviewed by clawgenti using github:pr-review
|
|
||
| A progressive learning path that starts with seeing AuthBridge work transparently, | ||
| then peels back layers to show what's happening underneath. | ||
| **What AuthBridge does:** it's a sidecar proxy injected next to each agent that gives |
There was a problem hiding this comment.
nit / commit convention: The commit that introduces this section (docs(authbridge): trim demos.md…) has no emoji prefix. All Kagenti commits should start with a recognized emoji per git:commit conventions (e.g. 📝 docs(authbridge): trim demos.md…). Same applies to the other four commits in this PR.
…ibution Address review feedback that the walkthrough was hard to follow for a newcomer and that the assisting text was fragmentary. - Fix the intro: SPIRE issues the SPIFFE identity; the operator registers the Keycloak OAuth client (previously conflated). - Rewrite the fragmentary lead-ins and inline comments into complete, plain-English sentences that explain what each step does and what a healthy result looks like. - Expand Layers 2-5 from one-line fragments into short explanations of what the layer demonstrates and what to look for. - Promote two commands that were buried in prose (the oauth-secret-job wait and the Layer 3 rollout restart) into their own code blocks. - Remove the duplicate mention of 87-setup-test-credentials.sh. All executable commands are unchanged. Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Mariusz Sabath <[email protected]>
|
@Alan-Cha thanks for the thorough review — all your points are addressed in Your comments:
Fragmentary prose: did a full pass — every fragment is now a complete sentence, and the inline command comments explain the why and the expected result. All executable commands are unchanged (verified by diff); I only reworded comments and promoted two commands that were buried in prose into their own code blocks. From running it live (folded into the PR): the Your |
…mple The keycloak: block in the (already deprecated) secret_values.yaml.example described a keycloak-admin-secret created in agent namespaces for the AuthBridge client-registration sidecar. That model no longer exists: the operator reads keycloak-initial-admin from the keycloak namespace, and the chart exposes no keycloak.adminUsername/adminPassword values. Remove the block so the reference example does not contradict the corrected install.md. Addresses the follow-up raised in review (previously tracked as #2210). Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Mariusz Sabath <[email protected]>
|
Update on the `secret_values.yaml.example` point: rather than leave it as a follow-up, I pulled the fix into this PR (commit 03b5953) — removed the stale `keycloak:` block from that (already deprecated) example, since its `keycloak-admin-secret` / agent-namespace comment no longer matches how the operator works. Issue #2210 is closed as superseded. |
clawgenti
left a comment
There was a problem hiding this comment.
Docs-only update across three files — all CI checks pass, all feature commits carry DCO sign-off, and the factual corrections (keycloak-initial-admin secret location, CPU/RAM profiles, Istio gateway vs ambient mesh) are consistent with what a prior review by @Alan-Cha independently verified against the live charts and installer.
No blocking issues found. All checks pass. Ready for human review.
Reviewed by clawgenti using github:pr-review
Alan-Cha
left a comment
There was a problem hiding this comment.
Docs-only rewrite of the AuthBridge demo walkthrough and install guide — replaces stale/duplicated content with verified guidance and adds narrative context for newcomers. This PR was extensively pre-reviewed across its commit history (by me and the clawgenti bot); the one outstanding item from my earlier review round (a stale keycloak: block in deployments/envs/secret_values.yaml.example that contradicted the corrected install.md) is now resolved in the final commit.
I independently re-verified the newer claims added since that pass, against origin/main:
| Claim | Result |
|---|---|
weather-service Service fronts AuthBridge on port 8080 (container listens on 8000) |
Confirmed — kagenti/examples/agents/weather_service_service.yaml |
kagenti-test-user secret (keycloak ns, keys password/client_id/client_secret) created by 87-setup-test-credentials.sh |
Confirmed verbatim |
kagenti-agent-oauth-secret-job job in kagenti-system |
Confirmed — charts/kagenti/templates/agent-oauth-secret-job.yaml |
authbridge-proxy vs envoy-proxy container names by sidecar mode |
Confirmed verbatim — charts/kagenti/templates/kagenti-authbridge-scc.yaml |
Agent card name "Weather Assistant" at /.well-known/agent.json |
Unverifiable locally — the container image lives in kagenti-extensions/agent-examples, not this repo. Port chain and path convention are both plausible; not a blocker given the PR's test plan states this was run live on a fresh Kind cluster. |
No must-fix issues.
Author: mrsabath (MEMBER — maintainer)
Areas reviewed: Docs
Agent/IDE config (.claude/.vscode): none
Commits: 8 commits, 6 requiring sign-off, all signed-off (2 merge commits exempt)
CI status: passing (E2E HyperShift pending — manual trigger, not required)
# Conflicts: # docs/install.md
|
Heads-up on the latest merge (resolving a conflict from Both changes were fixing the same wrong section, so I resolved the conflict by taking The PR's remaining All of your earlier inline comments are addressed and resolved above. Thanks again for the reviews. |
Summary
Rewrites
docs/authbridge/demos.mdfor clarity and correctsdocs/install.mdand a stalelegacy secrets example, based on running the AuthBridge beginner path on Kind and verifying
claims against the current charts/operator.
demos.mdSPIFFE identity; the operator registers the Keycloak OAuth client; the sidecar enforces
inbound/outbound auth) instead of a bare list of commands.
rewrite the fragmentary inline comments into complete sentences a newcomer can follow.
(no duplicated UI steps); document
KAGENTI_UI_PWand the OAuth client pitfalls(
kagenti/admin-cli/kagenti-e2e-tests).weather-service:8080; correct the expected agent-card nameto
Weather Assistant; fixtest-client(bare pod, notdeploy/) and the87-setup-test-credentials.shinvocation (KEYCLOAK_URL=http://keycloak.localtest.me:8080on Kind).
(
#github-issue-agent-full-authbridge-flow;token-exchange-routes/README.md).install.mdreads the
keycloak-initial-adminSecret from thekeycloaknamespace (keysusername/password), configurable viakeycloak.adminSecretName/keycloak.adminUsernameKey/keycloak.adminPasswordKey. (An earlier draft of this PRincorrectly described a
keycloak-admin-secretinkagenti-systemwith invented chartvalues — that has been removed.)
with numbers matching the installer's pre-flight check (6 CPUs / 18 GiB recommended,
warn-only — not a hard minimum).
for ingress);
--with-istiois the optional ambient mesh.deployments/envs/secret_values.yaml.examplekeycloak:block from this (already deprecated) example. Its commentdescribed a
keycloak-admin-secretcreated in agent namespaces for the AuthBridgeclient-registration sidecar — a model that no longer exists — so it contradicted the
corrected
install.md.Test plan
agent → Layer 1 A2A checks) and verified AuthBridge inbound enforcement live
charts/kagenti,charts/kagenti-operator, andscripts/kind/setup-kagenti.shmainIssue
Closes #1679 (partial — see also kagenti-extensions #671 for the
demo-ui.mdside).Supersedes #2210 (the secrets-example fix is now included here).
Assisted-By: Claude Code