Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
zenstackhq
/
zenstack
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
155
Star
2.9k
Code
Issues
167
Pull requests
13
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
feat(policy): add optional error code to @@allow/@@deny attributes
- #2636
#2636
Open
Azzerty23
wants to merge 23 commits into
zenstackhq:dev
zenstackhq/zenstack:dev
from
Azzerty23:feat/policy-custom-error-codes
Azzerty23/zenstack:feat/policy-custom-error-codes
Copy head branch name to clipboard
Conversation
Commits
23
(23)
Checks
Files changed
Open
feat(policy): add optional error code to @@allow/@@deny attributes
#2636
Azzerty23
wants to merge 23 commits into
zenstackhq:dev
zenstackhq/zenstack:dev
from
Azzerty23:feat/policy-custom-error-codes
Azzerty23/zenstack:feat/policy-custom-error-codes
Copy head branch name to clipboard
Commits
Commits on May 1, 2026
feat(policy): add optional error code to @@allow/@@deny attributes
Show description for a191d19
Azzerty23
and
claude
committed
a191d19
View commit details
Copy full SHA for a191d19
Browse repository at this point
feat(policy): surface all matching policy error codes instead of first-match only
Show description for e7b6888
Azzerty23
and
claude
committed
e7b6888
View commit details
Copy full SHA for e7b6888
Browse repository at this point
feat(policy): support enum values as error codes in @@allow/@@deny
Show description for 084b6ef
Azzerty23
and
claude
committed
084b6ef
View commit details
Copy full SHA for 084b6ef
Browse repository at this point
feat(policy): add fetchPolicyCodes option to opt out of diagnostic query
Show description for 9f30287
Azzerty23
and
claude
committed
9f30287
View commit details
Copy full SHA for 9f30287
Browse repository at this point
fix(policy): correct allow-rule diagnostic negation; drop field-level errorCode support
Show description for 0ffc32c
Azzerty23
and
claude
committed
0ffc32c
View commit details
Copy full SHA for 0ffc32c
Browse repository at this point
test(policy): remove duplicated test
Show description for c9ec333
Azzerty23
and
claude
committed
c9ec333
View commit details
Copy full SHA for c9ec333
Browse repository at this point
Commits on May 2, 2026
feat(policy): surface error codes for update and delete violations
Show description for a45b5cc
Azzerty23
and
claude
committed
a45b5cc
View commit details
Copy full SHA for a45b5cc
Browse repository at this point
refactor(policy): replace postModelLevelCheck with postMutationZeroRowsCheck
Show description for 0ffadd4
Azzerty23
and
claude
committed
0ffadd4
View commit details
Copy full SHA for 0ffadd4
Browse repository at this point
refactor(policy): simplify fetchPolicyCodes guard and align test expectations
Show description for 4dcdcec
Azzerty23
and
claude
committed
4dcdcec
View commit details
Copy full SHA for 4dcdcec
Browse repository at this point
feat(policy): surface error codes for single-row read violations
Show description for 934d719
Azzerty23
and
claude
committed
934d719
View commit details
Copy full SHA for 934d719
Browse repository at this point
fix(tests): remove autoincrement and move m2m guard before policy check
Azzerty23
committed
84a698f
View commit details
Copy full SHA for 84a698f
Browse repository at this point
fix(policy): bypass read-policy hooks on internal pre-load queries for dialects without RETURNING
Show description for 885a04c
Azzerty23
and
claude
committed
885a04c
View commit details
Copy full SHA for 885a04c
Browse repository at this point
Commits on May 4, 2026
Merge branch 'dev' into feat/policy-custom-error-codes
Azzerty23
committed
90cad9a
View commit details
Copy full SHA for 90cad9a
Browse repository at this point
fix(policy): restrict error-code surfacing to OrThrow read variants
Azzerty23
committed
b0529a6
View commit details
Copy full SHA for b0529a6
Browse repository at this point
fix(build): prevent node:async_hooks from leaking into client bundles
Show description for 58f0efb
Azzerty23
and
claude
committed
58f0efb
View commit details
Copy full SHA for 58f0efb
Browse repository at this point
Commits on May 5, 2026
fix(policy): bypass read policy for MySQL pre-load SELECT during UPDATE
Show description for f249191
Azzerty23
and
claude
committed
f249191
View commit details
Copy full SHA for f249191
Browse repository at this point
refactor(policy): simplify MySQL pre-load bypass — pass connection directly to executeQueryDirect
Show description for 5821b3c
Azzerty23
and
claude
committed
5821b3c
View commit details
Copy full SHA for 5821b3c
Browse repository at this point
Revert "fix(policy): bypass read-policy hooks on internal pre-load queries for dialects without RETURNING"
Show description for 69ef4fa
Azzerty23
committed
69ef4fa
View commit details
Copy full SHA for 69ef4fa
Browse repository at this point
Merge branch 'feat/policy-custom-error-codes' into test/mysql-bypass
Azzerty23
committed
23a8253
View commit details
Copy full SHA for 23a8253
Browse repository at this point
refactor(policy): replace AsyncLocalStorage with explicit queryContext map
Show description for 86a2111
Azzerty23
and
claude
committed
86a2111
View commit details
Copy full SHA for 86a2111
Browse repository at this point
fix(client): handle wrapped executor in sequential transactions
Show description for 7a2316c
Azzerty23
and
claude
committed
7a2316c
View commit details
Copy full SHA for 7a2316c
Browse repository at this point
fix(client): prevent nested BEGIN in sequential transaction by forcing transaction context
Azzerty23
committed
eca01e1
View commit details
Copy full SHA for eca01e1
Browse repository at this point
refactor(client): consolidate direct-read bypass into read/readUnique via direct flag
Show description for f3f126c
Azzerty23
and
claude
committed
f3f126c
View commit details
Copy full SHA for f3f126c
Browse repository at this point
You can’t perform that action at this time.