Replies: 3 comments 4 replies
-
|
Hi @vorbidan - thanks for sharing. There was never any intention for OPAL to support both scopes and non scoped behavior. migrating from a non scoped setup is rather trivial. This doesn't seem to qualify as an issue. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @orweis Thank you again! |
Beta Was this translation helpful? Give feedback.
-
|
If you are planning to use scopes, I'd suggest setting up all your servers with scopes by default, and just using a single scope in the simpler case. Scopes are the recommended way to use OPAL in production, and the simpler non scope state is a product of
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When OPAL server is started with
OPAL_SCOPES=1environment variable, it exhibits the following behaviors that prevent seamless operation with both scoped and non-scoped clients:Current Issues:
OPAL_POLICY_REPO_*env vars for policy configurationOPAL_DATA_CONFIG_SOURCESOPAL_SCOPES=1, traditional endpoints like/policyand/data/configmay not function properlyDesired State - Dual Mode Support:
The same OPAL server instance with
OPAL_SCOPES=1should serve BOTH scoped and non-scoped clients:For Non-Scoped Clients (Backward Compatibility):
These endpoints should work identically regardless of whether
OPAL_SCOPES=1is set:/policy→ Returns policies fromOPAL_POLICY_REPO_URL(if specified)/policy-data→ Returns policy data/data/config→ Returns data config fromOPAL_DATA_CONFIG_SOURCES(if specified)For Scoped Clients (Default Scope):
When
OPAL_SCOPES=1is enabled, the "default" scope should mirror the non-scoped configuration:/scopes/default/policy→ Returns policies fromOPAL_POLICY_REPO_URL(if specified)/scopes/default/data→ Returns data config entries fromOPAL_DATA_CONFIG_SOURCES(if specified)Key Requirement:
The same server configuration should support both client types simultaneously, enabling gradual migration from non-scoped to scoped deployments without disruption.
Beta Was this translation helpful? Give feedback.
All reactions