@@ -19,7 +19,7 @@ AI-driven policy management capabilities.
1919
2020## Architecture Overview
2121
22- ```
22+ ``` txt
2323Natural Language Policy Description
2424 │
2525 ▼
@@ -89,7 +89,7 @@ This lets you demonstrate finer-grained authorization: a user with full access c
8989** Build and Load Container Images (if not already done)**
9090
9191The agent and tool container images must be built locally and loaded into the kind cluster (they are not published to a public registry):
92- ```
92+ ``` bash
9393cd < path-to> /agent-examples
9494
9595# Build the GitHub tool image
@@ -216,12 +216,12 @@ kubectl get pod -n team1 -l app.kubernetes.io/name=git-issue-agent \
216216```
217217
218218Expected (proxy-sidecar mode, the cluster default):
219- ```
219+ ``` txt
220220agent authbridge-proxy
221221```
222222
223223Or, in envoy-sidecar mode:
224- ```
224+ ``` txt
225225agent envoy-proxy
226226```
227227
@@ -234,7 +234,7 @@ kubectl get pods -n team1
234234```
235235
236236Expected output:
237- ```
237+ ``` txt
238238NAME READY STATUS RESTARTS AGE
239239git-issue-agent-xxxxxxxxxx-xxxxx 2/2 Running 0 2m
240240github-tool-yyyyyyyyyyy-yyyyy 1/1 Running 0 3m
@@ -270,7 +270,7 @@ kubectl logs deployment/git-issue-agent -n team1 -c agent
270270```
271271
272272Expected:
273- ```
273+ ``` txt
274274INFO: Started server process [17]
275275INFO: Waiting for application startup.
276276INFO: Application startup complete.
@@ -324,7 +324,7 @@ curl -s http://git-issue-agent:8080/.well-known/agent.json | jq .
324324```
325325
326326Expected :
327- ```
327+ ``` txt
328328Agent card information (publicly accessible)
329329```
330330
@@ -339,7 +339,7 @@ curl -s -X POST http://git-issue-agent:8080/ \
339339```
340340
341341Expected:
342- ```
342+ ``` txt
343343{
344344 "error": "auth.unauthorized",
345345 "message": "missing Authorization header",
@@ -442,9 +442,6 @@ ALICE_TOKEN=$(curl -s -X POST \
442442 --data-urlencode " client_id=$CLIENT_ID " \
443443 --data-urlencode " client_secret=$CLIENT_SECRET " | jq -r " .access_token" )
444444
445- echo $ALICE_TOKEN
446- echo $ALICE_TOKEN | cut -d. -f2- | base64 -d | jq .
447-
448445
449446curl -s --max-time 300 \
450447 -H " Authorization: Bearer $ALICE_TOKEN " \
@@ -485,9 +482,6 @@ BOB_TOKEN=$(curl -s -X POST \
485482echo " Bob token length: ${# BOB_TOKEN} "
486483echo " Bob scopes: $( echo $BOB_TOKEN | cut -d. -f2 | base64 -d 2> /dev/null | jq -r ' .scope' ) "
487484
488- echo $BOB_TOKEN
489- echo $BOB_TOKEN | cut -d. -f2- | base64 -d | jq .
490-
491485curl -s --max-time 300 \
492486 -H " Authorization: Bearer $BOB_TOKEN " \
493487 -H " Content-Type: application/json" \
@@ -660,9 +654,6 @@ ALICE_TOKEN=$(curl -s -X POST \
660654 --data-urlencode " client_id=$CLIENT_ID " \
661655 --data-urlencode " client_secret=$CLIENT_SECRET " | jq -r " .access_token" )
662656
663- echo $ALICE_TOKEN
664- echo $ALICE_TOKEN | cut -d. -f2- | base64 -d | jq .
665-
666657
667658curl -s --max-time 300 \
668659 -H " Authorization: Bearer $ALICE_TOKEN " \
@@ -713,8 +704,6 @@ BOB_TOKEN=$(curl -s -X POST \
713704echo " Bob token length: ${# BOB_TOKEN} "
714705echo " Bob scopes: $( echo $BOB_TOKEN | cut -d. -f2- | base64 -d 2> /dev/null | jq -r ' .scope' ) "
715706
716- echo $BOB_TOKEN
717- echo $BOB_TOKEN | cut -d. -f2- | base64 -d | jq .
718707
719708curl -s --max-time 300 \
720709 -H " Authorization: Bearer $BOB_TOKEN " \
@@ -763,10 +752,6 @@ CHARLIE_TOKEN=$(curl -s -X POST \
763752 --data-urlencode " client_id=$CLIENT_ID " \
764753 --data-urlencode " client_secret=$CLIENT_SECRET " | jq -r " .access_token" )
765754
766- echo $CHARLIE_TOKEN
767- echo $CHARLIE_TOKEN | cut -d. -f2- | base64 -d | jq .
768-
769-
770755
771756curl -s --max-time 300 \
772757 -H " Authorization: Bearer $CHARLIE_TOKEN " \
@@ -828,7 +813,7 @@ echo -e "\n5. Sales is now just like Tech-support (\"Other personnel\"):"
828813yq ' .policy.sales[] | select(.client == "github-tool" and .role == "github-tool-aud")' generated_configs/permissive_policy_policy.yaml
829814```
830815Expected output :
831- ``` bash
816+ ``` txt
8328171. Developer has github-full-access:
833818client: github-tool
834819role: github-full-access
0 commit comments