@@ -378,7 +378,7 @@ REALM_NAME=kagenti
378378Run the setup script to create the demo realm with clients, roles, and users:
379379
380380``` bash
381- python setup_keycloak.py -rbac config.yaml
381+ python setup_keycloak.py -rbac rbac/ config.yaml
382382```
383383
384384Open bash inside the test client pod
@@ -560,26 +560,26 @@ python aiac_cli.py policies/regular_policy.txt
560560```
561561
562562Review generated files:
563- - Configuration: generated_configs /regular_policy_config.yaml
564- - Rules: generated_configs /regular_policy_policy.yaml
563+ - Configuration: config /regular_policy_config.yaml
564+ - Rules: config /regular_policy_policy.yaml
565565
566566
567567Verify results
568568``` bash
569569echo " 1. Developer has github-full-access:"
570- yq ' .policy.developer[] | select(.client == "github-tool" and .role == "github-full-access")' generated_configs /regular_policy_policy.yaml
570+ yq ' .policy.developer[] | select(.client == "github-tool" and .role == "github-full-access")' config /regular_policy_policy.yaml
571571
572572echo -e " \n2. Developer has github-tool-aud:"
573- yq ' .policy.developer[] | select(.client == "github-tool" and .role == "github-tool-aud")' generated_configs /regular_policy_policy.yaml
573+ yq ' .policy.developer[] | select(.client == "github-tool" and .role == "github-tool-aud")' config /regular_policy_policy.yaml
574574
575575echo -e " \n3. Tech-support has github-tool-aud:"
576- yq ' .policy.tech-support[] | select(.client == "github-tool" and .role == "github-tool-aud")' generated_configs /regular_policy_policy.yaml
576+ yq ' .policy.tech-support[] | select(.client == "github-tool" and .role == "github-tool-aud")' config /regular_policy_policy.yaml
577577
578578echo -e " \n4. Tech-support does NOT have github-full-access (should be empty):"
579- yq ' .policy.tech-support[] | select(.client == "github-tool" and .role == "github-full-access")' generated_configs /regular_policy_policy.yaml
579+ yq ' .policy.tech-support[] | select(.client == "github-tool" and .role == "github-full-access")' config /regular_policy_policy.yaml
580580
581581echo -e " \n5. Sales does NOT exist in policy (should be null):"
582- yq ' .policy.sales' generated_configs /regular_policy_policy.yaml
582+ yq ' .policy.sales' config /regular_policy_policy.yaml
583583```
584584Expected output :
585585``` bash
@@ -641,7 +641,7 @@ echo "Client ID: $CLIENT_ID Secret length: ${#CLIENT_SECRET}"
641641
642642
643643# step 2 - run AIAC using regualr policy
644- # python AIAC .py policy /regular_policy.txt
644+ # python aiac_cli .py policies /regular_policy.txt
645645# users will be configured acording to the 'regular' policy
646646# ALICE (Developer) can list issues in kagenti/kagenti repo
647647# ALICE can also list issues in omerboehm/intro2c repo (because she is a DEVELOPER and has full access)
@@ -791,26 +791,26 @@ Apply the updated policy
791791python aiac_cli.py policies/permissive_policy.txt
792792```
793793Review generated files:
794- - Configuration: generated_configs /permissive_policy_config.yaml
795- - Rules: generated_configs /permissive_policy_policy.yaml
794+ - Configuration: config /permissive_policy_config.yaml
795+ - Rules: config /permissive_policy_policy.yaml
796796
797797
798798Verify results
799799``` bash
800800echo " 1. Developer has github-full-access:"
801- yq ' .policy.developer[] | select(.client == "github-tool" and .role == "github-full-access")' generated_configs /permissive_policy_policy.yaml
801+ yq ' .policy.developer[] | select(.client == "github-tool" and .role == "github-full-access")' config /permissive_policy_policy.yaml
802802
803803echo -e " \n2. Developer has github-tool-aud:"
804- yq ' .policy.developer[] | select(.client == "github-tool" and .role == "github-tool-aud")' generated_configs /permissive_policy_policy.yaml
804+ yq ' .policy.developer[] | select(.client == "github-tool" and .role == "github-tool-aud")' config /permissive_policy_policy.yaml
805805
806806echo -e " \n3. Tech-support has github-tool-aud:"
807- yq ' .policy.tech-support[] | select(.client == "github-tool" and .role == "github-tool-aud")' generated_configs /permissive_policy_policy.yaml
807+ yq ' .policy.tech-support[] | select(.client == "github-tool" and .role == "github-tool-aud")' config /permissive_policy_policy.yaml
808808
809809echo -e " \n4. Tech-support does NOT have github-full-access (should be empty):"
810- yq ' .policy.tech-support[] | select(.client == "github-tool" and .role == "github-full-access")' generated_configs /permissive_policy_policy.yaml
810+ yq ' .policy.tech-support[] | select(.client == "github-tool" and .role == "github-full-access")' config /permissive_policy_policy.yaml
811811
812812echo -e " \n5. Sales is now just like Tech-support (\" Other personnel\" ):"
813- yq ' .policy.sales[] | select(.client == "github-tool" and .role == "github-tool-aud")' generated_configs /permissive_policy_policy.yaml
813+ yq ' .policy.sales[] | select(.client == "github-tool" and .role == "github-tool-aud")' config /permissive_policy_policy.yaml
814814```
815815Expected output :
816816``` txt
@@ -831,17 +831,18 @@ role: github-tool-aud
8318315. Sales is now just like Tech-support ("Other personnel"):
832832client: github-tool
833833role: github-tool-aud
834-
834+ ```
835835
836836
837837### Step 17: Reset Realm (Optional)
838838
839839To clean up and start fresh:
840840
841841``` bash
842+ cd demos/github-issue/
842843# delete generated policies
843- rm -f generated_configs /*.yaml
844+ rm -f aiac/config /* .yaml
844845
845846# re-provision the realm
846- python setup_keycloak.py -rbac config.yaml
847+ python setup_keycloak.py -rbac rbac/ config.yaml
847848```
0 commit comments