-
Notifications
You must be signed in to change notification settings - Fork 1
Fix multiple policy and model support across different routes #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
|
|
@Edmond-J-A @rushitote please review |
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
|
@copilot the CI error in this PR needs to be fixed: https://github.com/casbin-lua/apisix-authz/actions/runs/18439076221/job/52537092198?pr=11 |
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Fixed the syntax issue in the |
|
the CI error in this PR needs to be fixed: https://github.com/casbin-lua/apisix-authz/actions/runs/18439866324/job/52538932615?pr=11 Log: |
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Fixed the CI download error by updating the workflow to use APISIX 3.2.0 instead of 2.7, which is no longer available for download. Updated all references from apisix-2.7 to apisix-3.2 throughout the workflow. Commit: Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot valid URL is this one: https://downloads.apache.org/apisix/2.15.3/apache-apisix-2.15.3-src.tgz |
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Updated the workflow to use APISIX 2.15.3 with the validated URL you provided. All directory references updated from apisix-3.2 to apisix-2.15. Commit: |
|
@copilot need to fix CI error Raw log is here: |
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
Fixed the CI error by changing the runner from |
Summary of Changes
Core Fix (apisix-authz.lua)
CasbinEnforcerwithCasbinEnforcerstable to store multiple enforcersmodel_path|policy_pathCurrentEnforcer(set to last accessed enforcer) for backward compatibility_M.api()functionDocumentation (README.md)
CI Workflow (.github/workflows/test.yml)
Original prompt
Fixes #10
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.