runtime: Extract runtime info functions to public interface#8362
Merged
anderseknert merged 1 commit intoopen-policy-agent:mainfrom Feb 24, 2026
Merged
Conversation
This will allow Go SDK users to access this previously internal package. Signed-off-by: Charlie Egan <charlie_egan@apple.com>
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Member
|
Possibly related, maybe solved, or could be with this? #7427 |
Contributor
Author
|
Thanks, I have marked as solving that one. |
srenatus
approved these changes
Feb 23, 2026
Contributor
srenatus
left a comment
There was a problem hiding this comment.
The change looks good. I would have expected less opa-as-server compatibility, but if you feel like we should include those extra fields, it's fine.
| obj.Insert(ast.InternedTerm("skip_known_schema_check"), ast.InternedTerm(params.SkipKnownSchemaCheck)) | ||
| obj.Insert(ast.InternedTerm("authorization_enabled"), ast.InternedTerm(opts.IsAuthorizationEnabled)) | ||
| obj.Insert(ast.InternedTerm("skip_known_schema_check"), ast.InternedTerm(opts.SkipKnownSchemaCheck)) | ||
|
|
Contributor
There was a problem hiding this comment.
Huh I wasn't even aware of those. I always thought we "only" had config and env 😳
Contributor
Author
|
Yeah tbh, I didn't consider the values in here much. I mostly was interested in making it just the same as cmd/test so we can best replicate in Regal (just in case someone is depending on ENV, or whatever) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows me to replicate the OPA test runner in the Regal LS more closely.
https://github.com/open-policy-agent/regal/pull/1888/changes#diff-6a862d98ef36b31df772aeddd4a535899610634ef1f56d36f8ce11a77cc0d729R33-R36 is where this is used in the related Regal PR.
Fixes #7427