Replies: 1 comment 4 replies
-
|
+1 to Pure v1 here. This change will eventually be released with a new version of Authorino. Users who want to migrate to such version should prepare for the breaking change.
If this is absolutely imperative, well-known attributes could be introduced exposing internals of the binary such as the version of Authorino and/or some of its modules. Users could rely on those attributes to write dynamic external policy URLs that would always fetch the appropriate version of their OPA policies. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
OPA Migration Strategy Discussion
Background
We need your input on a critical decision about migrating from OPA v0.x to OPA v1.x in Authorino. This affects anyone using OPA policies in their AuthConfig resources.
Current Situation
What We've Done So Far
v0 Compatibility Paradox
During our migration testing in PR #545, we discovered something unexpected: OPA v1's v0 compatibility mode is actually MORE restrictive than pure OPA v1 in some cases.
What We Found:
Why This Happens:
This means any AuthConfig using OPA policies would likely need syntax updates regardless of which approach we choose.
OPA Documentation References
For more details on OPA's migration approach, see:
The Decision We Need to Make
Option A: Stay on v0 Behavior (Current State)
Option B: Migrate to v1 with "v0 Compatibility"
Option C: Full (Pure) v1 Migration (Clean Break)
Real-World Examples
v0 Compatibility Mode Restrictions
Pure v1 Syntax
External Policy Implications
Important: External OPA policies (referenced by URL) must be compatible with whichever mode we choose:
Example external policy issue we encountered:
We Need Your Input! 🗣️
1. Your Current OPA Usage
2. Breaking Change Tolerance (Updated)
Given that all options except A require some policy updates:
3. External Dependencies
4. Migration Support
What would help you migrate?
Suggested Timeline
Additional Resources
Key Questions for Discussion
Context: Why This Matters
Please share your thoughts, use cases, and preferences below! Your feedback will directly shape how we handle this migration.
Beta Was this translation helpful? Give feedback.
All reactions