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
returning the version information for a GET request to /data/system/version is straightforward even if there is nothing really inmem under data.system. All we need is a new route.
But if we want to actually have the version under data.system, we need to insert this information when the system starts. Basically we need to create a new document during initialization. Maybe something inside opa/cmd/run.go inside init() function? Is there a place where the system itself we can create documents before repl is up?
I think that adding a route with be fine. Putting it into storage seemed like the path of least resistance at the time, however, we'd need to rethink that given that the bundle plugin would overwrite the data on each activation.
It would be nice if OPA's version information could be retrieved through the API.
With the new /data/system namespace we could put it under /data/system/version for instance.
If we do this we should fix the version information shown in the REPL to go under /data/system/version as well.
The text was updated successfully, but these errors were encountered: